@robosystems/mcp 0.2.7 → 0.2.8

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.
Files changed (2) hide show
  1. package/index.js +5 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -196,9 +196,9 @@ class RoboSystemsMCPClient {
196
196
 
197
197
  async getTools() {
198
198
  try {
199
- console.error(`Fetching tools from ${this.baseUrl}/v1/graph/${this.graphId}/mcp/tools`)
199
+ console.error(`Fetching tools from ${this.baseUrl}/v1/graphs/${this.graphId}/mcp/tools`)
200
200
  const response = await fetch(
201
- `${this.baseUrl}/v1/graph/${this.graphId}/mcp/tools`,
201
+ `${this.baseUrl}/v1/graphs/${this.graphId}/mcp/tools`,
202
202
  {
203
203
  headers: this.headers,
204
204
  }
@@ -244,7 +244,7 @@ class RoboSystemsMCPClient {
244
244
  }
245
245
 
246
246
  const response = await fetch(
247
- `${this.baseUrl}/v1/graph/${this.graphId}/mcp/call-tool`,
247
+ `${this.baseUrl}/v1/graphs/${this.graphId}/mcp/call-tool`,
248
248
  {
249
249
  method: 'POST',
250
250
  headers,
@@ -468,9 +468,9 @@ class RoboSystemsMCPClient {
468
468
  console.error(`Query queued with ID: ${data.queue_id}`)
469
469
 
470
470
  const statusUrl = data.status_url ||
471
- `${this.baseUrl}/v1/graph/${this.graphId}/query/${data.queue_id}/status`
471
+ `${this.baseUrl}/v1/graphs/${this.graphId}/query/${data.queue_id}/status`
472
472
  const resultUrl = data.result_url ||
473
- `${this.baseUrl}/v1/graph/${this.graphId}/query/${data.queue_id}/result`
473
+ `${this.baseUrl}/v1/graphs/${this.graphId}/query/${data.queue_id}/result`
474
474
 
475
475
  // Simple polling with exponential backoff
476
476
  let attempts = 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robosystems/mcp",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
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",