You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Click *New Context* and provide a unique ID (e.g. `restheart`, `cloud`). The ID is used in the web URL path (`/contexts/restheart`) and in the `X-Sophia-Context` MCP header.
33
+
Click *New Context* and provide a unique ID (e.g. `restheart`, `cloud`). The ID is used in the web URL path (`/contexts/restheart`) and in the MCP endpoint URL (`/mcp/restheart/`).
For authenticated access, issue an API token from the admin panel (see link:/docs/cloud/sophia/administrator-guide#_api_token_management[API Token Management]). The admin panel can generate ready-to-paste MCP configuration snippets for each token.
27
25
26
+
The token can be passed either as a standard `Authorization: Bearer <token>` header or as a `?token=<jwt>` query parameter — useful for clients that do not support custom headers:
Sophia supports multiple *Contexts*, each representing a distinct knowledge base with its own prompt template, tag filters, and RAG options. Select the desired context via the `X-Sophia-Context` header.
34
+
Sophia supports multiple *Contexts*, each representing a distinct knowledge base with its own prompt template, tag filters, and RAG options. The context is selected via the URL path.
| `cloud` | `https://sophia-api.restheart.com/mcp/cloud/` | RESTHeart Cloud managed service docs
40
41
|===
41
42
42
43
NOTE: Available contexts depend on your Sophia instance. Use the admin panel to create and manage contexts.
43
44
44
45
==== Filtering by Tag
45
46
46
-
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.
47
-
48
-
[cols="1,3", options="header"]
49
-
|===
50
-
| Header value | Effect
51
-
| _(omitted)_ | All documents in the context are searched
52
-
| `restheart` | Only documents tagged `restheart` are searched
53
-
| `cloud` | Only documents tagged `cloud` are searched
54
-
| `restheart,plugin` | Only documents tagged with both `restheart` and `plugin` are searched
55
-
|===
47
+
Within a context, documents are organized by *tags*. Pass the optional `tags` parameter to the `sophia_search` tool to narrow retrieval to documents that carry the specified tags. Use `sophia_list_tags` to discover which tags are available in your context.
56
48
57
49
=== Configuration Examples
58
50
@@ -64,14 +56,16 @@ Within a context, documents are organized by *tags*. The optional `X-Sophia-Tags
When configuring via the Claude Desktop UI, custom headers are not available — use OAuth client credentials instead, which Sophia supports natively.
86
+
92
87
Add the snippet under `mcpServers` in `claude_desktop_config.json` (`~/Library/Application Support/Claude/` on macOS, `%APPDATA%\Claude\` on Windows), then restart.
93
88
94
89
==== Cursor / VS Code (SSE transport)
@@ -100,10 +95,7 @@ Cursor and VS Code support HTTP/SSE natively:
The snippets above use link:https://www.npmjs.com/package/mcp-remote[`mcp-remote`], a small Node.js bridge that exposes the HTTP endpoint as a local `stdio` process — the format most clients expect. It requires link:https://nodejs.org[Node.js >= 18] and is downloaded automatically by `npx` on first run.
0 commit comments