@agentcomms/events-daemon 0.17.0 → 0.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -9
- package/THIRD_PARTY_LICENSES +2 -2
- package/dist/{b3-contract-DFxcHY0I.mjs → b3-contract-BZIj-LWV.mjs} +4 -4
- package/dist/cli.mjs +493 -171
- package/dist/index.d.mts +119 -12
- package/dist/index.mjs +1 -1
- package/dist/{mcp-DXXb3Vv3-B0sHZfig.mjs → mcp-DIH4cS6P-YuKZfqTg.mjs} +181 -68
- package/dist/{stdio-CD7QQBAh.mjs → stdio-Dp1EE6ok.mjs} +28 -3
- package/package.json +11 -11
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@agentcomms/core";
|
|
2
2
|
import { AgenticConditionV1, CanonicalCondition, JsonValue } from "@agentcomms/events";
|
|
3
3
|
//#endregion
|
|
4
|
-
//#region ../../node_modules/.pnpm/@modelcontextprotocol+server@2.
|
|
4
|
+
//#region ../../node_modules/.pnpm/@modelcontextprotocol+server@2.3.1/node_modules/@modelcontextprotocol/server/dist/types-DUs7mGBv.d.mts
|
|
5
5
|
//#region ../../node_modules/.pnpm/json-schema-typed@8.0.2/node_modules/json-schema-typed/draft_2020_12.d.ts
|
|
6
6
|
type MaybeReadonlyArray<T> = Array<T> | ReadonlyArray<T>;
|
|
7
7
|
type ValueOf<T> = T[keyof T];
|
|
@@ -5372,7 +5372,7 @@ declare namespace index_d_exports {
|
|
|
5372
5372
|
export { $brand, $input, $output, BRAND, CompileOptions, GlobalMeta, INVALID, Infer$1 as Infer, IssueData, JSONType, NEVER, $RefinementCtx as RefinementCtx, SafeExtendShape, Schema, TimePrecision, TypeOf, ZodAny, ZodArray, ZodBase64, ZodBase64URL, ZodBigInt, ZodBigIntFormat, ZodBoolean, ZodCIDRv4, ZodCIDRv6, ZodCUID, ZodCUID2, ZodCatch, ZodCodec, ZodCoercedBigInt, ZodCoercedBoolean, ZodCoercedDate, ZodCoercedNumber, ZodCoercedString, ZodCompileAsyncError, ZodCompileUnsupportedError, ZodCreditCard, ZodCustom, ZodCustomStringFormat, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodE164, ZodEmail, ZodEmoji, ZodEnum, ZodError, ZodErrorMap, ZodExactOptional, ZodFile, ZodFirstPartySchemaTypes, ZodFirstPartyTypeKind, ZodFlattenedError, ZodFloat32, ZodFloat64, ZodFormattedError, ZodFunction, ZodGUID, ZodIBAN, ZodIPv4, ZodIPv6, ZodISODate, ZodISODateTime, ZodISODuration, ZodISOTime, ZodInstanceOf, ZodInt, ZodInt32, ZodInt64, ZodIntersection, ZodIssue, ZodIssueCode, ZodJSONSchema, ZodJSONSchemaInternals, ZodJWT, ZodKSUID, ZodLazy, ZodLiteral, ZodMAC, ZodMap, ZodNaN, ZodNanoID, ZodNever, ZodNonOptional, ZodNull, ZodNullable, ZodNumber, ZodNumberFormat, ZodObject, ZodOptional, ZodPipe, ZodPrefault, ZodPreprocess, ZodPromise, ZodRawShape$1 as ZodRawShape, ZodReadonly, ZodRealError, ZodRecord, ZodSafeParseError, ZodSafeParseResult, ZodSafeParseSuccess, ZodSchema, ZodSet, ZodStandardSchemaWithJSON, ZodString, ZodStringFormat, ZodSuccess, ZodSymbol, ZodTemplateLiteral, ZodTransform, ZodTuple, ZodType, ZodTypeAny, ZodUInt32, ZodUInt64, ZodULID, ZodURL, ZodUUID, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid, ZodXID, ZodXor, _ZodBigInt, _ZodBoolean, _ZodDate, _ZodNumber, _ZodString, _ZodType, _default, _function, any, array, base64, base64url, bigint$1 as bigint, boolean$1 as boolean, _catch as catch, check, cidrv4, cidrv6, clone, codec, coerce_d_exports as coerce, compile, config, index_d_exports$1 as core, creditCard, cuid, cuid2, currencyCode, custom, date$2 as date, decode, decodeAsync, deepPartial, external_d_exports as default, describe, discriminatedUnion, e164, email, emoji, encode, encodeAsync, _endsWith as endsWith, _enum as enum, exactOptional, file, flattenError, float32, float64, formatError, fromJSONSchema, _function as function, getDiscriminatedOption, getErrorMap, globalRegistry, _gt as gt, _gte as gte, guid, hash, hex, hostname, httpUrl, iban, _includes as includes, output$1 as infer, inferFlattenedErrors, inferFormattedError, input, _instanceof as instanceof, int, int32, int64, intersection, invertCodec, ipv4, ipv6, iso_d_exports as iso, json, jwt, keyof, ksuid, lazy, _length as length, literal, index_d_exports$2 as locales, looseObject, looseRecord, _lowercase as lowercase, _lt as lt, _lte as lte, mac, map, _maxLength as maxLength, _maxSize as maxSize, memoizer, meta, _mime as mime, _minLength as minLength, _minSize as minSize, _multipleOf as multipleOf, nan, nanoid, nativeEnum, _negative as negative, never, _nonnegative as nonnegative, nonoptional, _nonpositive as nonpositive, _normalize as normalize, _null as null, nullable, nullish, number$1 as number, object, optional, output, _overwrite as overwrite, parse, parseAsync, partialRecord, pipe, _positive as positive, prefault, preprocess, prettifyError, promise, _properties as properties, _property as property, readonly, record, refine, _regex as regex, regexes_d_exports as regexes, registry, safeDecode, safeDecodeAsync, safeEncode, safeEncodeAsync, safeParse, safeParseAsync, set, setErrorMap, _size as size, _slugify as slugify, _startsWith as startsWith, strictObject, string$1 as string, stringFormat, stringbool, success, superRefine, symbol, templateLiteral, toJSONSchema, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, toZod, transform, treeifyError, _trim as trim, tuple, uint32, uint64, ulid, _undefined as undefined, union, unknown, _uppercase as uppercase, url, util_d_exports as util, uuid, uuidv4, uuidv6, uuidv7, validate, validateAsync, _void as void, withParser, xid, xor, external_d_exports as z };
|
|
5373
5373
|
}
|
|
5374
5374
|
//#endregion
|
|
5375
|
-
//#region ../../node_modules/.pnpm/@modelcontextprotocol+core@2.
|
|
5375
|
+
//#region ../../node_modules/.pnpm/@modelcontextprotocol+core@2.3.1/node_modules/@modelcontextprotocol/core/dist/auth-Anm-lwWi.d.mts
|
|
5376
5376
|
//#region src/types.d.ts
|
|
5377
5377
|
type JSONValue = string | number | boolean | null | JSONObject | JSONArray;
|
|
5378
5378
|
type JSONObject = {
|
|
@@ -5425,6 +5425,33 @@ declare const NotificationSchema: ZodObject<{
|
|
|
5425
5425
|
}, $loose>>;
|
|
5426
5426
|
}, $loose>>;
|
|
5427
5427
|
}, $strip>;
|
|
5428
|
+
/**
|
|
5429
|
+
* The contents of a result's `_meta` field (the 2026-07-28 `ResultMetaObject`).
|
|
5430
|
+
* Loose — implementation-specific keys pass through.
|
|
5431
|
+
*
|
|
5432
|
+
* The serverInfo key identifies the server software producing the response
|
|
5433
|
+
* (servers SHOULD include it on every response; the value is self-reported
|
|
5434
|
+
* and intended for display, logging, and debugging). The getter defers the
|
|
5435
|
+
* `ImplementationSchema` reference, which is declared later in this file.
|
|
5436
|
+
*/
|
|
5437
|
+
declare const ResultMetaObjectSchema: ZodObject<{
|
|
5438
|
+
readonly "io.modelcontextprotocol/serverInfo": ZodCatch<ZodOptional<ZodObject<{
|
|
5439
|
+
version: ZodString;
|
|
5440
|
+
websiteUrl: ZodOptional<ZodString>;
|
|
5441
|
+
description: ZodOptional<ZodString>;
|
|
5442
|
+
icons: ZodOptional<ZodArray<ZodObject<{
|
|
5443
|
+
src: ZodString;
|
|
5444
|
+
mimeType: ZodOptional<ZodString>;
|
|
5445
|
+
sizes: ZodOptional<ZodArray<ZodString>>;
|
|
5446
|
+
theme: ZodOptional<ZodEnum<{
|
|
5447
|
+
light: "light";
|
|
5448
|
+
dark: "dark";
|
|
5449
|
+
}>>;
|
|
5450
|
+
}, $strip>>>;
|
|
5451
|
+
name: ZodString;
|
|
5452
|
+
title: ZodOptional<ZodString>;
|
|
5453
|
+
}, $strip>>>;
|
|
5454
|
+
}, $loose>;
|
|
5428
5455
|
declare const ResultSchema: ZodObject<{
|
|
5429
5456
|
/**
|
|
5430
5457
|
* See [MCP specification](https://modelcontextprotocol.io/specification/2026-07-28/basic/index#general-fields)
|
|
@@ -9103,7 +9130,7 @@ declare const ServerNotificationSchema: ZodUnion<readonly [ZodObject<{
|
|
|
9103
9130
|
}, $strip>;
|
|
9104
9131
|
}, $strip>]>;
|
|
9105
9132
|
//#endregion
|
|
9106
|
-
//#region ../../node_modules/.pnpm/@modelcontextprotocol+server@2.
|
|
9133
|
+
//#region ../../node_modules/.pnpm/@modelcontextprotocol+server@2.3.1/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-D4NN8WsG.d.mts
|
|
9107
9134
|
//#endregion
|
|
9108
9135
|
//#region ../core-internal/src/errors/sdkErrors.d.ts
|
|
9109
9136
|
/**
|
|
@@ -9229,7 +9256,17 @@ declare class SdkError extends Error {
|
|
|
9229
9256
|
* silently matching nothing).
|
|
9230
9257
|
*/
|
|
9231
9258
|
static isInstance<T$1 extends abstract new (...args: never[]) => unknown>(this: T$1, value: unknown): value is InstanceType<T$1>;
|
|
9232
|
-
|
|
9259
|
+
/**
|
|
9260
|
+
* @param code - Stable string code identifying the failure ({@linkcode SdkErrorCode}).
|
|
9261
|
+
* @param message - Human-readable description.
|
|
9262
|
+
* @param data - Optional structured payload (for example the HTTP status carried by
|
|
9263
|
+
* {@linkcode SdkHttpError}). Opaque to the SDK: a `cause` key inside `data` is not
|
|
9264
|
+
* promoted to `Error.cause`.
|
|
9265
|
+
* @param options - Standard `ErrorOptions`, forwarded to `Error`. Pass the underlying
|
|
9266
|
+
* failure as `{ cause }` so it is reachable through the `Error.cause` chain that
|
|
9267
|
+
* loggers and error trackers walk.
|
|
9268
|
+
*/
|
|
9269
|
+
constructor(code: SdkErrorCode, message: string, data?: unknown | undefined, options?: ErrorOptions);
|
|
9233
9270
|
}
|
|
9234
9271
|
type Primitive = string | number | boolean | bigint | null | undefined;
|
|
9235
9272
|
type Flatten<T$1> = T$1 extends Primitive ? T$1 : T$1 extends Array<infer U> ? Array<Flatten<U>> : T$1 extends Set<infer U> ? Set<Flatten<U>> : T$1 extends Map<infer K, infer V> ? Map<Flatten<K>, Flatten<V>> : T$1 extends object ? { [K in keyof T$1]: Flatten<T$1[K]>; } : T$1;
|
|
@@ -9487,6 +9524,18 @@ interface AuthInfo {
|
|
|
9487
9524
|
* If set, this MUST match the MCP server's resource identifier (minus hash fragment).
|
|
9488
9525
|
*/
|
|
9489
9526
|
resource?: URL;
|
|
9527
|
+
/**
|
|
9528
|
+
* URL of the RFC 9728 Protected Resource Metadata document for the
|
|
9529
|
+
* resource server that accepted this token.
|
|
9530
|
+
*
|
|
9531
|
+
* The bearer-auth helpers stamp their configured `resourceMetadataUrl`
|
|
9532
|
+
* here when verification succeeds, so challenge responses built after
|
|
9533
|
+
* authentication (for example per-operation `insufficient_scope` scope
|
|
9534
|
+
* challenges) can advertise the same document as the authentication
|
|
9535
|
+
* gate's own challenges without separate configuration. Verifiers may
|
|
9536
|
+
* also populate it directly; a verifier-set value wins.
|
|
9537
|
+
*/
|
|
9538
|
+
resourceMetadataUrl?: string;
|
|
9490
9539
|
/**
|
|
9491
9540
|
* Additional data associated with the token.
|
|
9492
9541
|
* This field should be used for any additional data that needs to be attached to the auth info.
|
|
@@ -9545,6 +9594,11 @@ interface MessageExtraInfo {
|
|
|
9545
9594
|
*/
|
|
9546
9595
|
closeStandaloneSSEStream?: () => void;
|
|
9547
9596
|
}
|
|
9597
|
+
/**
|
|
9598
|
+
* The contents of a result's `_meta` field (the 2026-07-28 `ResultMetaObject`):
|
|
9599
|
+
* loose, with the optional self-reported serverInfo key typed when present.
|
|
9600
|
+
*/
|
|
9601
|
+
type ResultMetaObject = Infer<typeof ResultMetaObjectSchema>;
|
|
9548
9602
|
/**
|
|
9549
9603
|
* {@linkcode CreateMessageRequestParams} without tools - for backwards-compatible overload.
|
|
9550
9604
|
* Excludes tools/toolChoice to indicate they should not be provided.
|
|
@@ -9638,6 +9692,8 @@ type DecodedResult = {
|
|
|
9638
9692
|
*/
|
|
9639
9693
|
inputRequests: Record<string, unknown>;
|
|
9640
9694
|
requestState?: string;
|
|
9695
|
+
/** Result-level `_meta`, carried through so a manual caller sees it. */
|
|
9696
|
+
_meta?: ResultMetaObject;
|
|
9641
9697
|
} | {
|
|
9642
9698
|
kind: 'invalid';
|
|
9643
9699
|
error: SdkError;
|
|
@@ -10253,6 +10309,8 @@ declare abstract class Protocol<ContextT extends BaseContext> {
|
|
|
10253
10309
|
private _transport?;
|
|
10254
10310
|
private _requestMessageId;
|
|
10255
10311
|
private _requestHandlers;
|
|
10312
|
+
/** Methods registered with an explicit schema; the era gate in `_onrequest` reads it for the Tasks extension names. */
|
|
10313
|
+
private _customSchemaRequestMethods;
|
|
10256
10314
|
private _requestHandlerAbortControllers;
|
|
10257
10315
|
private _notificationHandlers;
|
|
10258
10316
|
private _responseHandlers;
|
|
@@ -10636,6 +10694,20 @@ declare class UriTemplate {
|
|
|
10636
10694
|
match(uri: string): Variables | null;
|
|
10637
10695
|
}
|
|
10638
10696
|
//#endregion
|
|
10697
|
+
//#region src/server/scopeChallenge.d.ts
|
|
10698
|
+
/** OAuth scopes to request before handling an MCP request. */
|
|
10699
|
+
interface ScopeChallenge {
|
|
10700
|
+
/** The exact, complete scope set to include in the challenge. Each scope must satisfy the OAuth `scope-token` grammar. */
|
|
10701
|
+
scopes: readonly [string, ...string[]];
|
|
10702
|
+
/** Optional human-readable detail satisfying the RFC 6750 `error-description` grammar. */
|
|
10703
|
+
errorDescription?: string;
|
|
10704
|
+
}
|
|
10705
|
+
/** Determines whether an MCP request needs an OAuth scope challenge. */
|
|
10706
|
+
type ScopeChallengeHandler = (context: {
|
|
10707
|
+
request: JSONRPCRequest;
|
|
10708
|
+
authInfo?: AuthInfo;
|
|
10709
|
+
}) => ScopeChallenge | undefined | Promise<ScopeChallenge | undefined>;
|
|
10710
|
+
//#endregion
|
|
10639
10711
|
//#region src/server/server.d.ts
|
|
10640
10712
|
type ServerOptions = ProtocolOptions & {
|
|
10641
10713
|
/**
|
|
@@ -10777,6 +10849,8 @@ declare class Server extends Protocol<ServerContext> {
|
|
|
10777
10849
|
* Initializes this server with the given name and version information.
|
|
10778
10850
|
*/
|
|
10779
10851
|
constructor(_serverInfo: Implementation, options?: ServerOptions);
|
|
10852
|
+
/** Attaches to the given transport; rejects while this instance is connected to another one. */
|
|
10853
|
+
connect(transport: Transport): Promise<void>;
|
|
10780
10854
|
/**
|
|
10781
10855
|
* Registers the built-in `logging/setLevel` request handler.
|
|
10782
10856
|
*
|
|
@@ -11035,6 +11109,16 @@ declare class Server extends Protocol<ServerContext> {
|
|
|
11035
11109
|
}
|
|
11036
11110
|
//#endregion
|
|
11037
11111
|
//#region src/server/mcp.d.ts
|
|
11112
|
+
/**
|
|
11113
|
+
* Options for {@linkcode McpServer}: everything {@linkcode ServerOptions} accepts, plus `maxToolInputElements`.
|
|
11114
|
+
*/
|
|
11115
|
+
type McpServerOptions = ServerOptions & {
|
|
11116
|
+
/**
|
|
11117
|
+
* Largest combined number of array elements and object members a single `tools/call` `arguments` payload may contain.
|
|
11118
|
+
* A number of at least 1; unset or `Infinity` means no limit.
|
|
11119
|
+
*/
|
|
11120
|
+
maxToolInputElements?: number;
|
|
11121
|
+
};
|
|
11038
11122
|
/**
|
|
11039
11123
|
* High-level MCP server that provides a simpler API for working with resources, tools, and prompts.
|
|
11040
11124
|
* For advanced usage (like sending notifications or setting custom request handlers), use the underlying
|
|
@@ -11053,16 +11137,12 @@ declare class McpServer {
|
|
|
11053
11137
|
* The underlying {@linkcode Server} instance, useful for advanced operations like sending notifications.
|
|
11054
11138
|
*/
|
|
11055
11139
|
readonly server: Server;
|
|
11140
|
+
private readonly _maxToolInputElements;
|
|
11056
11141
|
private _registeredResources;
|
|
11057
11142
|
private _registeredResourceTemplates;
|
|
11058
11143
|
private _registeredTools;
|
|
11059
11144
|
private _registeredPrompts;
|
|
11060
|
-
/**
|
|
11061
|
-
* Per-tool JSON-converted `inputSchema`, memoized so the SEP-2243
|
|
11062
|
-
* registration-time scan and the pre-dispatch validation step share one
|
|
11063
|
-
* conversion instead of paying it twice per request under the
|
|
11064
|
-
* per-request-factory `createMcpHandler` model.
|
|
11065
|
-
*/
|
|
11145
|
+
/** Per-tool JSON-converted `inputSchema`, filled on first use by `toolInputSchemaJson()`. */
|
|
11066
11146
|
private _toolInputSchemaJson;
|
|
11067
11147
|
/**
|
|
11068
11148
|
* The JSON-serialized `inputSchema` of a registered tool, or `undefined`
|
|
@@ -11073,7 +11153,7 @@ declare class McpServer {
|
|
|
11073
11153
|
* @internal
|
|
11074
11154
|
*/
|
|
11075
11155
|
toolInputSchemaJson(name: string): Record<string, unknown> | undefined;
|
|
11076
|
-
constructor(serverInfo: Implementation, options?:
|
|
11156
|
+
constructor(serverInfo: Implementation, options?: McpServerOptions);
|
|
11077
11157
|
/**
|
|
11078
11158
|
* Attaches to the given transport, starts it, and starts listening for messages.
|
|
11079
11159
|
*
|
|
@@ -11091,6 +11171,8 @@ declare class McpServer {
|
|
|
11091
11171
|
* Closes the connection.
|
|
11092
11172
|
*/
|
|
11093
11173
|
close(): Promise<void>;
|
|
11174
|
+
/** @internal */
|
|
11175
|
+
resolveScopeChallenge: ScopeChallengeHandler;
|
|
11094
11176
|
private _toolHandlersInitialized;
|
|
11095
11177
|
private setToolRequestHandlers;
|
|
11096
11178
|
/**
|
|
@@ -11141,9 +11223,11 @@ declare class McpServer {
|
|
|
11141
11223
|
*/
|
|
11142
11224
|
registerResource(name: string, uriOrTemplate: string, config: ResourceMetadata & {
|
|
11143
11225
|
cacheHint?: CacheHint;
|
|
11226
|
+
scopeChallenge?: ScopeChallengeHandler;
|
|
11144
11227
|
}, readCallback: ReadResourceCallback): RegisteredResource;
|
|
11145
11228
|
registerResource(name: string, uriOrTemplate: ResourceTemplate, config: ResourceMetadata & {
|
|
11146
11229
|
cacheHint?: CacheHint;
|
|
11230
|
+
scopeChallenge?: ScopeChallengeHandler;
|
|
11147
11231
|
}, readCallback: ReadResourceTemplateCallback): RegisteredResourceTemplate;
|
|
11148
11232
|
private _createRegisteredResource;
|
|
11149
11233
|
private _createRegisteredResourceTemplate;
|
|
@@ -11182,6 +11266,8 @@ declare class McpServer {
|
|
|
11182
11266
|
outputSchema?: OutputArgs;
|
|
11183
11267
|
annotations?: ToolAnnotations;
|
|
11184
11268
|
icons?: Icon[];
|
|
11269
|
+
/** Determines whether this tool call needs an OAuth scope challenge. */
|
|
11270
|
+
scopeChallenge?: ScopeChallengeHandler;
|
|
11185
11271
|
_meta?: Record<string, unknown>;
|
|
11186
11272
|
}, cb: ToolCallback<InputArgs>): RegisteredTool;
|
|
11187
11273
|
/** @deprecated Wrap with `z.object({...})` instead. Raw-shape form: `inputSchema`/`outputSchema` may be a plain `{ field: z.string() }` record; it is auto-wrapped with `z.object()`. */
|
|
@@ -11192,6 +11278,7 @@ declare class McpServer {
|
|
|
11192
11278
|
outputSchema?: OutputArgs;
|
|
11193
11279
|
annotations?: ToolAnnotations;
|
|
11194
11280
|
icons?: Icon[];
|
|
11281
|
+
scopeChallenge?: ScopeChallengeHandler;
|
|
11195
11282
|
_meta?: Record<string, unknown>;
|
|
11196
11283
|
}, cb: LegacyToolCallback<InputArgs>): RegisteredTool;
|
|
11197
11284
|
/**
|
|
@@ -11220,11 +11307,22 @@ declare class McpServer {
|
|
|
11220
11307
|
* );
|
|
11221
11308
|
* ```
|
|
11222
11309
|
*/
|
|
11310
|
+
registerPrompt(name: string, config: {
|
|
11311
|
+
title?: string;
|
|
11312
|
+
description?: string;
|
|
11313
|
+
argsSchema?: undefined;
|
|
11314
|
+
icons?: Icon[];
|
|
11315
|
+
/** Determines whether this prompt retrieval needs an OAuth scope challenge. */
|
|
11316
|
+
scopeChallenge?: ScopeChallengeHandler;
|
|
11317
|
+
_meta?: Record<string, unknown>;
|
|
11318
|
+
}, cb: PromptCallback): RegisteredPrompt;
|
|
11223
11319
|
registerPrompt<Args extends StandardSchemaWithJSON>(name: string, config: {
|
|
11224
11320
|
title?: string;
|
|
11225
11321
|
description?: string;
|
|
11226
11322
|
argsSchema?: Args;
|
|
11227
11323
|
icons?: Icon[];
|
|
11324
|
+
/** Determines whether this prompt retrieval needs an OAuth scope challenge. */
|
|
11325
|
+
scopeChallenge?: ScopeChallengeHandler;
|
|
11228
11326
|
_meta?: Record<string, unknown>;
|
|
11229
11327
|
}, cb: PromptCallback<Args>): RegisteredPrompt;
|
|
11230
11328
|
/** @deprecated Wrap with `z.object({...})` instead. Raw-shape form: `argsSchema` may be a plain `{ field: z.string() }` record; it is auto-wrapped with `z.object()`. */
|
|
@@ -11233,6 +11331,7 @@ declare class McpServer {
|
|
|
11233
11331
|
description?: string;
|
|
11234
11332
|
argsSchema?: Args;
|
|
11235
11333
|
icons?: Icon[];
|
|
11334
|
+
scopeChallenge?: ScopeChallengeHandler;
|
|
11236
11335
|
_meta?: Record<string, unknown>;
|
|
11237
11336
|
}, cb: LegacyPromptCallback<Args>): RegisteredPrompt;
|
|
11238
11337
|
/**
|
|
@@ -11343,7 +11442,7 @@ type RegisteredTool = {
|
|
|
11343
11442
|
outputSchema?: StandardSchemaWithJSON;
|
|
11344
11443
|
/**
|
|
11345
11444
|
* @hidden
|
|
11346
|
-
* The converted JSON Schema of `outputSchema`, memoised
|
|
11445
|
+
* The converted JSON Schema of `outputSchema`, memoised on first use (and on
|
|
11347
11446
|
* `update({outputSchema})`) so the `tools/call` handler passes the SAME advertised schema
|
|
11348
11447
|
* `tools/list` emits to the wire codec's `projectCallToolResult` — the SEP-2106 `{result:…}`
|
|
11349
11448
|
* wrap predicate follows the schema's root, never the runtime value shape. `undefined` when
|
|
@@ -11353,6 +11452,7 @@ type RegisteredTool = {
|
|
|
11353
11452
|
annotations?: ToolAnnotations;
|
|
11354
11453
|
icons?: Icon[];
|
|
11355
11454
|
execution?: ToolExecution;
|
|
11455
|
+
scopeChallenge?: ScopeChallengeHandler;
|
|
11356
11456
|
_meta?: Record<string, unknown>;
|
|
11357
11457
|
handler: AnyToolHandler<StandardSchemaWithJSON | undefined>;
|
|
11358
11458
|
/** @hidden */
|
|
@@ -11368,6 +11468,7 @@ type RegisteredTool = {
|
|
|
11368
11468
|
outputSchema?: StandardSchemaWithJSON;
|
|
11369
11469
|
annotations?: ToolAnnotations;
|
|
11370
11470
|
icons?: Icon[];
|
|
11471
|
+
scopeChallenge?: ScopeChallengeHandler | null;
|
|
11371
11472
|
_meta?: Record<string, unknown>;
|
|
11372
11473
|
callback?: ToolCallback<StandardSchemaWithJSON>;
|
|
11373
11474
|
enabled?: boolean;
|
|
@@ -11392,6 +11493,7 @@ type RegisteredResource = {
|
|
|
11392
11493
|
metadata?: ResourceMetadata;
|
|
11393
11494
|
/** Cache hint applied to this resource's `resources/read` results on the 2026-07-28 revision. */
|
|
11394
11495
|
cacheHint?: CacheHint;
|
|
11496
|
+
scopeChallenge?: ScopeChallengeHandler;
|
|
11395
11497
|
readCallback: ReadResourceCallback;
|
|
11396
11498
|
enabled: boolean;
|
|
11397
11499
|
enable(): void;
|
|
@@ -11401,6 +11503,7 @@ type RegisteredResource = {
|
|
|
11401
11503
|
title?: string;
|
|
11402
11504
|
uri?: string | null;
|
|
11403
11505
|
metadata?: ResourceMetadata;
|
|
11506
|
+
scopeChallenge?: ScopeChallengeHandler | null;
|
|
11404
11507
|
callback?: ReadResourceCallback;
|
|
11405
11508
|
enabled?: boolean;
|
|
11406
11509
|
}): void;
|
|
@@ -11416,6 +11519,7 @@ type RegisteredResourceTemplate = {
|
|
|
11416
11519
|
metadata?: ResourceMetadata;
|
|
11417
11520
|
/** Cache hint applied to this template's `resources/read` results on the 2026-07-28 revision. */
|
|
11418
11521
|
cacheHint?: CacheHint;
|
|
11522
|
+
scopeChallenge?: ScopeChallengeHandler;
|
|
11419
11523
|
readCallback: ReadResourceTemplateCallback;
|
|
11420
11524
|
enabled: boolean;
|
|
11421
11525
|
enable(): void;
|
|
@@ -11425,6 +11529,7 @@ type RegisteredResourceTemplate = {
|
|
|
11425
11529
|
title?: string;
|
|
11426
11530
|
template?: ResourceTemplate;
|
|
11427
11531
|
metadata?: ResourceMetadata;
|
|
11532
|
+
scopeChallenge?: ScopeChallengeHandler | null;
|
|
11428
11533
|
callback?: ReadResourceTemplateCallback;
|
|
11429
11534
|
enabled?: boolean;
|
|
11430
11535
|
}): void;
|
|
@@ -11441,6 +11546,7 @@ type RegisteredPrompt = {
|
|
|
11441
11546
|
description?: string;
|
|
11442
11547
|
argsSchema?: StandardSchemaWithJSON;
|
|
11443
11548
|
icons?: Icon[];
|
|
11549
|
+
scopeChallenge?: ScopeChallengeHandler;
|
|
11444
11550
|
_meta?: Record<string, unknown>;
|
|
11445
11551
|
/** @hidden */
|
|
11446
11552
|
handler: PromptHandler;
|
|
@@ -11453,6 +11559,7 @@ type RegisteredPrompt = {
|
|
|
11453
11559
|
description?: string;
|
|
11454
11560
|
argsSchema?: Args;
|
|
11455
11561
|
icons?: Icon[];
|
|
11562
|
+
scopeChallenge?: ScopeChallengeHandler | null;
|
|
11456
11563
|
_meta?: Record<string, unknown>;
|
|
11457
11564
|
callback?: PromptCallback<Args>;
|
|
11458
11565
|
enabled?: boolean;
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { R as createEventsMcpServer,
|
|
1
|
+
import { R as createEventsMcpServer, X as status, a as B3_CONTROL_V1_OPERATION_SPECS, c as B3_CONTROL_V1_SUCCESSOR_REQUIREMENT, d as B3_SECRET_TERMINAL_ORIGIN, i as B3_CONTROL_ERROR_CODES, l as B3_DESKTOP_CONTROL_OPERATIONS, m as renderB3ApprovalPreviewV1, n as B3_CAPABILITIES, o as B3_CONTROL_V1_RESULT_OPERATIONS, r as B3_CONTROL_CONTRACT, s as B3_CONTROL_V1_SCHEMA_VERSION, t as B3_APPROVAL_VIEW_VARIANTS, u as B3_JUDGE_UNAVAILABLE_VARIANTS } from "./b3-contract-BZIj-LWV.mjs";
|
|
2
2
|
export { B3_APPROVAL_VIEW_VARIANTS, B3_CAPABILITIES, B3_CONTROL_CONTRACT, B3_CONTROL_ERROR_CODES, B3_CONTROL_V1_OPERATION_SPECS, B3_CONTROL_V1_RESULT_OPERATIONS, B3_CONTROL_V1_SCHEMA_VERSION, B3_CONTROL_V1_SUCCESSOR_REQUIREMENT, B3_DESKTOP_CONTROL_OPERATIONS, B3_JUDGE_UNAVAILABLE_VARIANTS, B3_SECRET_TERMINAL_ORIGIN, createEventsMcpServer, renderB3ApprovalPreviewV1, status };
|