@robosystems/mcp 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -84
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,18 +3,28 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@robosystems/mcp)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
5
|
|
|
6
|
-
The
|
|
6
|
+
**The stdio bridge to the MCP server of [RoboSystems](https://github.com/RoboFinSystems/robosystems), the open-source knowledge graph for finance.** Every graph is an MCP server over the Streamable HTTP transport; `@robosystems/mcp` connects MCP clients without HTTP transport to it. It is in maintenance mode.
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
The bridge reads JSON-RPC messages from stdin, posts each one unchanged to a graph's MCP endpoint with your API key in the `X-API-Key` header, and writes the replies to stdout. The instructions, tools and progress notifications are the server's own; the bridge adds none. Diagnostics go to stderr, including a notice at startup when a newer version is on npm.
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## Connect directly if you can
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
- **Every server tool, as the server advertises it** — financial statements, disclosures and fact grids; Cypher, schema introspection and element resolution; subgraphs and agent memory on graphs that have them
|
|
12
|
+
An MCP client with HTTP transport does not need this package. Connect it to the hosted server instead:
|
|
14
13
|
|
|
15
|
-
|
|
14
|
+
- **OAuth**: `https://api.robosystems.ai/v1/mcp`. Sign in and choose the graph on the consent screen. `https://api.robosystems.ai/v1/mcp/roboledger` is the same for RoboLedger graphs, with the accounting tools only
|
|
15
|
+
- **API key**: `https://api.robosystems.ai/v1/graphs/{graph_id}/mcp`, with the key in the `X-API-Key` header and never in the URL. The URL picks the graph: `sec` for the public SEC repository, your graph id for your own
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
```bash
|
|
18
|
+
claude mcp add --transport http robosystems-sec \
|
|
19
|
+
https://api.robosystems.ai/v1/graphs/sec/mcp \
|
|
20
|
+
--header "X-API-Key: <your key>"
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
The app's MCP page has the snippet for each client. The bridge authenticates with an API key only, so it connects to a per-graph URL, never to the OAuth endpoints.
|
|
24
|
+
|
|
25
|
+
## Install
|
|
26
|
+
|
|
27
|
+
No install step: MCP clients run it through `npx`. Tested on Node.js 22, 24 and 26.
|
|
18
28
|
|
|
19
29
|
```json
|
|
20
30
|
{
|
|
@@ -23,98 +33,39 @@ Add to your MCP servers configuration:
|
|
|
23
33
|
"command": "npx",
|
|
24
34
|
"args": ["-y", "@robosystems/mcp@latest"],
|
|
25
35
|
"env": {
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"ROBOSYSTEMS_GRAPH_ID": "kg..."
|
|
36
|
+
"ROBOSYSTEMS_API_KEY": "<your key>",
|
|
37
|
+
"ROBOSYSTEMS_GRAPH_ID": "sec"
|
|
29
38
|
}
|
|
30
39
|
}
|
|
31
40
|
}
|
|
32
41
|
}
|
|
33
42
|
```
|
|
34
43
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
| Variable | Description | Default |
|
|
38
|
-
| ---------------------- | --------------------------------------------------------------- | ------------------------------------------------ |
|
|
39
|
-
| `ROBOSYSTEMS_API_KEY` | Your API key, sent as `X-API-Key` | _(required)_ |
|
|
40
|
-
| `ROBOSYSTEMS_GRAPH_ID` | The graph to connect (derives the per-graph endpoint URL) | _(required unless `ROBOSYSTEMS_MCP_URL` is set)_ |
|
|
41
|
-
| `ROBOSYSTEMS_API_URL` | API endpoint | `https://api.robosystems.ai` |
|
|
42
|
-
| `ROBOSYSTEMS_MCP_URL` | Full MCP endpoint URL — overrides the URL derived from graph ID | _(derived from graph ID)_ |
|
|
43
|
-
|
|
44
|
-
### How it works
|
|
45
|
-
|
|
46
|
-
This package is a transparent pipe between your stdio client and the graph's native MCP endpoint (`POST /v1/graphs/{graph_id}/mcp`, Streamable HTTP). Every JSON-RPC message is forwarded verbatim, so per-session instructions, the live server tool list, and streamed progress notifications behave exactly as they do when connecting the URL directly — the only thing the proxy adds is the API-key header the stdio client can't send itself. The standard configuration above is all it needs.
|
|
47
|
-
|
|
48
|
-
To target a specific endpoint (for example a local stack), point `ROBOSYSTEMS_MCP_URL` at the full URL, e.g. `http://localhost:8000/v1/graphs/kg.../mcp` — no graph ID needed.
|
|
49
|
-
|
|
50
|
-
## Migrating to the Remote Endpoint
|
|
51
|
-
|
|
52
|
-
If your client supports HTTP transports, replace the npx entry with a direct connection — the URL picks the graph (`sec` for the public SEC repository, your `kg…` graph id for your own; a subgraph id like `kg…_dev` is just another URL), and your account-wide API key goes in the `X-API-Key` header, one connector per graph.
|
|
53
|
-
|
|
54
|
-
**OAuth — sign in and pick a graph** (claude.ai, Claude Code, ChatGPT, VS Code, Cursor): add the graph-agnostic endpoint and no key at all; the consent screen is where you choose the graph.
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
claude mcp add --transport http robosystems https://api.robosystems.ai/v1/mcp
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
**Claude Code with an API key** — one command:
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
claude mcp add --transport http robosystems-sec \
|
|
64
|
-
https://api.robosystems.ai/v1/graphs/sec/mcp \
|
|
65
|
-
--header "X-API-Key: <your key>"
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
**Cursor / VS Code** — replace the `command`/`args`/`env` entry in `mcp.json` with:
|
|
69
|
-
|
|
70
|
-
```json
|
|
71
|
-
"robosystems-sec": {
|
|
72
|
-
"url": "https://api.robosystems.ai/v1/graphs/sec/mcp",
|
|
73
|
-
"headers": { "X-API-Key": "<your key>" }
|
|
74
|
-
}
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
Local development uses the same shape against a local stack: `http://localhost:8000/v1/graphs/{graph_id}/mcp`.
|
|
78
|
-
|
|
79
|
-
**Claude (claude.ai / Desktop)** — Settings → Connectors → Add custom connector with `https://api.robosystems.ai/v1/mcp` (or a per-graph URL): Claude detects OAuth and you pick the graph at sign-in; no key involved. Credentials never travel in the URL — the older `?token=` connector URL was the bridge to OAuth and has been retired. Claude Desktop can alternatively run this package via `claude_desktop_config.json` (the config file accepts only stdio-shaped `command` entries); in its default [proxy mode](#how-it-works) it delivers the same remote-endpoint behavior over stdio with the key in a header.
|
|
80
|
-
|
|
81
|
-
## Tools
|
|
82
|
-
|
|
83
|
-
Tools are loaded dynamically from the RoboSystems API based on your graph, so the authoritative list is whatever your server advertises — the proxy adds nothing of its own. The tables below are representative.
|
|
44
|
+
This is the shape of `claude_desktop_config.json` and of other clients that take stdio `command` entries. Keep `@latest` in the arguments: a global `npm install -g @robosystems/mcp` can shadow `npx` and pin an old version.
|
|
84
45
|
|
|
85
|
-
|
|
46
|
+
## Configuration
|
|
86
47
|
|
|
87
|
-
|
|
88
|
-
| ------------------------------ | ------------------------------------------------------------------------------ |
|
|
89
|
-
| `financial-statement-analysis` | A company's financial statements, by ticker or CIK and reporting period |
|
|
90
|
-
| `disclosures` | The map of a report's sections: one row per note or statement |
|
|
91
|
-
| `information-block` | One section read whole: rows, breakdowns, calculation footing, and text blocks |
|
|
92
|
-
| `build-fact-grid` | Construct multidimensional fact grids from graph data for analysis |
|
|
48
|
+
The bridge reads four environment variables and takes no command-line arguments.
|
|
93
49
|
|
|
94
|
-
|
|
50
|
+
| Variable | Purpose | Default |
|
|
51
|
+
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------- | ---------------------------- |
|
|
52
|
+
| `ROBOSYSTEMS_API_KEY` | API key, sent as `X-API-Key`; account-wide or scoped to one graph | none |
|
|
53
|
+
| `ROBOSYSTEMS_GRAPH_ID` | The graph to connect: `sec`, a graph id, or a subgraph id such as `kg…_dev`. Required unless `ROBOSYSTEMS_MCP_URL` is set | none |
|
|
54
|
+
| `ROBOSYSTEMS_API_URL` | Base URL the endpoint is derived from: `{ROBOSYSTEMS_API_URL}/v1/graphs/{ROBOSYSTEMS_GRAPH_ID}/mcp` | `https://api.robosystems.ai` |
|
|
55
|
+
| `ROBOSYSTEMS_MCP_URL` | Full endpoint URL. Overrides the derived one, and needs no graph id | derived |
|
|
95
56
|
|
|
96
|
-
|
|
97
|
-
| --------------------- | -------------------------------------------------------------- |
|
|
98
|
-
| `read-graph-cypher` | Run read-only Cypher queries against the knowledge graph |
|
|
99
|
-
| `get-graph-schema` | Introspect node types, relationships, and properties |
|
|
100
|
-
| `get-graph-info` | Graph metadata and statistics |
|
|
101
|
-
| `resolve-element` | Map financial concepts (e.g. "revenue") to XBRL element qnames |
|
|
102
|
-
| `search-documents` | Find which filings or documents discuss something |
|
|
103
|
-
| `get-example-queries` | Query templates and examples for common patterns |
|
|
57
|
+
For a self-hosted stack, set `ROBOSYSTEMS_API_URL` to its address (`http://localhost:8000` in local development), or point `ROBOSYSTEMS_MCP_URL` at the full per-graph URL. See [Authentication & API Keys](https://robosystems.ai/docs/technical/authentication-and-api-keys) and [Self-Hosting on a Server](https://robosystems.ai/docs/technical/self-hosting-on-a-server).
|
|
104
58
|
|
|
105
|
-
##
|
|
59
|
+
## Documentation
|
|
106
60
|
|
|
107
|
-
- [
|
|
108
|
-
- [
|
|
109
|
-
- [
|
|
110
|
-
- [OpenAPI Specification](https://api.robosystems.ai/openapi.json)
|
|
61
|
+
- **MCP**: [AI Operators & MCP](https://robosystems.ai/docs/technical/ai-operators-and-mcp)
|
|
62
|
+
- **Technical docs**: [robosystems.ai/docs/technical](https://robosystems.ai/docs/technical)
|
|
63
|
+
- **Related**: [RoboSystems](https://github.com/RoboFinSystems/robosystems) · [Python client](https://github.com/RoboFinSystems/robosystems-python-client) · [TypeScript client](https://github.com/RoboFinSystems/robosystems-typescript-client)
|
|
111
64
|
|
|
112
65
|
## Support
|
|
113
66
|
|
|
114
|
-
- [Issues](https://github.com/RoboFinSystems/robosystems-mcp-client/issues)
|
|
115
|
-
- [
|
|
116
|
-
- [Projects](https://github.com/orgs/RoboFinSystems/projects)
|
|
117
|
-
- [Discussions](https://github.com/orgs/RoboFinSystems/discussions)
|
|
67
|
+
- [Issues](https://github.com/RoboFinSystems/robosystems-mcp-client/issues) · [Discussions](https://github.com/orgs/RoboFinSystems/discussions) · [Projects](https://github.com/orgs/RoboFinSystems/projects)
|
|
68
|
+
- [CONTRIBUTING.md](.github/CONTRIBUTING.md): branch conventions, coding standards and the pull request process
|
|
118
69
|
|
|
119
70
|
## License
|
|
120
71
|
|
package/package.json
CHANGED