Skip to content

Commit 9f4e090

Browse files
committed
Document Sophia tag filtering feature
1 parent 80268bf commit 9f4e090

1 file changed

Lines changed: 30 additions & 1 deletion

File tree

docs/cloud/sophia/mcp.adoc

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,20 @@ Sophia supports multiple *Contexts*, each representing a distinct knowledge base
2121
| Context | Knowledge base
2222
| `restheart` | RESTHeart documentation, plugin API, configuration guides
2323
| `cloud` | RESTHeart Cloud managed service docs
24-
| `brewmaster` | BrewMaster Pro 3000 user manual (requires authentication)
24+
| `brewmaster` | This is a demo about a fictional product: the BrewMaster Pro 3000 coffee maker (requires authentication)
25+
|===
26+
27+
==== Filtering by Tag
28+
29+
Within a context, documents are organized by *tags*. The optional `X-Sophia-Tags` header narrows retrieval to documents that carry *all* of the specified tags (comma-separated). Use `sophia_list_tags` to discover which tags are available in your context.
30+
31+
[cols="1,3", options="header"]
32+
|===
33+
| Header value | Effect
34+
| _(omitted)_ | All documents in the context are searched
35+
| `restheart` | Only documents tagged `restheart` are searched
36+
| `cloud` | Only documents tagged `cloud` are searched
37+
| `restheart,plugin` | Only documents tagged with both `restheart` and `plugin` are searched
2538
|===
2639

2740
=== RESTHeart
@@ -38,6 +51,22 @@ Sophia supports multiple *Contexts*, each representing a distinct knowledge base
3851
}
3952
----
4053

54+
The `restheart` context covers both RESTHeart and RESTHeart Cloud documentation. To restrict retrieval to RESTHeart-only documents, add the `X-Sophia-Tags` header (see <<_filtering_by_tag>>):
55+
56+
[source,json]
57+
----
58+
{
59+
"mcpServers": {
60+
"sophia-restheart": {
61+
"command": "npx",
62+
"args": ["mcp-remote", "https://sophia-api.restheart.com/mcp",
63+
"--header", "X-Sophia-Context: restheart",
64+
"--header", "X-Sophia-Tags: restheart"]
65+
}
66+
}
67+
}
68+
----
69+
4170
=== RESTHeart Cloud
4271

4372
[source,json]

0 commit comments

Comments
 (0)