@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.
- package/index.js +5 -5
- 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/
|
|
199
|
+
console.error(`Fetching tools from ${this.baseUrl}/v1/graphs/${this.graphId}/mcp/tools`)
|
|
200
200
|
const response = await fetch(
|
|
201
|
-
`${this.baseUrl}/v1/
|
|
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/
|
|
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/
|
|
471
|
+
`${this.baseUrl}/v1/graphs/${this.graphId}/query/${data.queue_id}/status`
|
|
472
472
|
const resultUrl = data.result_url ||
|
|
473
|
-
`${this.baseUrl}/v1/
|
|
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
|