@cogitator-ai/mcp 19.8.3 → 19.9.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.
Files changed (79) hide show
  1. package/README.md +130 -8
  2. package/dist/adapter/tool-adapter.d.ts +8 -8
  3. package/dist/adapter/tool-adapter.d.ts.map +1 -1
  4. package/dist/adapter/tool-adapter.js +21 -16
  5. package/dist/adapter/tool-adapter.js.map +1 -1
  6. package/dist/client/input.d.ts +47 -0
  7. package/dist/client/input.d.ts.map +1 -0
  8. package/dist/client/input.js +125 -0
  9. package/dist/client/input.js.map +1 -0
  10. package/dist/client/mcp-client.d.ts +84 -8
  11. package/dist/client/mcp-client.d.ts.map +1 -1
  12. package/dist/client/mcp-client.js +614 -112
  13. package/dist/client/mcp-client.js.map +1 -1
  14. package/dist/client/oauth.d.ts +42 -0
  15. package/dist/client/oauth.d.ts.map +1 -0
  16. package/dist/client/oauth.js +171 -0
  17. package/dist/client/oauth.js.map +1 -0
  18. package/dist/client/param-headers.d.ts +10 -0
  19. package/dist/client/param-headers.d.ts.map +1 -0
  20. package/dist/client/param-headers.js +65 -0
  21. package/dist/client/param-headers.js.map +1 -0
  22. package/dist/client/raw-dispatch.d.ts +40 -0
  23. package/dist/client/raw-dispatch.d.ts.map +1 -0
  24. package/dist/client/raw-dispatch.js +148 -0
  25. package/dist/client/raw-dispatch.js.map +1 -0
  26. package/dist/client/rounds.d.ts +14 -0
  27. package/dist/client/rounds.d.ts.map +1 -0
  28. package/dist/client/rounds.js +33 -0
  29. package/dist/client/rounds.js.map +1 -0
  30. package/dist/client/tasks.d.ts +70 -0
  31. package/dist/client/tasks.d.ts.map +1 -0
  32. package/dist/client/tasks.js +186 -0
  33. package/dist/client/tasks.js.map +1 -0
  34. package/dist/client/transports.d.ts +5 -3
  35. package/dist/client/transports.d.ts.map +1 -1
  36. package/dist/client/transports.js +9 -8
  37. package/dist/client/transports.js.map +1 -1
  38. package/dist/digest.d.ts +8 -0
  39. package/dist/digest.d.ts.map +1 -0
  40. package/dist/digest.js +25 -0
  41. package/dist/digest.js.map +1 -0
  42. package/dist/index.d.ts +7 -3
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +6 -2
  45. package/dist/index.js.map +1 -1
  46. package/dist/server/approval.d.ts +17 -5
  47. package/dist/server/approval.d.ts.map +1 -1
  48. package/dist/server/approval.js +26 -12
  49. package/dist/server/approval.js.map +1 -1
  50. package/dist/server/execution.d.ts +134 -0
  51. package/dist/server/execution.d.ts.map +1 -0
  52. package/dist/server/execution.js +185 -0
  53. package/dist/server/execution.js.map +1 -0
  54. package/dist/server/mcp-server.d.ts +45 -19
  55. package/dist/server/mcp-server.d.ts.map +1 -1
  56. package/dist/server/mcp-server.js +551 -120
  57. package/dist/server/mcp-server.js.map +1 -1
  58. package/dist/server/questions.d.ts +19 -2
  59. package/dist/server/questions.d.ts.map +1 -1
  60. package/dist/server/questions.js +38 -21
  61. package/dist/server/questions.js.map +1 -1
  62. package/dist/server/request-state.d.ts +55 -0
  63. package/dist/server/request-state.d.ts.map +1 -0
  64. package/dist/server/request-state.js +66 -0
  65. package/dist/server/request-state.js.map +1 -0
  66. package/dist/server/serve-agents.d.ts.map +1 -1
  67. package/dist/server/serve-agents.js +203 -18
  68. package/dist/server/serve-agents.js.map +1 -1
  69. package/dist/server/tasks.d.ts +75 -0
  70. package/dist/server/tasks.d.ts.map +1 -0
  71. package/dist/server/tasks.js +280 -0
  72. package/dist/server/tasks.js.map +1 -0
  73. package/dist/server/tool-args.d.ts +24 -0
  74. package/dist/server/tool-args.d.ts.map +1 -0
  75. package/dist/server/tool-args.js +58 -0
  76. package/dist/server/tool-args.js.map +1 -0
  77. package/dist/types.d.ts +341 -11
  78. package/dist/types.d.ts.map +1 -1
  79. package/package.json +8 -5
