@robosystems/mcp 0.4.1 → 0.5.0
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 +20 -33
- package/index.js +33 -1332
- package/package.json +2 -6
- package/proxy.js +21 -1
package/README.md
CHANGED
|
@@ -3,17 +3,14 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@robosystems/mcp)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
5
|
|
|
6
|
-
Official MCP (Model Context Protocol) stdio bridge for connecting stdio-only AI clients to the RoboSystems
|
|
6
|
+
Official MCP (Model Context Protocol) stdio bridge for connecting stdio-only AI clients to the RoboSystems financial intelligence platform. Query financial statements, explore graph structures, resolve XBRL elements, and build fact grids.
|
|
7
7
|
|
|
8
|
-
> **The preferred way to connect is the hosted remote MCP endpoint — no install required.** Every RoboSystems graph serves the MCP Streamable HTTP transport directly
|
|
8
|
+
> **The preferred way to connect is the hosted remote MCP endpoint — no install required.** Every RoboSystems graph serves the MCP Streamable HTTP transport directly. OAuth-capable clients (claude.ai, Claude Code, ChatGPT, VS Code, Cursor) add `https://api.robosystems.ai/v1/mcp`, sign in, and pick the graph on the consent screen; any HTTP-capable client can instead add a per-graph URL `https://api.robosystems.ai/v1/graphs/{graph_id}/mcp` with an API key in the `X-API-Key` header. **This npx package is in maintenance mode** and exists only for clients that speak nothing but the stdio transport: it is a transparent proxy that forwards that same transport over stdio. See [Migrating to the remote endpoint](#migrating-to-the-remote-endpoint).
|
|
9
9
|
|
|
10
10
|
## Features
|
|
11
11
|
|
|
12
|
-
- **Native MCP transport over stdio** —
|
|
13
|
-
- **
|
|
14
|
-
- **Graph exploration** with Cypher queries, schema introspection, and element resolution
|
|
15
|
-
- **Workspace management** for isolated subgraphs, staging data, and persistent agent memory
|
|
16
|
-
- **Legacy bridge mode** for pre-v1.7.0 servers, with client-side SSE/NDJSON aggregation, smart caching, and retry logic
|
|
12
|
+
- **Native MCP transport over stdio** — a transparent proxy that forwards the graph's Streamable HTTP endpoint verbatim: per-session instructions, live tool lists, and streamed progress notifications, identical to connecting the URL directly
|
|
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
|
|
17
14
|
|
|
18
15
|
## Installation
|
|
19
16
|
|
|
@@ -37,29 +34,30 @@ Add to your MCP servers configuration:
|
|
|
37
34
|
|
|
38
35
|
### Environment Variables
|
|
39
36
|
|
|
40
|
-
| Variable | Description
|
|
41
|
-
| ---------------------- |
|
|
42
|
-
| `ROBOSYSTEMS_API_KEY` | Your API key
|
|
43
|
-
| `ROBOSYSTEMS_GRAPH_ID` |
|
|
44
|
-
| `ROBOSYSTEMS_API_URL` | API endpoint
|
|
45
|
-
| `
|
|
46
|
-
| `ROBOSYSTEMS_MCP_URL` | Full MCP endpoint URL — overrides the URL derived from graph ID | _(derived from graph ID)_ |
|
|
37
|
+
| Variable | Description | Default |
|
|
38
|
+
| ---------------------- | --------------------------------------------------------------- | ------------------------------------------------ |
|
|
39
|
+
| `ROBOSYSTEMS_API_KEY` | Your API key, sent as `X-API-Key` | _(required unless the URL carries credentials)_ |
|
|
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)_ |
|
|
47
43
|
|
|
48
|
-
###
|
|
44
|
+
### How it works
|
|
49
45
|
|
|
50
46
|
By default 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.
|
|
51
47
|
|
|
52
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.
|
|
53
49
|
|
|
54
|
-
### Legacy Bridge Mode
|
|
55
|
-
|
|
56
|
-
Set `ROBOSYSTEMS_MCP_MODE: "legacy"` to run the original bridge, which aggregates the REST tool endpoints (`GET /mcp/tools` + `POST /mcp/call-tool`) client-side and adds its own workspace-switching tools. You only need this against an API deployment that predates the MCP transport (server versions before v1.7.0), or if you depend on the bridge's client-side `create-workspace`/`switch-workspace` tool names — current servers expose the same capabilities as `create-subgraph`/`switch-workspace` tools natively.
|
|
57
|
-
|
|
58
50
|
## Migrating to the Remote Endpoint
|
|
59
51
|
|
|
60
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.
|
|
61
53
|
|
|
62
|
-
**Claude Code
|
|
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:
|
|
63
61
|
|
|
64
62
|
```bash
|
|
65
63
|
claude mcp add --transport http robosystems-sec \
|
|
@@ -82,7 +80,7 @@ Local development uses the same shape against a local stack: `http://localhost:8
|
|
|
82
80
|
|
|
83
81
|
## Tools
|
|
84
82
|
|
|
85
|
-
Tools are loaded dynamically from the RoboSystems API based on your graph
|
|
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.
|
|
86
84
|
|
|
87
85
|
### Financial Data
|
|
88
86
|
|
|
@@ -106,22 +104,11 @@ Tools are loaded dynamically from the RoboSystems API based on your graph. In le
|
|
|
106
104
|
| `get-properties` | Discover available properties on node types |
|
|
107
105
|
| `get-example-queries` | Query templates and examples for common patterns |
|
|
108
106
|
|
|
109
|
-
### Workspaces
|
|
110
|
-
|
|
111
|
-
| Tool | Description |
|
|
112
|
-
| ------------------ | --------------------------------------------------- |
|
|
113
|
-
| `create-workspace` | Create an isolated subgraph (static or memory type) |
|
|
114
|
-
| `switch-workspace` | Switch active workspace context |
|
|
115
|
-
| `list-workspaces` | List all workspaces with active indicator |
|
|
116
|
-
| `delete-workspace` | Remove a workspace and its data |
|
|
117
|
-
|
|
118
|
-
Workspaces let you create isolated subgraphs for experimentation, staging data, or persistent agent memory. Use `subgraph_type: "memory"` when creating a workspace to get a dedicated memory graph.
|
|
119
|
-
|
|
120
107
|
## Resources
|
|
121
108
|
|
|
122
109
|
- [RoboSystems Platform](https://robosystems.ai)
|
|
123
110
|
- [GitHub Repository](https://github.com/RoboFinSystems/robosystems)
|
|
124
|
-
- [
|
|
111
|
+
- [API Documentation](https://api.robosystems.ai/docs)
|
|
125
112
|
- [OpenAPI Specification](https://api.robosystems.ai/openapi.json)
|
|
126
113
|
|
|
127
114
|
## Support
|