@jini-ai/mcp 0.7.3-next.3 → 0.7.4
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/CHANGELOG.md +7 -0
- package/dist/client/css-url-refs.js +1 -1
- package/dist/external/agent-tools.d.ts +3 -4
- package/dist/external/agent-tools.js +7 -8
- package/dist/external/operations-tools.js +2 -2
- package/dist/external/tool-registrations.js +37 -48
- package/dist/federation/hosted/external-mcp-repo.d.ts +2 -2
- package/dist/federation/hosted/external-mcp-repo.js +5 -3
- package/dist/federation/hosted/store-input.js +2 -3
- package/dist/federation/hosted/store.memory.js +4 -1
- package/dist/server/loopback-fetch.js +3 -3
- package/package.json +11 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## 0.7.4
|
|
2
|
+
|
|
3
|
+
### Changes
|
|
4
|
+
|
|
5
|
+
- Add external server connection forms, saved-server probes, and reusable tool registration services.
|
|
6
|
+
- Honor cancellation before connection probes, preserve empty stdio arguments on save, and redact server logs.
|
|
7
|
+
|
|
1
8
|
## 0.7.2
|
|
2
9
|
|
|
3
10
|
### Patch Changes
|
|
@@ -45,7 +45,7 @@ function refAt(text, start) {
|
|
|
45
45
|
if (text[first] === ')')
|
|
46
46
|
return first > start ? { ref: text[first - 1], end: first + 1 } : null;
|
|
47
47
|
const end = refRunEnd(text, first);
|
|
48
|
-
const close =
|
|
48
|
+
const close = closeOfRef(text, end);
|
|
49
49
|
return close < 0 ? null : { ref: text.slice(first, end), end: close };
|
|
50
50
|
}
|
|
51
51
|
/** Every `url(...)` reference in `text`, in order, exactly as the pattern's group captured it. */
|
|
@@ -19,10 +19,9 @@
|
|
|
19
19
|
* same reasoning applies one layer up: two tools would be two validators of one contract, and an
|
|
20
20
|
* agent updating a server it just created would have to remember which tool it used the first
|
|
21
21
|
* time. HUMAN-CONFIRMED: this never writes silently. See the host's tool-registrations handler.
|
|
22
|
-
* - `external_mcp_test_connection` —
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* check.
|
|
22
|
+
* - `external_mcp_test_connection` — probes an already-saved, enabled hosted server live:
|
|
23
|
+
* connects once, lists advertised tools and closes. May refresh an OAuth grant; refuses a
|
|
24
|
+
* session without a live-probe port instead of treating configuration readiness as success.
|
|
26
25
|
* - `external_mcp_oauth_connect` / `external_mcp_oauth_poll_device` — the two moves the hard
|
|
27
26
|
* constraint "the agent's job ends at handing over one link and then detecting completion"
|
|
28
27
|
* requires: start an authorization and hand back the one thing a human needs (a link, or a device
|
|
@@ -19,10 +19,9 @@
|
|
|
19
19
|
* same reasoning applies one layer up: two tools would be two validators of one contract, and an
|
|
20
20
|
* agent updating a server it just created would have to remember which tool it used the first
|
|
21
21
|
* time. HUMAN-CONFIRMED: this never writes silently. See the host's tool-registrations handler.
|
|
22
|
-
* - `external_mcp_test_connection` —
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* check.
|
|
22
|
+
* - `external_mcp_test_connection` — probes an already-saved, enabled hosted server live:
|
|
23
|
+
* connects once, lists advertised tools and closes. May refresh an OAuth grant; refuses a
|
|
24
|
+
* session without a live-probe port instead of treating configuration readiness as success.
|
|
26
25
|
* - `external_mcp_oauth_connect` / `external_mcp_oauth_poll_device` — the two moves the hard
|
|
27
26
|
* constraint "the agent's job ends at handing over one link and then detecting completion"
|
|
28
27
|
* requires: start an authorization and hand back the one thing a human needs (a link, or a device
|
|
@@ -151,10 +150,10 @@ const EXTERNAL_MCP_LIST_TOOL = {
|
|
|
151
150
|
const EXTERNAL_MCP_TEST_CONNECTION_TOOL = {
|
|
152
151
|
name: "external_mcp_test_connection",
|
|
153
152
|
description: [
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"Only works on a server that has already been saved
|
|
157
|
-
"Returns { ok: true }
|
|
153
|
+
"Tests a saved, enabled hosted external MCP server live (needs the full gateway: it can store data) by connecting once, listing advertised tools and closing. It does not invoke remote tools or change the assistant's live roster.",
|
|
154
|
+
"Requires a live-probe service in this session. Refuses a missing service, unknown or disabled server, local-command transport, expired authorization or an unreachable endpoint; a saved configuration alone cannot pass.",
|
|
155
|
+
"Only works on a server that has already been saved via external_mcp_save — it takes an id, not a draft configuration, and never launches a local command.",
|
|
156
|
+
"Returns { ok: true, body: { tools, probedAt } } after a successful live probe; refusals return { ok: false, reason } or { ok: false, status, body }. OAuth token resolution may contact the authorization provider and persist a refreshed grant. Review the server in settings to resolve a refusal, or use external_mcp_get_admissions to read the assistant's current tool roster.",
|
|
158
157
|
].join(" "),
|
|
159
158
|
sideEffects: "mutates-durable-state",
|
|
160
159
|
authorization: { permission: EXTERNAL_MCP_MANAGE_PERMISSION },
|
|
@@ -8,7 +8,7 @@ export function createExternalMcpOperationsToolCatalog({ copy }, _optional = {})
|
|
|
8
8
|
return [
|
|
9
9
|
{
|
|
10
10
|
name: "external_mcp_probe_connection",
|
|
11
|
-
description: "Tests a saved, enabled hosted external MCP connection (needs the full gateway: it can store data) by connecting once, listing advertised tools and closing, just like the admin External MCP page's probe. Call to check live reachability and see which remote tools would be allowed or refused. Returns { tools, probedAt }; does not invoke remote tools or change the assistant's live roster. May refresh and persist an OAuth grant. Refuses unknown, disabled or local-command servers, expired authorization, unreachable endpoints and excessive attempts. Use
|
|
11
|
+
description: "Tests a saved, enabled hosted external MCP connection (needs the full gateway: it can store data) by connecting once, listing advertised tools and closing, just like the admin External MCP page's probe. Call to check live reachability and see which remote tools would be allowed or refused. Returns { tools, probedAt }; does not invoke remote tools or change the assistant's live roster. May refresh and persist an OAuth grant. Refuses unknown, disabled or local-command servers, expired authorization, unreachable endpoints and excessive attempts. Use external_mcp_get_admissions for the actual live roster.",
|
|
12
12
|
sideEffects: "mutates-durable-state",
|
|
13
13
|
authorization: { permission: EXTERNAL_MCP_MANAGE_PERMISSION },
|
|
14
14
|
inputSchema: { type: "object", additionalProperties: false, required: ["id"], properties: { id: { type: "string", minLength: 1, maxLength: 64, description: `A saved hosted server id from ${copy.listToolName}.` } } },
|
|
@@ -69,7 +69,7 @@ export function buildExternalMcpOperationsRegistrations({ deps, operations }, _o
|
|
|
69
69
|
throw new ToolInputError({ message: `external_mcp_probe_connection: too many probe attempts. Try again in ${budget.retryAfterSeconds} seconds.` });
|
|
70
70
|
const result = await operations.probe({ deps, serverId: id });
|
|
71
71
|
if (!result.ok)
|
|
72
|
-
throw new ToolInputError({ message: `external_mcp_probe_connection: ${result.body.error}. Review the server in ${operations.copy.settingsLocation}
|
|
72
|
+
throw new ToolInputError({ message: `external_mcp_probe_connection: ${result.body.error}. Review the server in ${operations.copy.settingsLocation}.` });
|
|
73
73
|
return result.body;
|
|
74
74
|
},
|
|
75
75
|
external_mcp_get_admissions: async (ctx) => {
|
|
@@ -163,14 +163,26 @@ function externalMcpSaveSafeError({ error, locale, onField, routeDeps }, _option
|
|
|
163
163
|
return error.message;
|
|
164
164
|
return routeDeps.credentialText({ id: "storage", locale });
|
|
165
165
|
}
|
|
166
|
-
/**
|
|
167
|
-
async function
|
|
168
|
-
const
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
const
|
|
173
|
-
|
|
166
|
+
/** A saved configuration alone cannot establish reachability; only the injected live probe can. */
|
|
167
|
+
async function testExternalMcpConnection({ routeDeps, ctx }, _optional = {}) {
|
|
168
|
+
const input = requireInputRecord({ input: ctx.input });
|
|
169
|
+
const id = requireString({ input, key: "id" });
|
|
170
|
+
await routeDeps.requireToolPermission({ authorize: adaptLegacyAuthorize({ authorize: routeDeps.authorize }),
|
|
171
|
+
workspaceId: routeDeps.workspaceId, principalId: ctx.principal.id, permission: EXTERNAL_MCP_MANAGE_PERMISSION }, { entityType: EXTERNAL_MCP_ENTITY_TYPE, entityId: id });
|
|
172
|
+
const record = await routeDeps.externalMcpServerRepo.findByServerId({ workspaceId: routeDeps.workspaceId, serverId: id });
|
|
173
|
+
if (!record)
|
|
174
|
+
return { ok: false, reason: `no external MCP server is configured as '${id}'` };
|
|
175
|
+
if (!record.enabled)
|
|
176
|
+
return { ok: false, reason: "this server is disabled" };
|
|
177
|
+
// OAuth resolution inside a live probe may persist a grant, so cancellation must precede it.
|
|
178
|
+
ctx.signal.throwIfAborted();
|
|
179
|
+
if (!routeDeps.externalMcpProbe) {
|
|
180
|
+
return { ok: false, reason: "Live Test connection is unavailable in this session. Ask the operator to enable live probing or test the server in settings." };
|
|
181
|
+
}
|
|
182
|
+
const probe = await routeDeps.externalMcpProbe({ serverId: id });
|
|
183
|
+
return !probe.ok && probe.body.code === "MCP_AUTH_REJECTED" && record.authMode === "static_env"
|
|
184
|
+
? { ...probe, credentialSetup: routeDeps.issueCredentialSetup({ setupToolId: "external_mcp_save", prefill: { id } }, {}) }
|
|
185
|
+
: probe;
|
|
174
186
|
}
|
|
175
187
|
/**
|
|
176
188
|
* This wiring layer's OWN risk classification, authored from what each handler below actually
|
|
@@ -183,7 +195,7 @@ export const externalMcpDerivedRisk = new Map([
|
|
|
183
195
|
// -> routeDeps.saveExternalMcpServer(): repo.upsert() plus a seal, gated behind the human's own form
|
|
184
196
|
// confirmation (ADR-055-style held-open exchange, same shape as content_post_delete).
|
|
185
197
|
["external_mcp_save", "mutates-durable-state"],
|
|
186
|
-
// -> routeDeps.
|
|
198
|
+
// -> routeDeps.externalMcpProbe(): live connection and OAuth resolution may persist a refreshed grant.
|
|
187
199
|
["external_mcp_test_connection", "mutates-durable-state"],
|
|
188
200
|
// -> externalMcpOAuth.beginConnect(): writes oauthStatus 'pending' (and, for a self-configuring
|
|
189
201
|
// connection, persists a minted client identity) before returning the authorization/device
|
|
@@ -225,6 +237,20 @@ async function listExternalMcpConnections({ routeDeps, ctx }) {
|
|
|
225
237
|
const servers = await routeDeps.listExternalMcpServerViews({ deps: { repo: routeDeps.externalMcpServerRepo, sealer: routeDeps.siteAssistantSecretSealer }, workspaceId: routeDeps.workspaceId });
|
|
226
238
|
return { servers };
|
|
227
239
|
}
|
|
240
|
+
async function pollExternalMcpDeviceAuthorization({ routeDeps, ctx }, _optional = {}) {
|
|
241
|
+
const input = requireInputRecord({ input: ctx.input });
|
|
242
|
+
const id = requireString({ input, key: "id" });
|
|
243
|
+
await routeDeps.requireToolPermission({ authorize: adaptLegacyAuthorize({ authorize: routeDeps.authorize }),
|
|
244
|
+
workspaceId: routeDeps.workspaceId, principalId: ctx.principal.id, permission: EXTERNAL_MCP_MANAGE_PERMISSION }, { entityType: EXTERNAL_MCP_ENTITY_TYPE, entityId: id });
|
|
245
|
+
if (!routeDeps.externalMcpOAuth) {
|
|
246
|
+
throw new Error("external_mcp_oauth_poll_device: this execution context has no OAuth service wired, so this device authorization cannot be polled here.");
|
|
247
|
+
}
|
|
248
|
+
const result = await routeDeps.externalMcpOAuth.pollDeviceAuthorization({ serverId: id });
|
|
249
|
+
// Match the callback's roster fan-out only when the device authorization becomes usable.
|
|
250
|
+
if (result.status === "connected")
|
|
251
|
+
void routeDeps.notifyExternalMcpRosterChanged();
|
|
252
|
+
return result;
|
|
253
|
+
}
|
|
228
254
|
export function buildExternalMcpRegistrations(routeDeps, surfaces) {
|
|
229
255
|
const handlers = {
|
|
230
256
|
external_mcp_list: async (ctx) => listExternalMcpConnections({ routeDeps, ctx }),
|
|
@@ -236,47 +262,10 @@ export function buildExternalMcpRegistrations(routeDeps, surfaces) {
|
|
|
236
262
|
* silently" guarantee `agent-tools.ts`'s own description makes.
|
|
237
263
|
*/
|
|
238
264
|
external_mcp_save: externalMcpSaveHandler({ routeDeps, surfaces }),
|
|
239
|
-
|
|
240
|
-
external_mcp_test_connection: async (ctx) => {
|
|
241
|
-
const input = requireInputRecord({ input: ctx.input });
|
|
242
|
-
const id = requireString({ input, key: "id" });
|
|
243
|
-
await routeDeps.requireToolPermission({ authorize: adaptLegacyAuthorize({ authorize: routeDeps.authorize }),
|
|
244
|
-
workspaceId: routeDeps.workspaceId, principalId: ctx.principal.id, permission: EXTERNAL_MCP_MANAGE_PERMISSION }, { entityType: EXTERNAL_MCP_ENTITY_TYPE,
|
|
245
|
-
entityId: id });
|
|
246
|
-
const record = await routeDeps.externalMcpServerRepo.findByServerId({ workspaceId: routeDeps.workspaceId, serverId: id });
|
|
247
|
-
if (!record)
|
|
248
|
-
return { ok: false, reason: `no external MCP server is configured as '${id}'` };
|
|
249
|
-
if (!record.enabled)
|
|
250
|
-
return { ok: false, reason: "this server is disabled" };
|
|
251
|
-
// The probe is classed mutates-durable-state; a call cancelled during the lookup must not start it.
|
|
252
|
-
ctx.signal.throwIfAborted();
|
|
253
|
-
if (routeDeps.externalMcpProbe) {
|
|
254
|
-
const probe = await routeDeps.externalMcpProbe({ serverId: id });
|
|
255
|
-
return !probe.ok && probe.body.code === "MCP_AUTH_REJECTED" && record.authMode === "static_env"
|
|
256
|
-
? { ...probe, credentialSetup: routeDeps.issueCredentialSetup({ setupToolId: "external_mcp_save", prefill: { id } }, {}) }
|
|
257
|
-
: probe;
|
|
258
|
-
}
|
|
259
|
-
return resolveExternalMcpConfigurationCheck({ routeDeps, id });
|
|
260
|
-
},
|
|
265
|
+
external_mcp_test_connection: async (ctx) => testExternalMcpConnection({ routeDeps, ctx }),
|
|
261
266
|
/** See this file's header ("`external_mcp_oauth_connect` has no live HTTP request"). */
|
|
262
267
|
external_mcp_oauth_connect: async (ctx) => connectExternalMcpOAuth({ routeDeps, ctx }),
|
|
263
|
-
external_mcp_oauth_poll_device: async (ctx) => {
|
|
264
|
-
const input = requireInputRecord({ input: ctx.input });
|
|
265
|
-
const id = requireString({ input, key: "id" });
|
|
266
|
-
await routeDeps.requireToolPermission({ authorize: adaptLegacyAuthorize({ authorize: routeDeps.authorize }),
|
|
267
|
-
workspaceId: routeDeps.workspaceId, principalId: ctx.principal.id, permission: EXTERNAL_MCP_MANAGE_PERMISSION }, { entityType: EXTERNAL_MCP_ENTITY_TYPE,
|
|
268
|
-
entityId: id });
|
|
269
|
-
if (!routeDeps.externalMcpOAuth) {
|
|
270
|
-
throw new Error("external_mcp_oauth_poll_device: this execution context has no OAuth service wired, so this device " +
|
|
271
|
-
"authorization cannot be polled here.");
|
|
272
|
-
}
|
|
273
|
-
const result = await routeDeps.externalMcpOAuth.pollDeviceAuthorization({ serverId: id });
|
|
274
|
-
// Same roster-change fan-out as a completed browser OAuth callback — a device-flow connection
|
|
275
|
-
// becomes usable at exactly this "connected" transition, not at every "pending" poll in between.
|
|
276
|
-
if (result.status === "connected")
|
|
277
|
-
void routeDeps.notifyExternalMcpRosterChanged();
|
|
278
|
-
return result;
|
|
279
|
-
},
|
|
268
|
+
external_mcp_oauth_poll_device: async (ctx) => pollExternalMcpDeviceAuthorization({ routeDeps, ctx }),
|
|
280
269
|
};
|
|
281
270
|
// No `unwiredToolIds`: External MCP wires its ENTIRE catalog, same tripwire discipline as
|
|
282
271
|
// Posts/Themes/Plugins — a 6th catalog entry added without a handler fails the build.
|
|
@@ -55,8 +55,8 @@ export declare class SqlExternalMcpServerRepo implements ExternalMcpServerRepoPo
|
|
|
55
55
|
};
|
|
56
56
|
vaultErrors: HostedMcpVaultPorts["vaultErrors"];
|
|
57
57
|
}, _optional?: {});
|
|
58
|
-
/** One query hydrates both pointers
|
|
59
|
-
* @complexity O(
|
|
58
|
+
/** One query hydrates both pointers and returns the roster in binary server_id ascending order.
|
|
59
|
+
* @complexity O(n log n + envelope bytes); two indexed LEFT JOINs, no per-row I/O.
|
|
60
60
|
*/
|
|
61
61
|
private read;
|
|
62
62
|
listByWorkspaceId(workspaceId: UUID): Promise<ExternalMcpServerRecord[]>;
|
|
@@ -81,8 +81,8 @@ export class SqlExternalMcpServerRepo {
|
|
|
81
81
|
this.tables = tables;
|
|
82
82
|
this.vaultErrors = vaultErrors;
|
|
83
83
|
}
|
|
84
|
-
/** One query hydrates both pointers
|
|
85
|
-
* @complexity O(
|
|
84
|
+
/** One query hydrates both pointers and returns the roster in binary server_id ascending order.
|
|
85
|
+
* @complexity O(n log n + envelope bytes); two indexed LEFT JOINs, no per-row I/O.
|
|
86
86
|
*/
|
|
87
87
|
async read({ workspaceId, serverId }) {
|
|
88
88
|
const projection = ["env", "oauth"].flatMap(prefix => vaultColumns.map(column => {
|
|
@@ -91,10 +91,12 @@ export class SqlExternalMcpServerRepo {
|
|
|
91
91
|
return sql `${source} AS ${alias}`;
|
|
92
92
|
}));
|
|
93
93
|
const serverFilter = serverId === undefined ? sql `` : sql `AND s.server_id=${serverId}`;
|
|
94
|
+
// Database locale and join plans must not change the order of views or enabled configs.
|
|
95
|
+
const order = this.kernel.dialect === "sqlite" ? sql `s.server_id COLLATE BINARY` : sql `s.server_id COLLATE "C"`;
|
|
94
96
|
const rows = await this.kernel.query(sql `SELECT s.*, ${sql.join(projection)} FROM ${sql.table(this.tables.servers)} s
|
|
95
97
|
LEFT JOIN ${sql.table(this.tables.vault)} env ON env.workspace_id=s.workspace_id AND env.id=s.env_secret_id
|
|
96
98
|
LEFT JOIN ${sql.table(this.tables.vault)} oauth ON oauth.workspace_id=s.workspace_id AND oauth.id=s.oauth_secret_id
|
|
97
|
-
WHERE s.workspace_id=${workspaceId} ${serverFilter}`);
|
|
99
|
+
WHERE s.workspace_id=${workspaceId} ${serverFilter} ORDER BY ${order} ASC`);
|
|
98
100
|
return rows.map(toRecord);
|
|
99
101
|
}
|
|
100
102
|
async listByWorkspaceId(workspaceId) {
|
|
@@ -86,8 +86,7 @@ function parseJsonEnvBlock({ text, ports }, _options = {}) {
|
|
|
86
86
|
catch {
|
|
87
87
|
throw new ExternalMcpValidationError(ports.credential.messages.env, 'env');
|
|
88
88
|
}
|
|
89
|
-
|
|
90
|
-
throw new ExternalMcpValidationError(ports.credential.messages.env, 'env');
|
|
89
|
+
// Only the leading-"{" path calls this parser; successful JSON is an object.
|
|
91
90
|
const entries = Object.entries(parsed);
|
|
92
91
|
if (entries.length > MAX_ENV_VARS)
|
|
93
92
|
throw new ExternalMcpValidationError(`at most ${MAX_ENV_VARS} environment variables are supported`, 'env');
|
|
@@ -156,7 +155,7 @@ export function assertValidExternalMcpServerId({ serverId }, _optional = {}) {
|
|
|
156
155
|
assertValidConnectionId({ connectionId: serverId });
|
|
157
156
|
}
|
|
158
157
|
catch (err) {
|
|
159
|
-
throw new ExternalMcpValidationError(err
|
|
158
|
+
throw new ExternalMcpValidationError(err.message, "id");
|
|
160
159
|
}
|
|
161
160
|
}
|
|
162
161
|
export function assertSupportedExternalMcpTransport({ transport }, _optional = {}) {
|
|
@@ -62,7 +62,10 @@ export class InMemoryExternalMcpServerRepo {
|
|
|
62
62
|
return saved;
|
|
63
63
|
}
|
|
64
64
|
async listByWorkspaceId(workspaceId) {
|
|
65
|
-
|
|
65
|
+
// Compare UTF-8 bytes to match SQLite BINARY and PostgreSQL C, without host locale rules.
|
|
66
|
+
const rows = [...this.rows.values()].filter(row => row.workspaceId === workspaceId)
|
|
67
|
+
.sort((a, b) => Buffer.compare(Buffer.from(a.serverId), Buffer.from(b.serverId)));
|
|
68
|
+
return Promise.all(rows.map(record => this.hydrate({ record })));
|
|
66
69
|
}
|
|
67
70
|
async findByServerId(input) {
|
|
68
71
|
const record = this.rows.get(keyOf(input.workspaceId, input.serverId));
|
|
@@ -25,11 +25,11 @@ function sendOverHttp({ url, init }) {
|
|
|
25
25
|
const outgoing = request(url, { method: init.method ?? 'GET', headers: Object.fromEntries(new Headers(init.headers)), ...(signal ? { signal } : {}) }, incoming => {
|
|
26
26
|
const headers = new Headers();
|
|
27
27
|
for (const [name, value] of Object.entries(incoming.headers))
|
|
28
|
-
for (const item of [value
|
|
28
|
+
for (const item of [value].flat())
|
|
29
29
|
headers.append(name, item);
|
|
30
|
-
const status = incoming.statusCode
|
|
30
|
+
const status = incoming.statusCode;
|
|
31
31
|
const body = hasNoBody({ status }) ? null : Readable.toWeb(incoming);
|
|
32
|
-
resolve(new Response(body, { status, statusText: incoming.statusMessage
|
|
32
|
+
resolve(new Response(body, { status, statusText: incoming.statusMessage, headers }));
|
|
33
33
|
});
|
|
34
34
|
// Same rejections as `fetch`: the signal's reason on abort, else 'fetch failed' carrying the socket error as its cause.
|
|
35
35
|
outgoing.on('error', error => reject(signal?.aborted ? signal.reason : new TypeError('fetch failed', { cause: error })));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jini-ai/mcp",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"description": "Model Context Protocol adapters: server config schema and IO, an MCP client, and agent-side MCP server installation.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"./react/external-mcp/hooks/use-external-mcp.hooks": "browser"
|
|
39
39
|
},
|
|
40
40
|
"optionalPeers": {
|
|
41
|
-
"kysely": "opt-in: hosted MCP SQL — Install kysely to use the hosted MCP SQL repository.",
|
|
42
|
-
"react": "opt-in: react browser bindings; import @jini-ai/mcp/react/external-mcp/
|
|
41
|
+
"kysely": "opt-in: hosted MCP SQL; import @jini-ai/mcp/federation/hosted/external-mcp-repo — Install kysely to use the hosted MCP SQL repository.",
|
|
42
|
+
"react": "opt-in: react browser bindings; import @jini-ai/mcp/react/external-mcp/ExternalMcpSettingsPanel — React browser bindings could not load react. Install react to enable this feature, or check its installed version."
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"type": "module",
|
|
@@ -185,10 +185,11 @@
|
|
|
185
185
|
"dependencies": {
|
|
186
186
|
"@cfworker/json-schema": "^4.1.1",
|
|
187
187
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
188
|
-
"@jini-ai/
|
|
189
|
-
"@jini-ai/
|
|
188
|
+
"@jini-ai/protocol": "^0.7.4",
|
|
189
|
+
"@jini-ai/core": "^0.7.4"
|
|
190
190
|
},
|
|
191
191
|
"devDependencies": {
|
|
192
|
+
"@electric-sql/pglite": "0.5.8",
|
|
192
193
|
"@cfworker/json-schema": "^4.1.1",
|
|
193
194
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
194
195
|
"kysely": "^0.29.6",
|
|
@@ -198,11 +199,11 @@
|
|
|
198
199
|
"react-dom": "^19.2.0",
|
|
199
200
|
"@types/react-dom": "^19.2.0",
|
|
200
201
|
"jsdom": "^26.1.0",
|
|
201
|
-
"@jini-ai/
|
|
202
|
-
"@jini-ai/
|
|
203
|
-
"@jini-ai/
|
|
204
|
-
"@jini-ai/
|
|
205
|
-
"@jini-ai/admin": "^0.7.
|
|
202
|
+
"@jini-ai/daemon": "^0.7.4",
|
|
203
|
+
"@jini-ai/core": "^0.7.4",
|
|
204
|
+
"@jini-ai/platform": "^0.7.4",
|
|
205
|
+
"@jini-ai/ui": "^0.7.4",
|
|
206
|
+
"@jini-ai/admin": "^0.7.4"
|
|
206
207
|
},
|
|
207
208
|
"peerDependencies": {
|
|
208
209
|
"kysely": "^0.29.6",
|