@thesapientcompany/mcp 0.1.0 → 0.1.1
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/dist/client.js +7 -7
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -115,13 +115,13 @@ export class SapientClient {
|
|
|
115
115
|
payload.options = input.options;
|
|
116
116
|
if (input.webhook_url)
|
|
117
117
|
payload.webhook_url = input.webhook_url;
|
|
118
|
-
return this.request('POST', '/v1/scans', payload);
|
|
118
|
+
return this.request('POST', '/api/v1/scans', payload);
|
|
119
119
|
}
|
|
120
|
-
/** GET /v1/scans/{id}. While in-flight: { scan_id, status }. Complete: rich shape. */
|
|
120
|
+
/** GET /api/v1/scans/{id}. While in-flight: { scan_id, status }. Complete: rich shape. */
|
|
121
121
|
async getScan(scanId) {
|
|
122
|
-
return this.request('GET', `/v1/scans/${encodeURIComponent(scanId)}`);
|
|
122
|
+
return this.request('GET', `/api/v1/scans/${encodeURIComponent(scanId)}`);
|
|
123
123
|
}
|
|
124
|
-
/** GET /v1/scans — caller's history. */
|
|
124
|
+
/** GET /api/v1/scans — caller's history. */
|
|
125
125
|
async listScans(opts) {
|
|
126
126
|
const qs = new URLSearchParams();
|
|
127
127
|
if (opts?.limit != null)
|
|
@@ -129,12 +129,12 @@ export class SapientClient {
|
|
|
129
129
|
if (opts?.offset != null)
|
|
130
130
|
qs.set('offset', String(opts.offset));
|
|
131
131
|
const suffix = qs.toString() ? `?${qs}` : '';
|
|
132
|
-
return this.request('GET', `/v1/scans${suffix}`);
|
|
132
|
+
return this.request('GET', `/api/v1/scans${suffix}`);
|
|
133
133
|
}
|
|
134
|
-
/** GET /v1/intelligence?q= — cross-scan rollup + optional semantic recall. */
|
|
134
|
+
/** GET /api/v1/intelligence?q= — cross-scan rollup + optional semantic recall. */
|
|
135
135
|
async intelligence(q) {
|
|
136
136
|
const suffix = q && q.trim() ? `?q=${encodeURIComponent(q.trim())}` : '';
|
|
137
|
-
return this.request('GET', `/v1/intelligence${suffix}`);
|
|
137
|
+
return this.request('GET', `/api/v1/intelligence${suffix}`);
|
|
138
138
|
}
|
|
139
139
|
/**
|
|
140
140
|
* Submit then poll GET /v1/scans/{id} until status is terminal.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thesapientcompany/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Model Context Protocol (MCP) server for the Sapient brain-response API — run scans, read your scan history, query cross-scan intelligence, and read the Sapient knowledge base from any MCP client.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|