package/dist/types.d.ts CHANGED
@@ -2,6 +2,7 @@
2
2
  * MCP Integration Types
3
3
  */
4
4
  import type { IncomingMessage } from 'node:http';
5
+ import type { OAuthClientProvider } from '@modelcontextprotocol/client';
5
6
  import type { ToolContext, ToolInvoker } from '@cogitator-ai/types';
6
7
  export type MCPTransportType = 'stdio' | 'http' | 'sse';
7
8
  /**
@@ -22,9 +23,162 @@ export interface MCPRetryConfig {
22
23
  /** Whether to retry on connection loss (default: true) */
23
24
  retryOnConnectionLoss?: boolean;
24
25
  }
26
+ /**
27
+ * Which MCP protocol revision a client speaks: `auto` asks the server with `server/discover` and
28
+ * speaks 2026-07-28 to a server that answers, 2025-11-25 (`initialize`) to any other. `legacy`
29
+ * always speaks 2025-11-25, `{ pin }` only the pinned 2026-era revision
30
+ */
31
+ export type MCPProtocolMode = 'auto' | 'legacy' | {
32
+ pin: string;
33
+ };
34
+ /** Which revision the client and the server agreed on: 2026-07-28 and later, or an earlier one */
35
+ export type MCPProtocolEra = 'modern' | 'legacy';
36
+ /** What the server needs a person at the client to open: a page outside MCP, such as a sign-in */
37
+ export interface MCPElicitUrlRequest {
38
+ mode: 'url';
39
+ message: string;
40
+ url: string;
41
+ }
42
+ /** The server and tool an elicitation comes from */
43
+ export interface MCPElicitationSource {
44
+ /** The server's name, `''` when it reports none */
45
+ server: string;
46
+ /** The tool whose call asks, when the request comes with a tool call */
47
+ tool?: string;
48
+ }
49
+ /**
50
+ * Answers a server's elicitation request when the call that asks has no run to pause, or when
51
+ * a server of the 2025-11-25 revision asks on its own
52
+ */
53
+ export type MCPElicitationHandler = (request: MCPElicitRequest | MCPElicitUrlRequest, source: MCPElicitationSource) => Promise<MCPElicitResult>;
54
+ /** A task an MCP server runs for a tool call, as a client keeps it to come back to it */
55
+ export interface MCPClientTaskRecord {
56
+ taskId: string;
57
+ tool: string;
58
+ /** When the client learned of the task, ISO 8601 */
59
+ createdAt: string;
60
+ /**
61
+ * The elicitations of the call asked through its run so far, in order, so a call that runs
62
+ * again reads their answers in the same order. `key` is the task's input request key, or
63
+ * `call:<n>` for one the server asked before it made the task
64
+ */
65
+ asked: MCPAskedInput[];
66
+ }
67
+ /** An elicitation a call asked the person through its run */
68
+ export interface MCPAskedInput {
69
+ key: string;
70
+ request: MCPElicitRequest | MCPElicitUrlRequest;
71
+ }
72
+ /**
73
+ * Where a client keeps the tasks of its tool calls, by tool call id, so a call that runs again
74
+ * (a run resumed after a question) polls the task it started instead of starting another
75
+ */
76
+ export interface MCPClientTaskStore {
77
+ get(key: string): Promise<MCPClientTaskRecord | undefined>;
78
+ set(key: string, record: MCPClientTaskRecord): Promise<void>;
79
+ delete(key: string): Promise<void>;
80
+ }
81
+ /**
82
+ * A round of a tool call that waits on the person, kept while the call's run is paused on the
83
+ * question, so the resumed call answers that round instead of calling the tool anew
84
+ */
85
+ export interface MCPClientRoundRecord {
86
+ tool: string;
87
+ /** Digest of the call's tool and arguments */
88
+ digest: string;
89
+ /** The server's state of the round, sent back unchanged with the answers */
90
+ requestState?: string;
91
+ /** The round's input requests: their key in the round and in `asked` */
92
+ round: Array<{
93
+ key: string;
94
+ asked: string;
95
+ }>;
96
+ /** The questions the call asked so far, in order */
97
+ asked: MCPAskedInput[];
98
+ /** When the round is forgotten, ms since the epoch */
99
+ expiresAt: number;
100
+ }
101
+ /** Where a client keeps the rounds its paused calls wait on, by tool call id */
102
+ export interface MCPClientRoundStore {
103
+ get(key: string): Promise<MCPClientRoundRecord | undefined>;
104
+ set(key: string, record: MCPClientRoundRecord): Promise<void>;
105
+ delete(key: string): Promise<void>;
106
+ }
107
+ export interface MCPClientRoundOptions {
108
+ /** Where rounds are kept by tool call id. Default: in the client's memory */
109
+ store?: MCPClientRoundStore;
110
+ /** How long a round is kept for the paused run to come back, in ms. Default: 3600000 (an hour) */
111
+ ttlMs?: number;
112
+ }
113
+ export interface MCPClientTaskOptions {
114
+ /** Where tasks are kept by tool call id. Default: in the client's memory */
115
+ store?: MCPClientTaskStore;
116
+ /** The longest wait between two polls of a task, in ms, whatever the server suggests. Default: 30000 */
117
+ maxPollIntervalMs?: number;
118
+ }
119
+ /** Where OAuth state of an MCP client is kept: client registrations and tokens by issuer */
120
+ export interface MCPOAuthStore {
121
+ load(key: string): Promise<unknown>;
122
+ save(key: string, value: unknown): Promise<void>;
123
+ delete(key: string): Promise<void>;
124
+ }
125
+ /**
126
+ * OAuth 2.1 for a remote MCP server. The client registers with the server's authorization server
127
+ * by a pre-registered `clientId`, else by its Client ID Metadata Document (`clientMetadataUrl`)
128
+ * when the authorization server supports those, else by Dynamic Client Registration
129
+ */
130
+ export interface MCPOAuthConfig {
131
+ /** Where the authorization server sends the browser back with the code */
132
+ redirectUrl: string;
133
+ /**
134
+ * The HTTPS URL of the client's metadata document (`client_id`, `client_name`,
135
+ * `redirect_uris`), which the client hosts itself. It is its `client_id`
136
+ */
137
+ clientMetadataUrl?: string;
138
+ /** A client id registered with the authorization server beforehand */
139
+ clientId?: string;
140
+ /** The secret of a pre-registered confidential client */
141
+ clientSecret?: string;
142
+ /** Name shown on the consent page when the client registers dynamically. Default: the client's name */
143
+ clientName?: string;
144
+ /** Scopes to ask for, space separated. Default: what the server asks for */
145
+ scope?: string;
146
+ /** Where registrations and tokens are kept. Default: in memory */
147
+ store?: MCPOAuthStore;
148
+ /**
149
+ * Sends the person to `url` (opens the browser) and resolves with the URL the authorization
150
+ * server redirected back to, or its query
151
+ */
152
+ authorize: (url: URL) => Promise<URL | URLSearchParams | string>;
153
+ }
25
154
  export interface MCPClientConfig {
26
155
  /** Transport type */
27
156
  transport: MCPClientTransportType;
157
+ /** Protocol revision to speak (default: `auto`) */
158
+ protocol?: MCPProtocolMode;
159
+ /**
160
+ * Answers elicitation requests that no run can answer. A tool call of a run asks the person
161
+ * through the run (`context.interrupt()`), the run pausing until they answer. `false` tells
162
+ * servers the client cannot answer at all. Without a handler such a request is declined
163
+ */
164
+ elicitation?: false | MCPElicitationHandler;
165
+ /**
166
+ * MCP tasks: a server may answer a long tool call with a task, which the client polls until
167
+ * it ends. `false` tells servers the client takes no tasks. Default: true
168
+ */
169
+ tasks?: boolean | MCPClientTaskOptions;
170
+ /**
171
+ * OAuth for a remote server: an SDK `OAuthClientProvider`, or a config the client builds one
172
+ * from (`createMCPOAuthProvider`)
173
+ */
174
+ auth?: OAuthClientProvider | MCPOAuthConfig;
175
+ /** How many rounds of input requests one call may take before it fails. Default: 10 */
176
+ maxInputRounds?: number;
177
+ /**
178
+ * The rounds of calls whose runs paused on a server's question: kept by tool call id, so the
179
+ * resumed call sends the answers to the round the server asked in, without calling anew
180
+ */
181
+ rounds?: MCPClientRoundOptions;
28
182
  /** For stdio transport: command to spawn */
29
183
  command?: string;
30
184
  /** For stdio transport: command arguments */
@@ -54,6 +208,46 @@ export interface MCPClientConfig {
54
208
  /** Callback when reconnection fails permanently */
55
209
  onReconnectFailed?: (error: Error) => void;
56
210
  }
211
+ /** The change notifications a client asks a server for */
212
+ export interface MCPSubscriptionFilter {
213
+ toolsListChanged?: boolean;
214
+ promptsListChanged?: boolean;
215
+ resourcesListChanged?: boolean;
216
+ /** The resources whose updates to hear of, by URI */
217
+ resourceSubscriptions?: string[];
218
+ }
219
+ /** What a subscription calls when the server reports a change */
220
+ export interface MCPSubscriptionHandlers {
221
+ onToolsChanged?: () => void;
222
+ onPromptsChanged?: () => void;
223
+ onResourcesChanged?: () => void;
224
+ onResourceUpdated?: (uri: string) => void;
225
+ }
226
+ /** A subscription to a server's change notifications */
227
+ export interface MCPSubscription {
228
+ /** What the server agreed to report, a part of what was asked */
229
+ readonly filter: MCPSubscriptionFilter;
230
+ /**
231
+ * Resolves once the subscription ended: `local` when it was closed, `graceful` when the server
232
+ * ended it, `remote` when the connection dropped (subscribe again to hear of more changes)
233
+ */
234
+ readonly closed: Promise<'local' | 'graceful' | 'remote'>;
235
+ close(): Promise<void>;
236
+ }
237
+ /** What a server says of itself, from `server/discover` or the `initialize` handshake */
238
+ export interface MCPServerDiscovery {
239
+ /** The protocol revision the connection speaks */
240
+ protocolVersion: string;
241
+ era: MCPProtocolEra;
242
+ /** The revisions the server supports, known on the 2026-07-28 revision */
243
+ supportedVersions?: string[];
244
+ capabilities: Record<string, unknown>;
245
+ instructions?: string;
246
+ serverInfo?: {
247
+ name: string;
248
+ version: string;
249
+ };
250
+ }
57
251
  export interface MCPResource {
58
252
  uri: string;
59
253
  name: string;
@@ -177,6 +371,7 @@ export interface MCPElicitMultiSelect {
177
371
  default?: string[];
178
372
  }
179
373
  export interface MCPElicitRequest {
374
+ mode?: 'form';
180
375
  message: string;
181
376
  schema: {
182
377
  type: 'object';
@@ -195,8 +390,42 @@ export type MCPElicitResult = {
195
390
  * plus `elicit` to ask the person at the client a question while the call waits.
196
391
  */
197
392
  export interface MCPToolContext extends ToolContext {
198
- /** `undefined` (as a result) when the client cannot answer elicitation requests */
393
+ /**
394
+ * `undefined` (as a result) when the client cannot answer elicitation requests. The call keeps
395
+ * running while it waits: on the 2026-07-28 revision the server answers the client's request
396
+ * with the question and goes on when the client sends the answer, so every round of one call
397
+ * has to reach the same server process
398
+ */
199
399
  elicit?: (request: MCPElicitRequest) => Promise<MCPElicitResult | undefined>;
400
+ /**
401
+ * Asking without waiting (protocol 2026-07-28 multi round-trip requests): the call ends its
402
+ * round with questions and the client calls again with the answers and the state the call
403
+ * kept, which may reach any server process with the same `requestStateKey`. Present when the
404
+ * client can answer elicitation requests
405
+ */
406
+ input?: MCPToolInput;
407
+ }
408
+ /** What a call asked in its last round and what it kept, see {@link MCPToolContext.input} */
409
+ export interface MCPToolInput {
410
+ /** The answers to what the call asked in its last round, by the keys it gave them */
411
+ readonly responses: Readonly<Record<string, MCPElicitResult>>;
412
+ /**
413
+ * What the call kept with its questions, as it gave it. Undefined in the first round, and when
414
+ * the state the client brought back expired or does not verify (`stateRejected`)
415
+ */
416
+ readonly state: unknown;
417
+ /** Whether the client came back with a state that expired or another server signed */
418
+ readonly stateRejected: boolean;
419
+ /**
420
+ * Ends the round with `requests`: return what it returns from the tool. The client asks them
421
+ * and calls the tool again with the answers (`responses`) and `state`, a JSON value signed so
422
+ * it comes back unchanged
423
+ */
424
+ ask(requests: Record<string, MCPElicitRequest>, state: unknown): MCPInputPending;
425
+ }
426
+ /** What a tool returns when it ends its round asking, see {@link MCPToolInput.ask} */
427
+ export interface MCPInputPending {
428
+ readonly status: 'input_required';
200
429
  }
201
430
  /**
202
431
  * Who is calling an MCP server over HTTP, as its `auth` function established it.
@@ -212,6 +441,16 @@ export interface MCPCaller {
212
441
  * `Authorization` header. Return `undefined` (or throw) to answer 401.
213
442
  */
214
443
  export type MCPAuthFunction = (request: IncomingMessage) => MCPCaller | undefined | Promise<MCPCaller | undefined>;
444
+ /** What an MCP server tells clients of the OAuth that protects it */
445
+ export interface MCPProtectedResourceConfig {
446
+ /** The issuers of the authorization servers whose tokens the server takes */
447
+ authorizationServers: string[];
448
+ /** The server's canonical URL, the `resource` of its tokens. Default: the URL clients called */
449
+ resource?: string;
450
+ scopesSupported?: string[];
451
+ /** Name of the server for people, shown on consent pages */
452
+ resourceName?: string;
453
+ }
215
454
  export interface MCPServerConfig {
216
455
  /** Server name */
217
456
  name: string;
@@ -230,23 +469,48 @@ export interface MCPServerConfig {
230
469
  /**
231
470
  * For HTTP transport: establishes the caller of every request; requests it
232
471
  * returns `undefined` for are answered 401. Without it the server is open
233
- * to anyone who can reach it.
472
+ * to anyone who can reach it. Tasks, waiting calls and round states belong to
473
+ * the caller's `userId`, else to the request's credential (`Authorization` or
474
+ * `Cookie` header): a caller with neither is answered 401 too.
234
475
  */
235
476
  auth?: MCPAuthFunction;
236
477
  /**
237
- * For HTTP transport: keep a session per client (`mcp-session-id`) instead
238
- * of serving every request on its own. Needed for requests from the server
239
- * to the client, such as elicitation; each session belongs to the caller
240
- * that started it.
478
+ * For HTTP transport with `auth` checking OAuth access tokens: the server's OAuth Protected
479
+ * Resource Metadata (RFC 9728), served at `/.well-known/oauth-protected-resource/mcp` and named
480
+ * in the `WWW-Authenticate` header of a 401, so clients find the authorization server
481
+ */
482
+ protectedResource?: MCPProtectedResourceConfig;
483
+ /**
484
+ * For HTTP transport: keep a session per client of the 2025-11-25 revision (`mcp-session-id`)
485
+ * instead of serving every request on its own. Such clients need it for elicitation, which
486
+ * reaches them as a request from the server; each session belongs to the caller that started
487
+ * it. Clients of the 2026-07-28 revision have no sessions and elicit without them
241
488
  */
242
489
  sessions?: boolean;
243
490
  /**
244
491
  * How long a request to the client's user through elicitation (an approval, a question of an
245
- * agent's tool, `context.elicit()`) waits for the answer, in ms, instead of the MCP SDK's
246
- * 60 s request timeout. One nobody answers in time counts as dismissed (`cancel`). `0` waits
247
- * as long as the tool call lasts. Default: 600000 (10 minutes)
492
+ * agent's tool, `context.elicit()`) waits for the answer, in ms. On the 2026-07-28 revision it
493
+ * is how long the client may take to send the answer back. One nobody answers in time counts
494
+ * as dismissed (`cancel`). `0` waits as long as the tool call lasts. Default: 600000 (10 minutes)
248
495
  */
249
496
  elicitationTimeoutMs?: number;
497
+ /**
498
+ * Key that signs the state the server gives the client between rounds of a call that asks the
499
+ * user (`requestState`), at least 32 bytes. Every process serving the same clients needs the
500
+ * same key. Default: a random key of the process, so a round that reaches another process (or
501
+ * the server after a restart) starts over
502
+ */
503
+ requestStateKey?: string | Uint8Array;
504
+ /** MCP tasks: long tool calls answered with a task the client polls. `false` turns them off */
505
+ tasks?: false | MCPServerTaskOptions;
506
+ /** Serve clients of the 2025-11-25 revision and earlier as well (default: true) */
507
+ legacyClients?: boolean;
508
+ /**
509
+ * For HTTP transport: the origins browsers may call the server from. A request with another
510
+ * `Origin` is refused with 403, one without `Origin` passes. Default: `corsOrigin` when it is
511
+ * not `*`, else only loopback origins for a server on a loopback host, else any origin
512
+ */
513
+ allowedOrigins?: string[];
250
514
  /** Enable logging */
251
515
  logging?: boolean;
252
516
  /**
@@ -265,11 +529,13 @@ export interface MCPToolDefinition {
265
529
  /** JSON Schema of the arguments, with any `$defs` / `definitions` its refs point to */
266
530
  inputSchema: MCPObjectSchema;
267
531
  /** JSON Schema of the tool's `structuredContent`, which the server promises to follow */
268
- outputSchema?: MCPObjectSchema;
532
+ outputSchema?: MCPJsonSchema;
269
533
  /** Hints the server gives about the tool's behavior */
270
534
  annotations?: MCPToolAnnotations;
271
535
  }
272
- /** A JSON Schema whose root is an object, as MCP takes for tool input and output */
536
+ /** A JSON Schema of any shape, as MCP takes for tool output since 2026-07-28 */
537
+ export type MCPJsonSchema = Record<string, unknown>;
538
+ /** A JSON Schema whose root is an object, as MCP takes for tool input */
273
539
  export interface MCPObjectSchema {
274
540
  type: 'object';
275
541
  properties: Record<string, unknown>;
@@ -294,6 +560,8 @@ export interface MCPToolAnnotations {
294
560
  }
295
561
  export interface MCPToolCallResult {
296
562
  content: MCPToolContent[];
563
+ /** The tool's result as JSON, any JSON value, following its `outputSchema` */
564
+ structuredContent?: unknown;
297
565
  isError?: boolean;
298
566
  }
299
567
  export type MCPToolContent = {
@@ -323,6 +591,68 @@ export interface MCPCallToolOptions {
323
591
  * Tools from `getTools()` / `wrapMCPTools()` set it from the server's tool annotations.
324
592
  */
325
593
  idempotent?: boolean;
594
+ /**
595
+ * The run's tool call id: the task a server started for it is found again when the call runs
596
+ * again after a pause
597
+ */
598
+ toolCallId?: string;
599
+ /**
600
+ * Pauses the run to ask the person (`ToolContext.interrupt`): a server's elicitation requests
601
+ * of the call are asked this way, the call going on once the run resumes with the answer
602
+ */
603
+ interrupt?: ToolContext['interrupt'];
604
+ /** Reports progress, such as the status message of a server's task (`ToolContext.update`) */
605
+ update?: ToolContext['update'];
606
+ }
607
+ /** How long a task lives and how often clients poll it */
608
+ export interface MCPServerTaskOptions {
609
+ /** Where tasks are kept. Default: in the server's memory */
610
+ store?: MCPTaskStore;
611
+ /**
612
+ * A call still running after this many ms becomes a task, for clients that take tasks.
613
+ * `0` makes every such call a task at once. Default: 2000
614
+ */
615
+ promoteAfterMs?: number;
616
+ /** How long a task is kept after it was created, in ms. Default: 3600000 (an hour) */
617
+ ttlMs?: number;
618
+ /** How often clients are asked to poll, in ms. Default: 1000 */
619
+ pollIntervalMs?: number;
620
+ }
621
+ /** The state of a task of an MCP server */
622
+ export type MCPTaskStatus = 'working' | 'input_required' | 'completed' | 'failed' | 'cancelled';
623
+ /** A task as the server keeps it */
624
+ export interface MCPTaskRecord {
625
+ taskId: string;
626
+ status: MCPTaskStatus;
627
+ statusMessage?: string;
628
+ createdAt: string;
629
+ lastUpdatedAt: string;
630
+ ttlMs: number | null;
631
+ pollIntervalMs: number;
632
+ /** Who started the task: only they may see or change it */
633
+ owner: string;
634
+ /** What the server asks the client, while `input_required` */
635
+ inputRequests?: Record<string, MCPTaskInputRequest>;
636
+ /** The tool's result, once `completed` */
637
+ result?: Record<string, unknown>;
638
+ /** The JSON-RPC error, once `failed` */
639
+ error?: {
640
+ code: number;
641
+ message: string;
642
+ data?: unknown;
643
+ };
644
+ }
645
+ /** A request for input a task waits on, an elicitation form */
646
+ export interface MCPTaskInputRequest {
647
+ method: 'elicitation/create';
648
+ params: Record<string, unknown>;
649
+ }
650
+ /** Where an MCP server keeps its tasks */
651
+ export interface MCPTaskStore {
652
+ create(record: MCPTaskRecord): Promise<void>;
653
+ get(taskId: string): Promise<MCPTaskRecord | undefined>;
654
+ update(taskId: string, patch: Partial<Omit<MCPTaskRecord, 'taskId' | 'owner'>>): Promise<MCPTaskRecord | undefined>;
655
+ delete(taskId: string): Promise<void>;
326
656
  }
327
657
  export interface ToolAdapterOptions {
328
658
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEpE,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC;AAExD;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,GAAG,YAAY,CAAC;AAErE,MAAM,WAAW,cAAc;IAC7B,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,6DAA6D;IA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AAC,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;CAC3D;AAED,+DAA+D;AAC/D,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,oBAAoB,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AAED,0CAA0C;AAC1C,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAAC;IACxD,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,QAAQ,GAAG,OAAO,CAAC,CAAC,GACtD,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAAC;IACtC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvC;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,iCAAiC;IACjC,oBAAoB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,MAAM,CAAC;IAEvD;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,iBAAiB,KAAK,OAAO,CAAC,CAAC;IAEpE;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cogitator-ai/mcp",
3
- "version": "19.8.3",
3
+ "version": "19.9.0",
4
4
  "description": "MCP (Model Context Protocol) integration for Cogitator",
5
5
  "keywords": [
6
6
  "cogitator",
@@ -26,18 +26,21 @@
26
26
  "dist"
27
27
  ],
28
28
  "dependencies": {
29
- "@cogitator-ai/core": "0.75.0",
30
- "@cogitator-ai/types": "0.86.0",
31
- "@modelcontextprotocol/sdk": "^1.32.1",
29
+ "@cogitator-ai/core": "0.76.0",
30
+ "@cogitator-ai/types": "0.87.0",
31
+ "@modelcontextprotocol/client": "^2.4.0",
32
+ "@modelcontextprotocol/node": "^2.1.2",
33
+ "@modelcontextprotocol/server": "^2.4.0",
32
34
  "zod": "^4.6.5"
33
35
  },
34
36
  "devDependencies": {
37
+ "@modelcontextprotocol/sdk": "^1.32.2",
35
38
  "@types/node": "^22.20.4",
36
39
  "typescript": "^6.0.3",
37
40
  "vitest": "^5.0.3"
38
41
  },
39
42
  "peerDependencies": {
40
- "@cogitator-ai/types": ">=0.86.0"
43
+ "@cogitator-ai/types": ">=0.87.0"
41
44
  },
42
45
  "engines": {
43
46
  "node": ">=22.12.0"