@robosystems/mcp 0.2.1 → 0.2.3
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/LICENSE +1 -1
- package/README.md +20 -8
- package/index.js +18 -1
- package/package.json +6 -7
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
# RoboSystems MCP
|
|
1
|
+
# RoboSystems MCP Client
|
|
2
2
|
|
|
3
|
-
MCP (Model Context Protocol)
|
|
3
|
+
MCP (Model Context Protocol) client adapter for connecting AI agents to RoboSystems Financial Knowledge Graph API endpoints.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install
|
|
8
|
+
npm install @robosystems/mcp
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or run directly with npx:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx @robosystems/mcp
|
|
9
15
|
```
|
|
10
16
|
|
|
11
17
|
## Quick Start
|
|
@@ -152,10 +158,11 @@ Once configured, you can ask Claude to:
|
|
|
152
158
|
|
|
153
159
|
### Getting Help
|
|
154
160
|
|
|
155
|
-
For support
|
|
156
|
-
-
|
|
157
|
-
-
|
|
158
|
-
-
|
|
161
|
+
For support:
|
|
162
|
+
- **Documentation**: [https://docs.robosystems.ai](https://docs.robosystems.ai)
|
|
163
|
+
- **API Reference**: [https://api.robosystems.ai](https://api.robosystems.ai)
|
|
164
|
+
- **Issues**: [GitHub Issues](https://github.com/HarbingerFinLab/robosystems-mcp-client/issues)
|
|
165
|
+
- **Email**: support@robosystems.ai
|
|
159
166
|
|
|
160
167
|
## Security
|
|
161
168
|
|
|
@@ -168,4 +175,9 @@ For support with the RoboSystems platform:
|
|
|
168
175
|
|
|
169
176
|
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
170
177
|
|
|
171
|
-
MIT © 2025 Harbinger FinLab
|
|
178
|
+
MIT © 2025 Harbinger FinLab
|
|
179
|
+
|
|
180
|
+
## Related Projects
|
|
181
|
+
|
|
182
|
+
- [robosystems-sdk](https://www.npmjs.com/package/robosystems-sdk) - JavaScript/TypeScript SDK
|
|
183
|
+
- [robosystems-python-sdk](https://pypi.org/project/robosystems-sdk/) - Python SDK
|
package/index.js
CHANGED
|
@@ -196,6 +196,7 @@ class RoboSystemsMCPClient {
|
|
|
196
196
|
|
|
197
197
|
async getTools() {
|
|
198
198
|
try {
|
|
199
|
+
console.error(`Fetching tools from ${this.baseUrl}/v1/${this.graphId}/mcp/tools`)
|
|
199
200
|
const response = await fetch(
|
|
200
201
|
`${this.baseUrl}/v1/${this.graphId}/mcp/tools`,
|
|
201
202
|
{
|
|
@@ -204,13 +205,17 @@ class RoboSystemsMCPClient {
|
|
|
204
205
|
)
|
|
205
206
|
|
|
206
207
|
if (!response.ok) {
|
|
208
|
+
const text = await response.text()
|
|
209
|
+
console.error(`API returned ${response.status}: ${text}`)
|
|
207
210
|
throw new Error(`HTTP ${response.status}: ${response.statusText}`)
|
|
208
211
|
}
|
|
209
212
|
|
|
210
213
|
const data = await response.json()
|
|
214
|
+
console.error(`Got ${data.tools?.length || 0} tools from API`)
|
|
211
215
|
return data.tools || []
|
|
212
216
|
} catch (error) {
|
|
213
217
|
console.error(`Failed to get tools: ${error.message}`)
|
|
218
|
+
console.error(`Stack: ${error.stack}`)
|
|
214
219
|
return []
|
|
215
220
|
}
|
|
216
221
|
}
|
|
@@ -625,11 +630,13 @@ async function main() {
|
|
|
625
630
|
|
|
626
631
|
if (!apiKey) {
|
|
627
632
|
console.error('ROBOSYSTEMS_API_KEY environment variable is required')
|
|
633
|
+
console.error('Please set ROBOSYSTEMS_API_KEY in your MCP configuration')
|
|
628
634
|
process.exit(1)
|
|
629
635
|
}
|
|
630
636
|
|
|
631
637
|
console.error(`RoboSystems MCP Client v${PACKAGE_VERSION}`)
|
|
632
638
|
console.error(`Connecting to ${baseUrl} for graph ${graphId}`)
|
|
639
|
+
console.error(`API Key: ${apiKey.substring(0, 10)}...`)
|
|
633
640
|
|
|
634
641
|
const remoteClient = new RoboSystemsMCPClient(baseUrl, apiKey, graphId)
|
|
635
642
|
|
|
@@ -688,11 +695,13 @@ async function main() {
|
|
|
688
695
|
|
|
689
696
|
// Test connection and start server
|
|
690
697
|
try {
|
|
698
|
+
console.error('Testing API connection...')
|
|
691
699
|
const tools = await remoteClient.getTools()
|
|
692
700
|
const toolNames = tools.map((t) => t.name)
|
|
693
701
|
console.error(`Connected successfully. Available tools: ${toolNames.join(', ')}`)
|
|
694
702
|
|
|
695
703
|
const transport = new StdioServerTransport()
|
|
704
|
+
console.error('Starting MCP stdio transport...')
|
|
696
705
|
await server.connect(transport)
|
|
697
706
|
|
|
698
707
|
console.error('RoboSystems MCP server running')
|
|
@@ -733,7 +742,15 @@ export {
|
|
|
733
742
|
}
|
|
734
743
|
|
|
735
744
|
// Only run as server if this is the main module
|
|
736
|
-
if (
|
|
745
|
+
// Check if we're being run directly (not imported)
|
|
746
|
+
// This works with both `node index.js` and `npx` invocations
|
|
747
|
+
const isMainModule =
|
|
748
|
+
import.meta.url === `file://${process.argv[1]}` ||
|
|
749
|
+
process.argv[1]?.endsWith('/mcp') || // npx binary name
|
|
750
|
+
process.argv[1]?.endsWith('/@robosystems/mcp') || // alternative npx name
|
|
751
|
+
process.argv[1]?.includes('robosystems-mcp'); // package name in path
|
|
752
|
+
|
|
753
|
+
if (isMainModule) {
|
|
737
754
|
// Run the server
|
|
738
755
|
main().catch((error) => {
|
|
739
756
|
console.error(`Fatal error: ${error.message}`)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robosystems/mcp",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.2.3",
|
|
4
|
+
"description": "MCP client adapter for connecting AI agents to RoboSystems Financial Knowledge Graph API endpoints",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"bin": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"api",
|
|
25
25
|
"model-context-protocol"
|
|
26
26
|
],
|
|
27
|
-
"author": "
|
|
27
|
+
"author": "Harbinger FinLab",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@modelcontextprotocol/sdk": "^1.17.1",
|
|
@@ -38,11 +38,10 @@
|
|
|
38
38
|
},
|
|
39
39
|
"repository": {
|
|
40
40
|
"type": "git",
|
|
41
|
-
"url": "https://github.com/
|
|
42
|
-
"directory": "package"
|
|
41
|
+
"url": "https://github.com/RoboFinSystems/robosystems-mcp-client"
|
|
43
42
|
},
|
|
44
43
|
"bugs": {
|
|
45
|
-
"url": "https://github.com/
|
|
44
|
+
"url": "https://github.com/RoboFinSystems/robosystems-mcp-client/issues"
|
|
46
45
|
},
|
|
47
|
-
"homepage": "https://github.com/
|
|
46
|
+
"homepage": "https://github.com/RoboFinSystems/robosystems-mcp-client#readme"
|
|
48
47
|
}
|