@jini-ai/mcp 0.6.23 → 0.7.0
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 +22 -0
- package/dist/agent-install/index.d.ts +1 -0
- package/dist/agent-install/index.js +1 -0
- package/dist/agent-install/install.d.ts +2 -1
- package/dist/agent-install/install.js +28 -6
- package/dist/agent-install/owned-json-install.d.ts +12 -0
- package/dist/agent-install/owned-json-install.js +48 -0
- package/dist/federation/adapter.http.d.ts +3 -6
- package/dist/federation/bootstrap.js +15 -2
- package/dist/federation/config.d.ts +3 -0
- package/dist/federation/frozen-grants.d.ts +11 -1
- package/dist/federation/frozen-grants.js +14 -0
- package/dist/federation/hosted/access.d.ts +92 -0
- package/dist/federation/hosted/access.js +116 -0
- package/dist/federation/hosted/auth.d.ts +69 -0
- package/dist/federation/hosted/auth.js +70 -0
- package/dist/federation/hosted/connection-gate.d.ts +83 -0
- package/dist/federation/hosted/connection-gate.js +107 -0
- package/dist/federation/hosted/index.d.ts +14 -0
- package/dist/federation/hosted/index.js +13 -0
- package/dist/federation/hosted/projections.d.ts +15 -0
- package/dist/federation/hosted/projections.js +15 -0
- package/dist/federation/hosted/revocation.d.ts +70 -0
- package/dist/federation/hosted/revocation.js +78 -0
- package/dist/federation/hosted/store-ports.d.ts +95 -0
- package/dist/federation/hosted/store-ports.js +2 -0
- package/dist/federation/hosted/store.d.ts +211 -0
- package/dist/federation/hosted/store.js +1441 -0
- package/dist/federation/hosted/store.memory.d.ts +41 -0
- package/dist/federation/hosted/store.memory.js +149 -0
- package/dist/federation/hosted/unconfigured-error.d.ts +7 -0
- package/dist/federation/hosted/unconfigured-error.js +10 -0
- package/dist/federation/hosted/validation-error.d.ts +8 -0
- package/dist/federation/hosted/validation-error.js +12 -0
- package/dist/federation/hosted/vault.d.ts +68 -0
- package/dist/federation/hosted/vault.js +106 -0
- package/dist/federation/hosted/vocabulary.d.ts +17 -0
- package/dist/federation/hosted/vocabulary.js +17 -0
- package/dist/federation/index.d.ts +1 -0
- package/dist/federation/index.js +1 -0
- package/dist/federation/ports.d.ts +4 -0
- package/dist/federation/registrations.js +1 -0
- package/dist/federation/stdio/default-connect.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/server/{http-tool-server.d.ts → http-tool-server.adapter.d.ts} +1 -1
- package/dist/server/{http-tool-server.js → http-tool-server.adapter.js} +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/tool-result-pages.d.ts +1 -1
- package/package.json +14 -8
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ISODateTime, UUID } from "@jini-ai/core/primitives";
|
|
2
|
+
import type { ExternalMcpAccessUpdate, ExternalMcpServerRecord, ExternalMcpServerRepoPort } from "@jini-ai/core/contracts/hosted-mcp";
|
|
3
|
+
import type { HostedMcpVaultPorts } from "./store-ports.js";
|
|
4
|
+
/** @agent-note A test/first-adapter repository. The host binds `vault.createMemoryRepo` (a fresh, empty host in-memory vault repo per call) and `vaultErrors` once; the store using this repository must import envelopes from the same `./vault.js` instance. Writes are serialized on one queue, so lease CAS and access CAS are indivisible per instance. */
|
|
5
|
+
export declare class InMemoryExternalMcpServerRepo implements ExternalMcpServerRepoPort {
|
|
6
|
+
private readonly ports;
|
|
7
|
+
private readonly rows;
|
|
8
|
+
private readonly vaults;
|
|
9
|
+
private pending;
|
|
10
|
+
constructor(ports: Pick<HostedMcpVaultPorts, "vault" | "vaultErrors">);
|
|
11
|
+
private write;
|
|
12
|
+
/** Clone only one server's encrypted state; an aborted write leaves the live adapter intact. */
|
|
13
|
+
private stage;
|
|
14
|
+
private hydrate;
|
|
15
|
+
listByWorkspaceId(workspaceId: UUID): Promise<ExternalMcpServerRecord[]>;
|
|
16
|
+
findByServerId(input: {
|
|
17
|
+
workspaceId: UUID;
|
|
18
|
+
serverId: string;
|
|
19
|
+
}): Promise<ExternalMcpServerRecord | null>;
|
|
20
|
+
upsert(record: ExternalMcpServerRecord): Promise<void>;
|
|
21
|
+
/** The existing write queue makes snapshot comparison and access replacement indivisible.
|
|
22
|
+
* No vault operation runs, so concurrent OAuth refresh payloads remain exactly as stored.
|
|
23
|
+
* @complexity O(a+w) bounded grant bytes, O(1) row lookup and replacement.
|
|
24
|
+
*/
|
|
25
|
+
updateAccessIfCurrent(input: ExternalMcpAccessUpdate, _options?: {}): Promise<boolean>;
|
|
26
|
+
deleteByServerId(input: {
|
|
27
|
+
workspaceId: UUID;
|
|
28
|
+
serverId: string;
|
|
29
|
+
}): Promise<boolean>;
|
|
30
|
+
tryClaimOAuthRefreshLease(input: {
|
|
31
|
+
workspaceId: UUID;
|
|
32
|
+
serverId: string;
|
|
33
|
+
nowIso: ISODateTime;
|
|
34
|
+
leaseUntil: ISODateTime;
|
|
35
|
+
}): Promise<boolean>;
|
|
36
|
+
releaseOAuthRefreshLease(input: {
|
|
37
|
+
workspaceId: UUID;
|
|
38
|
+
serverId: string;
|
|
39
|
+
}): Promise<void>;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=store.memory.d.ts.map
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { isDeepStrictEqual } from "node:util";
|
|
2
|
+
import { externalMcpVaultEnvelope, externalMcpVaultRecord, persistExternalMcpVaultEnvelope, deleteExternalMcpVaultEnvelope } from "./vault.js";
|
|
3
|
+
import { externalMcpAccessSnapshot } from "./access.js";
|
|
4
|
+
/**
|
|
5
|
+
* @file In-memory `ExternalMcpServerRepoPort` — the in-memory adapter, and the
|
|
6
|
+
* double every store/route test binds instead of a real database.
|
|
7
|
+
*
|
|
8
|
+
* Keyed by `workspaceId` + `serverId` exactly as the table's composite primary key is, so a test
|
|
9
|
+
* that leaks rows across workspaces fails here the same way it would against SQLite.
|
|
10
|
+
*
|
|
11
|
+
* {@link InMemoryExternalMcpServerRepo.tryClaimOAuthRefreshLease} reproduces the SQLite adapter's
|
|
12
|
+
* compare-and-set SEMANTICS rather than its statement. It is genuinely atomic here for the reason
|
|
13
|
+
* that matters in a test — JavaScript's single-threaded turn boundary means the read and the write
|
|
14
|
+
* cannot be interleaved by another caller — so a test that asserts "the second claimant loses"
|
|
15
|
+
* exercises the same contract the conditional UPDATE provides in production.
|
|
16
|
+
*/
|
|
17
|
+
function keyOf(workspaceId, serverId) {
|
|
18
|
+
return `${workspaceId} ${serverId}`;
|
|
19
|
+
}
|
|
20
|
+
const ENVELOPE_FIELDS = [["mcp-env", "sealedEnv"], ["mcp-auth", "sealedOAuth"]];
|
|
21
|
+
/** A row's present envelopes as validated vault records, env first; throws VaultError("context")
|
|
22
|
+
* when an envelope is not bound to this server and kind. @complexity O(1), at most two envelopes. */
|
|
23
|
+
function storedEnvelopes({ record, vaultErrors }, _options = {}) {
|
|
24
|
+
if (!record)
|
|
25
|
+
return [];
|
|
26
|
+
return ENVELOPE_FIELDS.flatMap(([kind, field]) => {
|
|
27
|
+
const sealed = record[field];
|
|
28
|
+
return sealed ? [{ kind, field, vault: externalMcpVaultRecord({ sealed, identity: record, kind, vaultErrors }) }] : [];
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/** The envelope stored under `id` in `repo`, or null when the row carries none of that kind. */
|
|
32
|
+
async function envelopeAt({ repo, workspaceId, id }, _options = {}) {
|
|
33
|
+
return id ? externalMcpVaultEnvelope({ record: (await repo.find({ workspaceId, id })) }) : null;
|
|
34
|
+
}
|
|
35
|
+
/** @agent-note A test/first-adapter repository. The host binds `vault.createMemoryRepo` (a fresh, empty host in-memory vault repo per call) and `vaultErrors` once; the store using this repository must import envelopes from the same `./vault.js` instance. Writes are serialized on one queue, so lease CAS and access CAS are indivisible per instance. */
|
|
36
|
+
export class InMemoryExternalMcpServerRepo {
|
|
37
|
+
ports;
|
|
38
|
+
rows = new Map();
|
|
39
|
+
vaults = new Map();
|
|
40
|
+
pending = Promise.resolve();
|
|
41
|
+
constructor(ports) {
|
|
42
|
+
this.ports = ports;
|
|
43
|
+
}
|
|
44
|
+
write(body) {
|
|
45
|
+
const result = this.pending.then(body);
|
|
46
|
+
this.pending = result.catch(() => { });
|
|
47
|
+
return result;
|
|
48
|
+
}
|
|
49
|
+
/** Clone only one server's encrypted state; an aborted write leaves the live adapter intact. */
|
|
50
|
+
async stage({ previous }) {
|
|
51
|
+
const repo = this.ports.vault.createMemoryRepo();
|
|
52
|
+
for (const { vault } of storedEnvelopes({ record: previous, vaultErrors: this.ports.vaultErrors }))
|
|
53
|
+
await repo.put({ record: { ...vault, revision: 1 }, expectedRevision: null });
|
|
54
|
+
return repo;
|
|
55
|
+
}
|
|
56
|
+
async hydrate({ record }) {
|
|
57
|
+
const repo = this.vaults.get(keyOf(record.workspaceId, record.serverId));
|
|
58
|
+
const saved = { ...record };
|
|
59
|
+
for (const { field, vault } of storedEnvelopes({ record, vaultErrors: this.ports.vaultErrors })) {
|
|
60
|
+
saved[field] = await envelopeAt({ repo, workspaceId: record.workspaceId, id: vault.id });
|
|
61
|
+
}
|
|
62
|
+
return saved;
|
|
63
|
+
}
|
|
64
|
+
async listByWorkspaceId(workspaceId) {
|
|
65
|
+
return Promise.all([...this.rows.values()].filter(row => row.workspaceId === workspaceId).map(record => this.hydrate({ record })));
|
|
66
|
+
}
|
|
67
|
+
async findByServerId(input) {
|
|
68
|
+
const record = this.rows.get(keyOf(input.workspaceId, input.serverId));
|
|
69
|
+
return record ? this.hydrate({ record }) : null;
|
|
70
|
+
}
|
|
71
|
+
async upsert(record) {
|
|
72
|
+
await this.write(async () => {
|
|
73
|
+
const key = keyOf(record.workspaceId, record.serverId);
|
|
74
|
+
const previous = this.rows.get(key);
|
|
75
|
+
// Stage a fresh Jini memory repository: failures leave both payloads and the row untouched.
|
|
76
|
+
// Only this server's two envelopes are copied, so a save is bounded independently of roster size.
|
|
77
|
+
const repo = await this.stage({ previous });
|
|
78
|
+
const ids = {
|
|
79
|
+
"mcp-env": await persistExternalMcpVaultEnvelope({ repo, sealed: record.sealedEnv, identity: record, kind: "mcp-env", vaultErrors: this.ports.vaultErrors }),
|
|
80
|
+
"mcp-auth": await persistExternalMcpVaultEnvelope({ repo, sealed: record.sealedOAuth, identity: record, kind: "mcp-auth", vaultErrors: this.ports.vaultErrors }),
|
|
81
|
+
};
|
|
82
|
+
for (const { kind, vault } of storedEnvelopes({ record: previous, vaultErrors: this.ports.vaultErrors })) {
|
|
83
|
+
if (vault.id !== ids[kind])
|
|
84
|
+
await deleteExternalMcpVaultEnvelope({ repo, workspaceId: record.workspaceId, id: vault.id });
|
|
85
|
+
}
|
|
86
|
+
// Publish both together only after all staged writes/deletes have succeeded.
|
|
87
|
+
const saved = { ...record,
|
|
88
|
+
sealedEnv: await envelopeAt({ repo, workspaceId: record.workspaceId, id: ids["mcp-env"] }),
|
|
89
|
+
sealedOAuth: await envelopeAt({ repo, workspaceId: record.workspaceId, id: ids["mcp-auth"] }),
|
|
90
|
+
};
|
|
91
|
+
this.vaults.set(key, repo);
|
|
92
|
+
this.rows.set(key, saved);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/** The existing write queue makes snapshot comparison and access replacement indivisible.
|
|
96
|
+
* No vault operation runs, so concurrent OAuth refresh payloads remain exactly as stored.
|
|
97
|
+
* @complexity O(a+w) bounded grant bytes, O(1) row lookup and replacement.
|
|
98
|
+
*/
|
|
99
|
+
async updateAccessIfCurrent(input, _options = {}) {
|
|
100
|
+
return this.write(async () => {
|
|
101
|
+
const key = keyOf(input.workspaceId, input.serverId);
|
|
102
|
+
const row = this.rows.get(key);
|
|
103
|
+
if (!row || !isDeepStrictEqual(externalMcpAccessSnapshot({ record: row }), input.expected))
|
|
104
|
+
return false;
|
|
105
|
+
this.rows.set(key, { ...row, ...input.access, writeGrantsUpdatedByPrincipalId: input.principalId,
|
|
106
|
+
writeGrantsUpdatedAt: input.nowIso, updatedAt: input.nowIso });
|
|
107
|
+
return true;
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
async deleteByServerId(input) {
|
|
111
|
+
return this.write(async () => {
|
|
112
|
+
const key = keyOf(input.workspaceId, input.serverId);
|
|
113
|
+
const previous = this.rows.get(key);
|
|
114
|
+
if (!previous)
|
|
115
|
+
return false;
|
|
116
|
+
const repo = await this.stage({ previous });
|
|
117
|
+
// The staged row is detached; live state is published only after Jini deletes both payloads.
|
|
118
|
+
for (const { vault } of storedEnvelopes({ record: previous, vaultErrors: this.ports.vaultErrors })) {
|
|
119
|
+
await deleteExternalMcpVaultEnvelope({ repo, workspaceId: input.workspaceId, id: vault.id });
|
|
120
|
+
}
|
|
121
|
+
this.rows.delete(key);
|
|
122
|
+
this.vaults.delete(key);
|
|
123
|
+
return true;
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
async tryClaimOAuthRefreshLease(input) {
|
|
127
|
+
return this.write(async () => {
|
|
128
|
+
const row = this.rows.get(keyOf(input.workspaceId, input.serverId));
|
|
129
|
+
if (!row)
|
|
130
|
+
return false;
|
|
131
|
+
const held = row.oauthRefreshLeaseUntil;
|
|
132
|
+
// A lease at or before `nowIso` is abandoned — a process that crashed mid-refresh must not wedge
|
|
133
|
+
// the connection until something is restarted.
|
|
134
|
+
if (held !== null && Date.parse(held) > Date.parse(input.nowIso))
|
|
135
|
+
return false;
|
|
136
|
+
this.rows.set(keyOf(input.workspaceId, input.serverId), { ...row, oauthRefreshLeaseUntil: input.leaseUntil });
|
|
137
|
+
return true;
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
async releaseOAuthRefreshLease(input) {
|
|
141
|
+
await this.write(async () => {
|
|
142
|
+
const row = this.rows.get(keyOf(input.workspaceId, input.serverId));
|
|
143
|
+
if (!row)
|
|
144
|
+
return;
|
|
145
|
+
this.rows.set(keyOf(input.workspaceId, input.serverId), { ...row, oauthRefreshLeaseUntil: null });
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=store.memory.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Raised when sealing fails because no site key is configured — distinct from a validation error,
|
|
2
|
+
* because nothing the operator types can fix it. */
|
|
3
|
+
/** @agent-note The ONE canonical "no site key" error class, thrown by the store when sealing cannot run; hosts map it by `instanceof` (plugin `classifyError` → `unconfigured`). Never rebuild it elsewhere. */
|
|
4
|
+
export declare class ExternalMcpSecretStoreUnconfiguredError extends Error {
|
|
5
|
+
constructor(message: string);
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=unconfigured-error.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Raised when sealing fails because no site key is configured — distinct from a validation error,
|
|
2
|
+
* because nothing the operator types can fix it. */
|
|
3
|
+
/** @agent-note The ONE canonical "no site key" error class, thrown by the store when sealing cannot run; hosts map it by `instanceof` (plugin `classifyError` → `unconfigured`). Never rebuild it elsewhere. */
|
|
4
|
+
export class ExternalMcpSecretStoreUnconfiguredError extends Error {
|
|
5
|
+
constructor(message) {
|
|
6
|
+
super(message);
|
|
7
|
+
this.name = "ExternalMcpSecretStoreUnconfiguredError";
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=unconfigured-error.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Raised when operator-supplied input cannot be stored. Carries `field` so a route can point the
|
|
2
|
+
* form at the offending input rather than rejecting the whole submission opaquely. */
|
|
3
|
+
/** @agent-note The ONE canonical validation error class: hosts and seams recognize it by `instanceof` (plugin `classifyError` → `validation`, sign-in refusal). Never subclass-copy or rebuild it elsewhere; `name` and `field` are part of its identity. */
|
|
4
|
+
export declare class ExternalMcpValidationError extends Error {
|
|
5
|
+
readonly field: string;
|
|
6
|
+
constructor(message: string, field: string);
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=validation-error.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Raised when operator-supplied input cannot be stored. Carries `field` so a route can point the
|
|
2
|
+
* form at the offending input rather than rejecting the whole submission opaquely. */
|
|
3
|
+
/** @agent-note The ONE canonical validation error class: hosts and seams recognize it by `instanceof` (plugin `classifyError` → `validation`, sign-in refusal). Never subclass-copy or rebuild it elsewhere; `name` and `field` are part of its identity. */
|
|
4
|
+
export class ExternalMcpValidationError extends Error {
|
|
5
|
+
field;
|
|
6
|
+
constructor(message, field) {
|
|
7
|
+
super(message);
|
|
8
|
+
this.field = field;
|
|
9
|
+
this.name = "ExternalMcpValidationError";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=validation-error.js.map
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { KeyringPort, SealedSecret, SecretSealerPort, VaultMeta, VaultRecord, VaultRepoPort } from "@jini-ai/core/contracts/vault";
|
|
2
|
+
import type { HostedMcpVaultPorts } from "./store-ports.js";
|
|
3
|
+
/** Expected owner of an envelope: the workspace and the server row it belongs to. */
|
|
4
|
+
/** @agent-note Supplied by the caller from the row being read or written, never inferred from an envelope. */
|
|
5
|
+
export type Identity = {
|
|
6
|
+
workspaceId: string;
|
|
7
|
+
serverId: string;
|
|
8
|
+
};
|
|
9
|
+
/** The two saved vault kinds an MCP row can carry. */
|
|
10
|
+
/** @agent-note Saved format: these strings are authenticated vault kinds (AAD); never rename. */
|
|
11
|
+
export type Kind = "mcp-env" | "mcp-auth";
|
|
12
|
+
/** @agent-note This module is the ONE envelope module: its two private symbols are shared by the host SQL repository, the in-memory repository, the store and every host shim, so all of them must import it from this same module instance (one copy loaded). Only a repository rebuilds the context, from its own stored vault row. */
|
|
13
|
+
export declare function externalMcpVaultEnvelope({ record }: {
|
|
14
|
+
record: VaultRecord;
|
|
15
|
+
}, { staged }?: {
|
|
16
|
+
staged?: boolean;
|
|
17
|
+
}): SealedSecret | null;
|
|
18
|
+
/** Validate the expected server/kind before a read or write; never infer authorization from a row. */
|
|
19
|
+
/** @agent-note `vaultErrors` is the host-bound factory; a missing or foreign context throws its `context` error before any crypto. */
|
|
20
|
+
export declare function externalMcpVaultRecord({ sealed, identity, kind, vaultErrors }: {
|
|
21
|
+
sealed: SealedSecret;
|
|
22
|
+
identity: Identity;
|
|
23
|
+
kind: Kind;
|
|
24
|
+
vaultErrors: HostedMcpVaultPorts["vaultErrors"];
|
|
25
|
+
}, _options?: {}): VaultRecord;
|
|
26
|
+
/** Stage ciphertext through Jini; the host repository commits it with pointers/status/expiry.
|
|
27
|
+
* @complexity O(payload bytes), one seal, no database I/O before the host transaction.
|
|
28
|
+
*/
|
|
29
|
+
/** @agent-note `deps` carries the per-call sealer/keyring plus the host-bound vault ports. Exactly one seal; the id is generated here, before the put, and the envelope is returned staged for the host repository's own transaction. */
|
|
30
|
+
export declare function sealExternalMcpVaultPayload({ deps, identity, kind, payload }: {
|
|
31
|
+
deps: {
|
|
32
|
+
sealer: SecretSealerPort;
|
|
33
|
+
keyring: KeyringPort;
|
|
34
|
+
} & HostedMcpVaultPorts;
|
|
35
|
+
identity: Identity;
|
|
36
|
+
kind: Kind;
|
|
37
|
+
payload: VaultMeta;
|
|
38
|
+
}, _options?: {}): Promise<SealedSecret>;
|
|
39
|
+
/** Opening a hydrated envelope performs no extra SQL; legacy AAD belongs to boot normalization.
|
|
40
|
+
* @complexity O(payload bytes), one open; expected ownership is checked before crypto.
|
|
41
|
+
*/
|
|
42
|
+
/** @agent-note `ports` are the host-bound vault ports. Exactly one `sealer.open`; ownership and kind are checked before it, and the seal/keyring sides are fail-closed. */
|
|
43
|
+
export declare function openExternalMcpVaultPayload({ sealer, sealed, identity, kind, ports }: {
|
|
44
|
+
sealer: Pick<SecretSealerPort, "open">;
|
|
45
|
+
sealed: SealedSecret;
|
|
46
|
+
identity: Identity;
|
|
47
|
+
kind: Kind;
|
|
48
|
+
ports: HostedMcpVaultPorts;
|
|
49
|
+
}, _options?: {}): Promise<VaultMeta>;
|
|
50
|
+
/** Persist staged envelopes with Jini CAS; carried envelopes must still exist byte-for-byte.
|
|
51
|
+
* @complexity Constant indexed reads/writes per envelope; callers own the surrounding transaction.
|
|
52
|
+
*/
|
|
53
|
+
/** @agent-note Called by a host repository inside its own transaction with its own vault repo; `vaultErrors` is the host-bound factory. A carried (non-staged) envelope must still exist byte-for-byte, otherwise `conflict`. */
|
|
54
|
+
export declare function persistExternalMcpVaultEnvelope({ repo, sealed, identity, kind, vaultErrors }: {
|
|
55
|
+
repo: VaultRepoPort;
|
|
56
|
+
sealed: SealedSecret | null;
|
|
57
|
+
identity: Identity;
|
|
58
|
+
kind: Kind;
|
|
59
|
+
vaultErrors: HostedMcpVaultPorts["vaultErrors"];
|
|
60
|
+
}, _options?: {}): Promise<string | null>;
|
|
61
|
+
/** Call only after unlinking the server pointer; read the revision after any default changes. */
|
|
62
|
+
/** @agent-note Uses the caller's repo inside the caller's transaction; deletes at the revision it just read. */
|
|
63
|
+
export declare function deleteExternalMcpVaultEnvelope({ repo, workspaceId, id }: {
|
|
64
|
+
repo: VaultRepoPort;
|
|
65
|
+
workspaceId: string;
|
|
66
|
+
id: string | null;
|
|
67
|
+
}, _options?: {}): Promise<void>;
|
|
68
|
+
//# sourceMappingURL=vault.d.ts.map
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
2
|
+
const contextKey = Symbol("external-mcp-vault-context");
|
|
3
|
+
const stagedKey = Symbol("external-mcp-staged");
|
|
4
|
+
// The public MCP row still carries opaque envelopes. A non-enumerable context travels with each
|
|
5
|
+
// envelope in memory; only its vault ID is persisted on the server. No plaintext cache or registry.
|
|
6
|
+
/** @agent-note This module is the ONE envelope module: its two private symbols are shared by the host SQL repository, the in-memory repository, the store and every host shim, so all of them must import it from this same module instance (one copy loaded). Only a repository rebuilds the context, from its own stored vault row. */
|
|
7
|
+
export function externalMcpVaultEnvelope({ record }, { staged = false } = {}) {
|
|
8
|
+
if (!record.sealed)
|
|
9
|
+
return null;
|
|
10
|
+
const { sealed, ...context } = record;
|
|
11
|
+
return Object.defineProperties({ ...sealed }, { [contextKey]: { value: context }, [stagedKey]: { value: staged } });
|
|
12
|
+
}
|
|
13
|
+
/** Validate the expected server/kind before a read or write; never infer authorization from a row. */
|
|
14
|
+
/** @agent-note `vaultErrors` is the host-bound factory; a missing or foreign context throws its `context` error before any crypto. */
|
|
15
|
+
export function externalMcpVaultRecord({ sealed, identity, kind, vaultErrors }, _options = {}) {
|
|
16
|
+
const context = sealed[contextKey];
|
|
17
|
+
if (!context)
|
|
18
|
+
throw vaultErrors.create({ code: "context" });
|
|
19
|
+
const invalidOwner = context.workspaceId !== identity.workspaceId || context.ownerKey !== identity.serverId;
|
|
20
|
+
const invalidScope = context.kind !== kind || context.principalId !== null || context.binding !== null;
|
|
21
|
+
if (invalidOwner || invalidScope)
|
|
22
|
+
throw vaultErrors.create({ code: "context" });
|
|
23
|
+
return { ...context, sealed: { keyId: sealed.keyId, ciphertext: sealed.ciphertext, nonce: sealed.nonce, alg: sealed.alg } };
|
|
24
|
+
}
|
|
25
|
+
function service({ repo, sealer, keyring, identity, kind, ports }) {
|
|
26
|
+
const { vaultErrors } = ports;
|
|
27
|
+
// Refuse a foreign kind before its metadata parser or any crypto can run.
|
|
28
|
+
if (kind !== "mcp-env" && kind !== "mcp-auth")
|
|
29
|
+
throw vaultErrors.create({ code: "context" });
|
|
30
|
+
const metaParsers = ports.metaParsers({
|
|
31
|
+
validateMeta: ({ kind: requested, meta }) => {
|
|
32
|
+
if (requested !== "mcp-env" && requested !== "mcp-auth")
|
|
33
|
+
throw vaultErrors.create({ code: "context" });
|
|
34
|
+
return meta;
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
return ports.vault.createService({ repo, sealer, keyring, metaParsers,
|
|
38
|
+
authorize: async ({ context }) => {
|
|
39
|
+
if (context.workspaceId !== identity.workspaceId || context.ownerKey !== identity.serverId ||
|
|
40
|
+
context.kind !== kind || context.principalId !== null)
|
|
41
|
+
throw vaultErrors.create({ code: "context" });
|
|
42
|
+
}, now: () => new Date().toISOString(), newId: () => randomUUID() });
|
|
43
|
+
}
|
|
44
|
+
/** Stage ciphertext through Jini; the host repository commits it with pointers/status/expiry.
|
|
45
|
+
* @complexity O(payload bytes), one seal, no database I/O before the host transaction.
|
|
46
|
+
*/
|
|
47
|
+
/** @agent-note `deps` carries the per-call sealer/keyring plus the host-bound vault ports. Exactly one seal; the id is generated here, before the put, and the envelope is returned staged for the host repository's own transaction. */
|
|
48
|
+
export async function sealExternalMcpVaultPayload({ deps, identity, kind, payload }, _options = {}) {
|
|
49
|
+
const repo = deps.vault.createMemoryRepo();
|
|
50
|
+
const id = randomUUID();
|
|
51
|
+
const saved = await service({ repo, sealer: deps.sealer, keyring: deps.keyring, identity, kind, ports: deps }).put({ workspaceId: identity.workspaceId,
|
|
52
|
+
kind, ownerKey: identity.serverId, principalId: null, binding: null, expectedRevision: null,
|
|
53
|
+
id, provider: null, label: id, meta: {}, payload });
|
|
54
|
+
const record = await repo.find(saved);
|
|
55
|
+
if (!record?.sealed)
|
|
56
|
+
throw deps.vaultErrors.create({ code: "invalid-record" });
|
|
57
|
+
return externalMcpVaultEnvelope({ record }, { staged: true });
|
|
58
|
+
}
|
|
59
|
+
/** Opening a hydrated envelope performs no extra SQL; legacy AAD belongs to boot normalization.
|
|
60
|
+
* @complexity O(payload bytes), one open; expected ownership is checked before crypto.
|
|
61
|
+
*/
|
|
62
|
+
/** @agent-note `ports` are the host-bound vault ports. Exactly one `sealer.open`; ownership and kind are checked before it, and the seal/keyring sides are fail-closed. */
|
|
63
|
+
export async function openExternalMcpVaultPayload({ sealer, sealed, identity, kind, ports }, _options = {}) {
|
|
64
|
+
const record = externalMcpVaultRecord({ sealed, identity, kind, vaultErrors: ports.vaultErrors });
|
|
65
|
+
const repo = ports.vault.createMemoryRepo();
|
|
66
|
+
await repo.put({ record: { ...record, revision: 1 }, expectedRevision: null });
|
|
67
|
+
// Reads never acquire a sealing key. These fail-closed ports guard accidental future writes.
|
|
68
|
+
const unavailable = async () => { throw ports.vaultErrors.create({ code: "invalid-record" }); };
|
|
69
|
+
const vault = service({ repo, identity, kind, sealer: { open: sealer.open.bind(sealer), seal: unavailable },
|
|
70
|
+
keyring: { activeKey: unavailable, deriveSigningSecret: unavailable, derive: unavailable }, ports });
|
|
71
|
+
const opened = await vault.get({ workspaceId: identity.workspaceId, id: record.id, kind,
|
|
72
|
+
ownerKey: identity.serverId, principalId: null, binding: null });
|
|
73
|
+
if (!opened?.payload)
|
|
74
|
+
throw ports.vaultErrors.create({ code: "invalid-record" });
|
|
75
|
+
return opened.payload;
|
|
76
|
+
}
|
|
77
|
+
/** Persist staged envelopes with Jini CAS; carried envelopes must still exist byte-for-byte.
|
|
78
|
+
* @complexity Constant indexed reads/writes per envelope; callers own the surrounding transaction.
|
|
79
|
+
*/
|
|
80
|
+
/** @agent-note Called by a host repository inside its own transaction with its own vault repo; `vaultErrors` is the host-bound factory. A carried (non-staged) envelope must still exist byte-for-byte, otherwise `conflict`. */
|
|
81
|
+
export async function persistExternalMcpVaultEnvelope({ repo, sealed, identity, kind, vaultErrors }, _options = {}) {
|
|
82
|
+
if (!sealed)
|
|
83
|
+
return null;
|
|
84
|
+
const record = externalMcpVaultRecord({ sealed, identity, kind, vaultErrors });
|
|
85
|
+
const existing = await repo.find(record);
|
|
86
|
+
if (existing) {
|
|
87
|
+
if (existing.kind !== kind || existing.ownerKey !== identity.serverId ||
|
|
88
|
+
JSON.stringify(existing.sealed) !== JSON.stringify(record.sealed))
|
|
89
|
+
throw vaultErrors.create({ code: "conflict" });
|
|
90
|
+
return record.id;
|
|
91
|
+
}
|
|
92
|
+
if (!sealed[stagedKey])
|
|
93
|
+
throw vaultErrors.create({ code: "conflict" });
|
|
94
|
+
await repo.put({ record: { ...record, revision: 1 }, expectedRevision: null });
|
|
95
|
+
return record.id;
|
|
96
|
+
}
|
|
97
|
+
/** Call only after unlinking the server pointer; read the revision after any default changes. */
|
|
98
|
+
/** @agent-note Uses the caller's repo inside the caller's transaction; deletes at the revision it just read. */
|
|
99
|
+
export async function deleteExternalMcpVaultEnvelope({ repo, workspaceId, id }, _options = {}) {
|
|
100
|
+
if (!id)
|
|
101
|
+
return;
|
|
102
|
+
const record = await repo.find({ workspaceId, id });
|
|
103
|
+
if (record)
|
|
104
|
+
await repo.delete({ workspaceId, id, expectedRevision: record.revision });
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=vault.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** @agent-note Node entry: values for hosted MCP connections. Types come from `@jini-ai/core/contracts/hosted-mcp`; the host wires these values into its store, plugin and sign-in seams. No other Jini package is imported. */
|
|
2
|
+
/**
|
|
3
|
+
* Both transports are federated. `stdio` is served by `../adapter.stdio.ts` (a local
|
|
4
|
+
* child process); `streamable_http` by `../adapter.http.ts` (a hosted endpoint, with a
|
|
5
|
+
* bearer header when the row is OAuth- or access-token-authenticated — see `resolveHttpTarget`).
|
|
6
|
+
* {@link readEnabledExternalMcpConfigs} resolves a hosted row to a `streamable_http` target,
|
|
7
|
+
* `toFederatedLaunchSpec` maps it to a `{ url, headers }` launch spec, and
|
|
8
|
+
* `../bootstrap.ts`'s `defaultConnect` picks the HTTP adapter from that spec's shape.
|
|
9
|
+
* A hosted row is reported unusable only when it has no URL or its token cannot be resolved.
|
|
10
|
+
*/
|
|
11
|
+
/** @agent-note Literal tuple of the saved `transport` values; must equal core `ExternalMcpTransport` both ways (pinned by test). Order is not semantic. */
|
|
12
|
+
export declare const SUPPORTED_EXTERNAL_MCP_TRANSPORTS: readonly ["stdio", "streamable_http"];
|
|
13
|
+
/** Which OAuth grant an operator chose. Mirrors the OAuth protocol's grant vocabulary; restated rather
|
|
14
|
+
* than imported so the stored row shape does not depend on the flow module. */
|
|
15
|
+
/** @agent-note Literal tuple of the saved `oauthGrant` values; must equal core `ExternalMcpOAuthGrant` both ways. */
|
|
16
|
+
export declare const EXTERNAL_MCP_OAUTH_GRANTS: readonly ["authorization_code", "device_code"];
|
|
17
|
+
//# sourceMappingURL=vocabulary.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** @agent-note Node entry: values for hosted MCP connections. Types come from `@jini-ai/core/contracts/hosted-mcp`; the host wires these values into its store, plugin and sign-in seams. No other Jini package is imported. */
|
|
2
|
+
/**
|
|
3
|
+
* Both transports are federated. `stdio` is served by `../adapter.stdio.ts` (a local
|
|
4
|
+
* child process); `streamable_http` by `../adapter.http.ts` (a hosted endpoint, with a
|
|
5
|
+
* bearer header when the row is OAuth- or access-token-authenticated — see `resolveHttpTarget`).
|
|
6
|
+
* {@link readEnabledExternalMcpConfigs} resolves a hosted row to a `streamable_http` target,
|
|
7
|
+
* `toFederatedLaunchSpec` maps it to a `{ url, headers }` launch spec, and
|
|
8
|
+
* `../bootstrap.ts`'s `defaultConnect` picks the HTTP adapter from that spec's shape.
|
|
9
|
+
* A hosted row is reported unusable only when it has no URL or its token cannot be resolved.
|
|
10
|
+
*/
|
|
11
|
+
/** @agent-note Literal tuple of the saved `transport` values; must equal core `ExternalMcpTransport` both ways (pinned by test). Order is not semantic. */
|
|
12
|
+
export const SUPPORTED_EXTERNAL_MCP_TRANSPORTS = ["stdio", "streamable_http"];
|
|
13
|
+
/** Which OAuth grant an operator chose. Mirrors the OAuth protocol's grant vocabulary; restated rather
|
|
14
|
+
* than imported so the stored row shape does not depend on the flow module. */
|
|
15
|
+
/** @agent-note Literal tuple of the saved `oauthGrant` values; must equal core `ExternalMcpOAuthGrant` both ways. */
|
|
16
|
+
export const EXTERNAL_MCP_OAUTH_GRANTS = ["authorization_code", "device_code"];
|
|
17
|
+
//# sourceMappingURL=vocabulary.js.map
|
package/dist/federation/index.js
CHANGED
|
@@ -118,6 +118,10 @@ export interface FederatedMcpConnectionConfig {
|
|
|
118
118
|
/** Operator-chosen, stable, `[a-z0-9-]`. Becomes part of every federated tool id, so renaming it
|
|
119
119
|
* renames every tool the model sees — pick once. */
|
|
120
120
|
readonly connectionId: string;
|
|
121
|
+
/** Public hostname only, stamped from the already-resolved launch at admission; no credentials or URL path. */
|
|
122
|
+
readonly sourceHost?: string;
|
|
123
|
+
/** Provisioning plugin identity from host-owned configuration, used for admission revocation. */
|
|
124
|
+
readonly provisionedByPluginId?: string;
|
|
121
125
|
/** Human-readable, shown to the model as provenance on every federated tool description. */
|
|
122
126
|
readonly label: string;
|
|
123
127
|
/** DEFAULT-DENY allowlist of REMOTE tool names (pre-namespacing). */
|
|
@@ -77,6 +77,7 @@ export function buildFederatedMcpRegistrations(params) {
|
|
|
77
77
|
return {
|
|
78
78
|
descriptor: {
|
|
79
79
|
id: tool.toolId,
|
|
80
|
+
metadata: { mcpSource: { id: config.connectionId, host: config.sourceHost ?? "unknown", ...(config.provisionedByPluginId ? { pluginId: config.provisionedByPluginId } : {}) } },
|
|
80
81
|
description: tool.description,
|
|
81
82
|
inputSchema: tool.inputSchema,
|
|
82
83
|
...(isOperatorDeclaredReadOnly({ remoteName: tool.remoteName, annotations: tool.declaredAnnotations, readList: config.readOnlyRemoteNames }) ? { readOnly: true } : {}),
|
|
@@ -30,7 +30,7 @@ export function createDefaultConnect({ resolver, clientInfo, messages, bearerTok
|
|
|
30
30
|
// here — that much of the old comment stands, only the bound it fed was wrong.
|
|
31
31
|
requestTimeoutMs: connection.config.callTimeoutMs,
|
|
32
32
|
clientInfo,
|
|
33
|
-
bearerToken,
|
|
33
|
+
bearerToken: connection.bearerToken ?? bearerToken,
|
|
34
34
|
}, { onAuthenticationChallenge, logger });
|
|
35
35
|
}
|
|
36
36
|
return connectMcpStdioSessionWithSpawnTimeout(connection, connection.launch, loggedResolver, spawnChannel, clientInfo, messages);
|
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export { searchToolsTool, describeToolTool, TOOL_CATALOG_TOOLS } from './server/
|
|
|
20
20
|
export { searchComponentsTool, describeComponentTool, COMPONENT_CATALOG_TOOLS } from './server/index.js';
|
|
21
21
|
export { createExecuteDelegatedToolTool, createExecuteReadonlyDelegatedToolTool, DEFAULT_DELEGATED_TOOL_TIMEOUT_MS, } from './server/index.js';
|
|
22
22
|
export type { CreateExecuteDelegatedToolToolOptions } from './server/index.js';
|
|
23
|
-
export { CHROME_DEVTOOLS_MCP_PRESET, AGENT_SLUGS, isAgentSlug, planAgentInstall, verifyJsonAgentInstall, applyJsonInstall, removeJsonInstall, } from './agent-install/index.js';
|
|
23
|
+
export { CHROME_DEVTOOLS_MCP_PRESET, AGENT_SLUGS, isAgentSlug, planAgentInstall, verifyJsonAgentInstall, installOwnedJsonAgent, applyJsonInstall, removeJsonInstall, } from './agent-install/index.js';
|
|
24
24
|
export type { AgentSlug, McpLaunchSpec, PlanContext, CliInstallPlan, JsonInstallPlan, ManualInstallPlan, InstallPlan, } from './agent-install/index.js';
|
|
25
25
|
export type { McpConfigFilesystemPort } from './core/config.js';
|
|
26
26
|
export type { McpTokenClockOptions, McpTokenStoreOptions } from './core/tokens.js';
|
|
@@ -31,5 +31,5 @@ export type { CreateExecuteDelegatedToolToolRequiredArgs } from './server/tools/
|
|
|
31
31
|
export { DaemonHttpError } from './server/daemon-client.js';
|
|
32
32
|
export { assembleRunToolHost } from './server/run-tool-host.js';
|
|
33
33
|
export type { RunToolHostInput, RunToolHostOptions, RunToolHost } from './server/run-tool-host.js';
|
|
34
|
-
export { MCP_HTTP_SESSION_MODE_SUPPORTED } from './server/http-tool-server.js';
|
|
34
|
+
export { MCP_HTTP_SESSION_MODE_SUPPORTED } from './server/http-tool-server.adapter.js';
|
|
35
35
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -24,8 +24,8 @@ export { searchComponentsTool, describeComponentTool, COMPONENT_CATALOG_TOOLS }
|
|
|
24
24
|
// ── server: gap 3's MCP-callback delegated-tool-execution def ──────────────
|
|
25
25
|
export { createExecuteDelegatedToolTool, createExecuteReadonlyDelegatedToolTool, DEFAULT_DELEGATED_TOOL_TIMEOUT_MS, } from './server/index.js';
|
|
26
26
|
// ── agent-install: register an MCP server into external agents ──────────────
|
|
27
|
-
export { CHROME_DEVTOOLS_MCP_PRESET, AGENT_SLUGS, isAgentSlug, planAgentInstall, verifyJsonAgentInstall, applyJsonInstall, removeJsonInstall, } from './agent-install/index.js';
|
|
27
|
+
export { CHROME_DEVTOOLS_MCP_PRESET, AGENT_SLUGS, isAgentSlug, planAgentInstall, verifyJsonAgentInstall, installOwnedJsonAgent, applyJsonInstall, removeJsonInstall, } from './agent-install/index.js';
|
|
28
28
|
export { DaemonHttpError } from './server/daemon-client.js';
|
|
29
29
|
export { assembleRunToolHost } from './server/run-tool-host.js';
|
|
30
|
-
export { MCP_HTTP_SESSION_MODE_SUPPORTED } from './server/http-tool-server.js';
|
|
30
|
+
export { MCP_HTTP_SESSION_MODE_SUPPORTED } from './server/http-tool-server.adapter.js';
|
|
31
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -41,4 +41,4 @@ export interface McpHttpToolServerRuntime {
|
|
|
41
41
|
export declare function createMcpHttpToolServerRuntime(required: McpToolServerRequiredArgs, { start, ...options }?: McpHttpToolServerOptions & {
|
|
42
42
|
start?: typeof startMcpHttpToolServer;
|
|
43
43
|
}): McpHttpToolServerRuntime;
|
|
44
|
-
//# sourceMappingURL=http-tool-server.d.ts.map
|
|
44
|
+
//# sourceMappingURL=http-tool-server.adapter.d.ts.map
|
package/dist/server/index.d.ts
CHANGED
|
@@ -20,6 +20,6 @@ export * from './tools/tool-catalog-tools.js';
|
|
|
20
20
|
export * from './tools/component-catalog-tools.js';
|
|
21
21
|
export * from './resources/active-resource.js';
|
|
22
22
|
export * from './resources/site-guide-resource.js';
|
|
23
|
-
export * from './http-tool-server.js';
|
|
23
|
+
export * from './http-tool-server.adapter.js';
|
|
24
24
|
export * from './run-tool-host.js';
|
|
25
25
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/server/index.js
CHANGED
|
@@ -20,6 +20,6 @@ export * from './tools/tool-catalog-tools.js';
|
|
|
20
20
|
export * from './tools/component-catalog-tools.js';
|
|
21
21
|
export * from './resources/active-resource.js';
|
|
22
22
|
export * from './resources/site-guide-resource.js';
|
|
23
|
-
export * from './http-tool-server.js';
|
|
23
|
+
export * from './http-tool-server.adapter.js';
|
|
24
24
|
export * from './run-tool-host.js';
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jini-ai/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
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": {
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"./federation": "node",
|
|
20
20
|
"./federation/approvals": "node",
|
|
21
21
|
"./federation/stdio": "node",
|
|
22
|
-
"./federation/testing": "universal"
|
|
22
|
+
"./federation/testing": "universal",
|
|
23
|
+
"./federation/hosted": "node"
|
|
23
24
|
}
|
|
24
25
|
},
|
|
25
26
|
"type": "module",
|
|
@@ -57,6 +58,11 @@
|
|
|
57
58
|
"import": "./dist/federation/testing/index.js",
|
|
58
59
|
"default": "./dist/federation/testing/index.js"
|
|
59
60
|
},
|
|
61
|
+
"./federation/hosted": {
|
|
62
|
+
"types": "./dist/federation/hosted/index.d.ts",
|
|
63
|
+
"import": "./dist/federation/hosted/index.js",
|
|
64
|
+
"default": "./dist/federation/hosted/index.js"
|
|
65
|
+
},
|
|
60
66
|
"./bin": {
|
|
61
67
|
"types": "./dist/bin/serve.d.ts",
|
|
62
68
|
"import": "./dist/bin/serve.js",
|
|
@@ -85,16 +91,16 @@
|
|
|
85
91
|
"dependencies": {
|
|
86
92
|
"@cfworker/json-schema": "^4.1.1",
|
|
87
93
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
88
|
-
"@jini-ai/core": "^0.
|
|
89
|
-
"@jini-ai/protocol": "^0.
|
|
90
|
-
"@jini-ai/platform": "^0.
|
|
94
|
+
"@jini-ai/core": "^0.7.0",
|
|
95
|
+
"@jini-ai/protocol": "^0.7.0",
|
|
96
|
+
"@jini-ai/platform": "^0.7.0"
|
|
91
97
|
},
|
|
92
98
|
"devDependencies": {
|
|
93
99
|
"@cfworker/json-schema": "^4.1.1",
|
|
94
100
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
95
|
-
"@jini-ai/daemon": "^0.
|
|
96
|
-
"@jini-ai/core": "^0.
|
|
97
|
-
"@jini-ai/platform": "^0.
|
|
101
|
+
"@jini-ai/daemon": "^0.7.0",
|
|
102
|
+
"@jini-ai/core": "^0.7.0",
|
|
103
|
+
"@jini-ai/platform": "^0.7.0"
|
|
98
104
|
},
|
|
99
105
|
"scripts": {
|
|
100
106
|
"build": "tsc -p tsconfig.json && chmod +x dist/bin/serve.js",
|