@chrischall/office-outlook-mcp 0.7.1 → 0.8.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/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +13 -1
- package/dist/bundle.js +1085 -353
- package/dist/tools/_hints.js +68 -0
- package/dist/tools/calendar.js +19 -1
- package/dist/tools/directory.js +16 -1
- package/dist/tools/export.js +3 -0
- package/dist/tools/mail.js +24 -1
- package/dist/tools/writes.js +11 -0
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/skills/outlook-fpx/SKILL.md +27 -0
package/dist/bundle.js
CHANGED
|
@@ -125,10 +125,10 @@ var init_caller = __esm({
|
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
127
|
|
|
128
|
-
// node_modules/@modelcontextprotocol/server/dist/chunk-
|
|
128
|
+
// node_modules/@modelcontextprotocol/server/dist/chunk-vYduTEsO.mjs
|
|
129
129
|
var __create2, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __getProtoOf2, __hasOwnProp2, __commonJSMin, __exportAll, __copyProps2, __toESM2;
|
|
130
|
-
var
|
|
131
|
-
"node_modules/@modelcontextprotocol/server/dist/chunk-
|
|
130
|
+
var init_chunk_vYduTEsO = __esm({
|
|
131
|
+
"node_modules/@modelcontextprotocol/server/dist/chunk-vYduTEsO.mjs"() {
|
|
132
132
|
__create2 = Object.create;
|
|
133
133
|
__defProp2 = Object.defineProperty;
|
|
134
134
|
__getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -170,7 +170,7 @@ var init_chunk_Br0eD_fh = __esm({
|
|
|
170
170
|
}
|
|
171
171
|
});
|
|
172
172
|
|
|
173
|
-
// node_modules/@modelcontextprotocol/server/dist/dialects-
|
|
173
|
+
// node_modules/@modelcontextprotocol/server/dist/dialects-CDpMbily.mjs
|
|
174
174
|
function declares2019Dialect($schema) {
|
|
175
175
|
return typeof $schema === "string" && DRAFT_2019_09_URIS.has($schema.replace(/#$/, ""));
|
|
176
176
|
}
|
|
@@ -183,8 +183,8 @@ function declaredDialect(schema, remedy) {
|
|
|
183
183
|
throw new Error(`JSON Schema declares an unsupported dialect ("$schema": "${schema.$schema.slice(0, 200)}"). The default validator supports JSON Schema 2020-12, 2019-09, draft-07, and draft-06; ${remedy}`);
|
|
184
184
|
}
|
|
185
185
|
var DRAFT_2020_12_URIS, DRAFT_2019_09_URIS, DRAFT_07_URIS, DRAFT_06_URIS;
|
|
186
|
-
var
|
|
187
|
-
"node_modules/@modelcontextprotocol/server/dist/dialects-
|
|
186
|
+
var init_dialects_CDpMbily = __esm({
|
|
187
|
+
"node_modules/@modelcontextprotocol/server/dist/dialects-CDpMbily.mjs"() {
|
|
188
188
|
DRAFT_2020_12_URIS = /* @__PURE__ */ new Set(["https://json-schema.org/draft/2020-12/schema", "http://json-schema.org/draft/2020-12/schema"]);
|
|
189
189
|
DRAFT_2019_09_URIS = /* @__PURE__ */ new Set(["https://json-schema.org/draft/2019-09/schema", "http://json-schema.org/draft/2019-09/schema"]);
|
|
190
190
|
DRAFT_07_URIS = /* @__PURE__ */ new Set(["https://json-schema.org/draft-07/schema", "http://json-schema.org/draft-07/schema"]);
|
|
@@ -20606,10 +20606,10 @@ var init_v4 = __esm({
|
|
|
20606
20606
|
}
|
|
20607
20607
|
});
|
|
20608
20608
|
|
|
20609
|
-
// node_modules/@modelcontextprotocol/
|
|
20610
|
-
var LATEST_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, RELATED_TASK_META_KEY, PROTOCOL_VERSION_META_KEY, CLIENT_INFO_META_KEY, SERVER_INFO_META_KEY, CLIENT_CAPABILITIES_META_KEY, SUBSCRIPTION_ID_META_KEY, LOG_LEVEL_META_KEY, JSONRPC_VERSION, JSONValueSchema, JSONObjectSchema, JSONArraySchema, ProgressTokenSchema, CursorSchema, TaskMetadataSchema, RelatedTaskMetadataSchema, RequestMetaSchema, BaseRequestParamsSchema, TaskAugmentedRequestParamsSchema, RequestSchema, NotificationsParamsSchema, NotificationSchema, ResultMetaObjectSchema, ResultSchema, RequestIdSchema, JSONRPCRequestSchema, JSONRPCNotificationSchema, JSONRPCResultResponseSchema, JSONRPCErrorResponseSchema, JSONRPCMessageSchema, JSONRPCResponseSchema, EmptyResultSchema, CancelledNotificationParamsSchema, CancelledNotificationSchema, IconSchema, IconsSchema, BaseMetadataSchema, ImplementationSchema, FormElicitationCapabilitySchema, ElicitationCapabilitySchema, ClientTasksCapabilitySchema, ServerTasksCapabilitySchema, ClientCapabilitiesSchema, InitializeRequestParamsSchema, InitializeRequestSchema, ServerCapabilitiesSchema, InitializeResultSchema, InitializedNotificationSchema, DiscoverRequestSchema, DiscoverResultSchema, PingRequestSchema, ProgressSchema, ProgressNotificationParamsSchema, ProgressNotificationSchema, PaginatedRequestParamsSchema, PaginatedRequestSchema, PaginatedResultSchema, ResourceContentsSchema, TextResourceContentsSchema, Base64Schema, BlobResourceContentsSchema, RoleSchema, AnnotationsSchema, ResourceSchema, ResourceTemplateSchema, ListResourcesRequestSchema, ListResourcesResultSchema, ListResourceTemplatesRequestSchema, ListResourceTemplatesResultSchema, ResourceRequestParamsSchema, ReadResourceRequestParamsSchema, ReadResourceRequestSchema, ReadResourceResultSchema, ResourceListChangedNotificationSchema, SubscribeRequestParamsSchema, SubscribeRequestSchema, UnsubscribeRequestParamsSchema, UnsubscribeRequestSchema, SubscriptionFilterSchema, SubscriptionsListenRequestParamsSchema, SubscriptionsListenRequestSchema, SubscriptionsAcknowledgedNotificationParamsSchema, SubscriptionsAcknowledgedNotificationSchema, SubscriptionsListenResultMetaSchema, SubscriptionsListenResultSchema, ResourceUpdatedNotificationParamsSchema, ResourceUpdatedNotificationSchema, PromptArgumentSchema, PromptSchema, ListPromptsRequestSchema, ListPromptsResultSchema, GetPromptRequestParamsSchema, GetPromptRequestSchema, TextContentSchema, ImageContentSchema, AudioContentSchema, ToolUseContentSchema, EmbeddedResourceSchema, ResourceLinkSchema, ContentBlockSchema, PromptMessageSchema, GetPromptResultSchema, PromptListChangedNotificationSchema, ToolAnnotationsSchema, ToolExecutionSchema, ToolSchema, ListToolsRequestSchema, ListToolsResultSchema, CallToolResultSchema, CompatibilityCallToolResultSchema, CallToolRequestParamsSchema, CallToolRequestSchema, ToolListChangedNotificationSchema, ListChangedOptionsBaseSchema, LoggingLevelSchema, SetLevelRequestParamsSchema, SetLevelRequestSchema, LoggingMessageNotificationParamsSchema, LoggingMessageNotificationSchema, ModelHintSchema, ModelPreferencesSchema, ToolChoiceSchema, ToolResultContentSchema, SamplingContentSchema, SamplingMessageContentBlockSchema, SamplingMessageSchema, CreateMessageRequestParamsSchema, CreateMessageRequestSchema, CreateMessageResultSchema, CreateMessageResultWithToolsSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema, UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema, LegacyTitledEnumSchemaSchema, SingleSelectEnumSchemaSchema, UntitledMultiSelectEnumSchemaSchema, TitledMultiSelectEnumSchemaSchema, MultiSelectEnumSchemaSchema, EnumSchemaSchema, PrimitiveSchemaDefinitionSchema, ElicitRequestFormParamsSchema, ElicitRequestURLParamsSchema, ElicitRequestParamsSchema, ElicitRequestSchema, ElicitationCompleteNotificationParamsSchema, ElicitationCompleteNotificationSchema, ElicitResultSchema, ResourceTemplateReferenceSchema, PromptReferenceSchema, CompleteRequestParamsSchema, CompleteRequestSchema, CompleteResultSchema, RootSchema, ListRootsRequestSchema, ListRootsResultSchema, RootsListChangedNotificationSchema, TaskCreationParamsSchema, TaskStatusSchema, TaskSchema, CreateTaskResultSchema, TaskStatusNotificationParamsSchema, TaskStatusNotificationSchema, GetTaskRequestSchema, GetTaskResultSchema, GetTaskPayloadRequestSchema, GetTaskPayloadResultSchema, ListTasksRequestSchema, ListTasksResultSchema, CancelTaskRequestSchema, CancelTaskResultSchema, ClientRequestSchema, ClientNotificationSchema, ClientResultSchema, ServerRequestSchema, ServerNotificationSchema, ServerResultSchema
|
|
20611
|
-
var
|
|
20612
|
-
"node_modules/@modelcontextprotocol/
|
|
20609
|
+
// node_modules/@modelcontextprotocol/core/dist/schemas-DscsoNZN.mjs
|
|
20610
|
+
var LATEST_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, RELATED_TASK_META_KEY, PROTOCOL_VERSION_META_KEY, CLIENT_INFO_META_KEY, SERVER_INFO_META_KEY, CLIENT_CAPABILITIES_META_KEY, SUBSCRIPTION_ID_META_KEY, LOG_LEVEL_META_KEY, JSONRPC_VERSION, JSONValueSchema, JSONObjectSchema, JSONArraySchema, ProgressTokenSchema, CursorSchema, TaskMetadataSchema, RelatedTaskMetadataSchema, RequestMetaSchema, BaseRequestParamsSchema, TaskAugmentedRequestParamsSchema, RequestSchema, NotificationsParamsSchema, NotificationSchema, ResultMetaObjectSchema, ResultSchema, RequestIdSchema, JSONRPCRequestSchema, JSONRPCNotificationSchema, JSONRPCResultResponseSchema, JSONRPCErrorResponseSchema, JSONRPCMessageSchema, JSONRPCResponseSchema, EmptyResultSchema, CancelledNotificationParamsSchema, CancelledNotificationSchema, IconSchema, IconsSchema, BaseMetadataSchema, ImplementationSchema, FormElicitationCapabilitySchema, ElicitationCapabilitySchema, ClientTasksCapabilitySchema, ServerTasksCapabilitySchema, ClientCapabilitiesSchema, InitializeRequestParamsSchema, InitializeRequestSchema, ServerCapabilitiesSchema, InitializeResultSchema, InitializedNotificationSchema, DiscoverRequestSchema, DiscoverResultSchema, PingRequestSchema, ProgressSchema, ProgressNotificationParamsSchema, ProgressNotificationSchema, PaginatedRequestParamsSchema, PaginatedRequestSchema, PaginatedResultSchema, ResourceContentsSchema, TextResourceContentsSchema, Base64Schema, BlobResourceContentsSchema, RoleSchema, AnnotationsSchema, ResourceSchema, ResourceTemplateSchema, ListResourcesRequestSchema, ListResourcesResultSchema, ListResourceTemplatesRequestSchema, ListResourceTemplatesResultSchema, ResourceRequestParamsSchema, ReadResourceRequestParamsSchema, ReadResourceRequestSchema, ReadResourceResultSchema, ResourceListChangedNotificationSchema, SubscribeRequestParamsSchema, SubscribeRequestSchema, UnsubscribeRequestParamsSchema, UnsubscribeRequestSchema, SubscriptionFilterSchema, SubscriptionsListenRequestParamsSchema, SubscriptionsListenRequestSchema, SubscriptionsAcknowledgedNotificationParamsSchema, SubscriptionsAcknowledgedNotificationSchema, SubscriptionsListenResultMetaSchema, SubscriptionsListenResultSchema, ResourceUpdatedNotificationParamsSchema, ResourceUpdatedNotificationSchema, PromptArgumentSchema, PromptSchema, ListPromptsRequestSchema, ListPromptsResultSchema, GetPromptRequestParamsSchema, GetPromptRequestSchema, TextContentSchema, ImageContentSchema, AudioContentSchema, ToolUseContentSchema, EmbeddedResourceSchema, ResourceLinkSchema, ContentBlockSchema, PromptMessageSchema, GetPromptResultSchema, PromptListChangedNotificationSchema, ToolAnnotationsSchema, ToolExecutionSchema, ToolSchema, ListToolsRequestSchema, ListToolsResultSchema, CallToolResultSchema, CompatibilityCallToolResultSchema, CallToolRequestParamsSchema, CallToolRequestSchema, ToolListChangedNotificationSchema, ListChangedOptionsBaseSchema, LoggingLevelSchema, SetLevelRequestParamsSchema, SetLevelRequestSchema, LoggingMessageNotificationParamsSchema, LoggingMessageNotificationSchema, ModelHintSchema, ModelPreferencesSchema, ToolChoiceSchema, ToolResultContentSchema, SamplingContentSchema, SamplingMessageContentBlockSchema, SamplingMessageSchema, CreateMessageRequestParamsSchema, CreateMessageRequestSchema, CreateMessageResultSchema, CreateMessageResultWithToolsSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema, UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema, LegacyTitledEnumSchemaSchema, SingleSelectEnumSchemaSchema, UntitledMultiSelectEnumSchemaSchema, TitledMultiSelectEnumSchemaSchema, MultiSelectEnumSchemaSchema, EnumSchemaSchema, PrimitiveSchemaDefinitionSchema, ElicitRequestFormParamsSchema, ElicitRequestURLParamsSchema, ElicitRequestParamsSchema, ElicitRequestSchema, ElicitationCompleteNotificationParamsSchema, ElicitationCompleteNotificationSchema, ElicitResultSchema, ResourceTemplateReferenceSchema, PromptReferenceSchema, CompleteRequestParamsSchema, CompleteRequestSchema, CompleteResultSchema, RootSchema, ListRootsRequestSchema, ListRootsResultSchema, RootsListChangedNotificationSchema, TaskCreationParamsSchema, TaskStatusSchema, TaskSchema, CreateTaskResultSchema, TaskStatusNotificationParamsSchema, TaskStatusNotificationSchema, GetTaskRequestSchema, GetTaskResultSchema, GetTaskPayloadRequestSchema, GetTaskPayloadResultSchema, ListTasksRequestSchema, ListTasksResultSchema, CancelTaskRequestSchema, CancelTaskResultSchema, ClientRequestSchema, ClientNotificationSchema, ClientResultSchema, ServerRequestSchema, ServerNotificationSchema, ServerResultSchema;
|
|
20611
|
+
var init_schemas_DscsoNZN = __esm({
|
|
20612
|
+
"node_modules/@modelcontextprotocol/core/dist/schemas-DscsoNZN.mjs"() {
|
|
20613
20613
|
init_v4();
|
|
20614
20614
|
LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
20615
20615
|
SUPPORTED_PROTOCOL_VERSIONS = [
|
|
@@ -21398,6 +21398,14 @@ var init_auth_BNDyLTqp = __esm({
|
|
|
21398
21398
|
ListToolsResultSchema,
|
|
21399
21399
|
SubscriptionsListenResultSchema
|
|
21400
21400
|
]);
|
|
21401
|
+
}
|
|
21402
|
+
});
|
|
21403
|
+
|
|
21404
|
+
// node_modules/@modelcontextprotocol/core/dist/auth-UMQCo-ad.mjs
|
|
21405
|
+
var SafeUrlSchema, OAuthProtectedResourceMetadataSchema, OAuthMetadataSchema, OpenIdProviderMetadataSchema, OpenIdProviderDiscoveryMetadataSchema, OAuthTokensSchema, IdJagTokenExchangeResponseSchema, OAuthErrorResponseSchema, OptionalSafeUrlSchema, OAuthClientMetadataSchema, OAuthClientInformationSchema, OAuthClientInformationFullSchema, OAuthClientRegistrationErrorSchema, OAuthTokenRevocationRequestSchema;
|
|
21406
|
+
var init_auth_UMQCo_ad = __esm({
|
|
21407
|
+
"node_modules/@modelcontextprotocol/core/dist/auth-UMQCo-ad.mjs"() {
|
|
21408
|
+
init_v4();
|
|
21401
21409
|
SafeUrlSchema = url().superRefine((val, ctx) => {
|
|
21402
21410
|
if (!URL.canParse(val)) {
|
|
21403
21411
|
ctx.addIssue({
|
|
@@ -21553,14 +21561,15 @@ var init_auth_BNDyLTqp = __esm({
|
|
|
21553
21561
|
}
|
|
21554
21562
|
});
|
|
21555
21563
|
|
|
21556
|
-
// node_modules/@modelcontextprotocol/
|
|
21564
|
+
// node_modules/@modelcontextprotocol/core/dist/internal.mjs
|
|
21557
21565
|
var init_internal = __esm({
|
|
21558
|
-
"node_modules/@modelcontextprotocol/
|
|
21559
|
-
|
|
21566
|
+
"node_modules/@modelcontextprotocol/core/dist/internal.mjs"() {
|
|
21567
|
+
init_schemas_DscsoNZN();
|
|
21568
|
+
init_auth_UMQCo_ad();
|
|
21560
21569
|
}
|
|
21561
21570
|
});
|
|
21562
21571
|
|
|
21563
|
-
// node_modules/@modelcontextprotocol/server/dist/src-
|
|
21572
|
+
// node_modules/@modelcontextprotocol/server/dist/src-DdvbAHrR.mjs
|
|
21564
21573
|
function stampErrorBrands(instance, ctor) {
|
|
21565
21574
|
const brands = /* @__PURE__ */ new Set();
|
|
21566
21575
|
let current = ctor;
|
|
@@ -23791,6 +23800,7 @@ function assertCompleteRequestResourceTemplate(request) {
|
|
|
23791
23800
|
function scanXMcpHeaderDeclarations(inputSchema) {
|
|
23792
23801
|
const declarations = [];
|
|
23793
23802
|
const seenLower = /* @__PURE__ */ new Map();
|
|
23803
|
+
let numberFault;
|
|
23794
23804
|
const visit2 = (node2, path, reachable) => {
|
|
23795
23805
|
if (node2 === null || typeof node2 !== "object") return void 0;
|
|
23796
23806
|
const schema = node2;
|
|
@@ -23800,7 +23810,11 @@ function scanXMcpHeaderDeclarations(inputSchema) {
|
|
|
23800
23810
|
if (typeof raw !== "string" || raw.length === 0) return `${pathName(path)}: x-mcp-header MUST be a non-empty string`;
|
|
23801
23811
|
if (!RFC9110_TOKEN.test(raw)) return `${pathName(path)}: x-mcp-header '${raw}' is not a valid RFC 9110 token (no spaces, control characters or HTTP delimiters)`;
|
|
23802
23812
|
const type = typeof schema.type === "string" ? schema.type : void 0;
|
|
23803
|
-
if (type === void 0 || !PERMITTED_X_MCP_HEADER_TYPES.has(type))
|
|
23813
|
+
if (type === void 0 || !PERMITTED_X_MCP_HEADER_TYPES.has(type)) {
|
|
23814
|
+
const fault$1 = `${pathName(path)}: x-mcp-header is only permitted on primitive-typed properties (string, integer, boolean); got ${type ?? "<none>"}`;
|
|
23815
|
+
if (type !== "number") return fault$1;
|
|
23816
|
+
numberFault ??= fault$1;
|
|
23817
|
+
}
|
|
23804
23818
|
const lower2 = raw.toLowerCase();
|
|
23805
23819
|
const prior = seenLower.get(lower2);
|
|
23806
23820
|
if (prior !== void 0) return `x-mcp-header '${raw}' is not case-insensitively unique (also declared as '${prior}')`;
|
|
@@ -23827,12 +23841,17 @@ function scanXMcpHeaderDeclarations(inputSchema) {
|
|
|
23827
23841
|
}
|
|
23828
23842
|
};
|
|
23829
23843
|
const fault = visit2(inputSchema, [], true);
|
|
23830
|
-
|
|
23844
|
+
if (fault !== void 0) return {
|
|
23845
|
+
valid: false,
|
|
23846
|
+
reason: numberFault ?? fault
|
|
23847
|
+
};
|
|
23848
|
+
return numberFault === void 0 ? {
|
|
23831
23849
|
valid: true,
|
|
23832
23850
|
declarations
|
|
23833
23851
|
} : {
|
|
23834
23852
|
valid: false,
|
|
23835
|
-
reason:
|
|
23853
|
+
reason: numberFault,
|
|
23854
|
+
declarations
|
|
23836
23855
|
};
|
|
23837
23856
|
}
|
|
23838
23857
|
function pathName(path) {
|
|
@@ -23918,15 +23937,17 @@ function standardSchemaToJsonSchema(schema, io = "input") {
|
|
|
23918
23937
|
...result
|
|
23919
23938
|
};
|
|
23920
23939
|
}
|
|
23921
|
-
function isProvablyObjectShapedRoot(schema) {
|
|
23940
|
+
function isProvablyObjectShapedRoot(schema, root = schema) {
|
|
23922
23941
|
if ("properties" in schema || "patternProperties" in schema || "additionalProperties" in schema || "required" in schema) return true;
|
|
23942
|
+
const ref = typeof schema.$ref === "string" && LOCAL_DEFINITION_REF.exec(schema.$ref);
|
|
23943
|
+
if (ref && root[ref[1]]?.[ref[2]]?.type === "object") return true;
|
|
23923
23944
|
for (const key of [
|
|
23924
23945
|
"oneOf",
|
|
23925
23946
|
"anyOf",
|
|
23926
23947
|
"allOf"
|
|
23927
23948
|
]) {
|
|
23928
23949
|
const members2 = schema[key];
|
|
23929
|
-
if (Array.isArray(members2) && members2.length > 0) return members2.every((m) => m !== null && typeof m === "object" && (m.type === "object" || isProvablyObjectShapedRoot(m)));
|
|
23950
|
+
if (Array.isArray(members2) && members2.length > 0) return members2.every((m) => m !== null && typeof m === "object" && (m.type === "object" || isProvablyObjectShapedRoot(m, "$id" in m ? {} : root)));
|
|
23930
23951
|
}
|
|
23931
23952
|
return false;
|
|
23932
23953
|
}
|
|
@@ -24336,11 +24357,11 @@ function normalizeRawShapeSchema(schema) {
|
|
|
24336
24357
|
if (!isStandardSchema(schema)) throw new TypeError("inputSchema/outputSchema/argsSchema must be a Standard Schema (e.g. z.object({...})) or a raw Zod shape ({ field: z.string() }).");
|
|
24337
24358
|
return schema;
|
|
24338
24359
|
}
|
|
24339
|
-
var BRANDS, OAuthError, SdkErrorCode, SdkError, SdkHttpError, FIRST_MODERN_PROTOCOL_VERSION, SUPPORTED_MODERN_PROTOCOL_VERSIONS, TOOL_RESULT_FOREIGN_FAMILY_KEYS, memo$1, REF_REWRITE_DATA_POSITION_KEYS, REF_REWRITE_NAME_MAP_KEYS, requestMethodKeys$1, notificationMethodKeys$1, resultMethodKeys, maps$1, rev2025RequestMethods, rev2025NotificationMethods, NOT_IN_ERA$1, rev2025Codec, memo2, CACHEABLE_RESULT_METHODS, RESULT_CACHE_HINT_FALLBACK, ProtocolErrorCode, ProtocolError, ResourceNotFoundError, UrlElicitationRequiredError, UnsupportedProtocolVersionError, MissingRequiredClientCapabilityError, DEFAULT_CACHE_TTL_MS, DEFAULT_CACHE_SCOPE, EXTENDED_RESULT_TYPE_METHODS, INPUT_REQUEST_METHODS_2026, maps, requestMethodKeys, notificationMethodKeys, rev2026RequestMethods, rev2026NotificationMethods, NOT_IN_ERA, REQUIRED_ENVELOPE_KEYS, rev2026Codec, wireResultSchemasMemo, MODERN_WIRE_REVISION, ALL_CODECS, schemas_exports3, isJSONRPCRequest, isJSONRPCNotification, isJSONRPCResultResponse, isJSONRPCErrorResponse, isInputRequiredResult, X_MCP_HEADER_KEY, RFC9110_TOKEN, PERMITTED_X_MCP_HEADER_TYPES, NON_REACHABLE_SUBSCHEMA_KEYWORDS, OBJECT_VALUED_SUBSCHEMA_KEYWORDS, HEADER_MISMATCH_ERROR_CODE, INBOUND_VALIDATION_LADDER, LADDER_ERROR_HTTP_STATUS, warnedZodFallback, JSON_SCHEMA_CONVERSION_TARGET, DATETIME_FRACTION_DIGITS, ANNOTATION_ONLY_JSON_SCHEMA_KEYWORDS, ROOT_KEYS, PROPERTY_KEYS_BY_TYPE, SUPPORTED_STRING_FORMATS, inputRequired, REQUEST_STATE_ONLY_LEG_PACING_MS, SPEC_SCHEMA_KEYS, authSchemas, _specTypeSchemas, _isSpecType, specTypeSchemas, isSpecType, DEFAULT_REQUEST_TIMEOUT_MSEC, RESERVED_ENVELOPE_META_KEYS, RETRY_PARAMS_KEYS, NO_REQUEST_STATE, writeNegotiatedProtocolVersion, Protocol, require_content_type, import_content_type, STDIO_DEFAULT_MAX_BUFFER_SIZE, ReadBuffer, TOOL_NAME_REGEX;
|
|
24340
|
-
var
|
|
24341
|
-
"node_modules/@modelcontextprotocol/server/dist/src-
|
|
24342
|
-
|
|
24343
|
-
|
|
24360
|
+
var BRANDS, OAuthError, SdkErrorCode, SdkError, SdkHttpError, FIRST_MODERN_PROTOCOL_VERSION, SUPPORTED_MODERN_PROTOCOL_VERSIONS, TOOL_RESULT_FOREIGN_FAMILY_KEYS, memo$1, REF_REWRITE_DATA_POSITION_KEYS, REF_REWRITE_NAME_MAP_KEYS, requestMethodKeys$1, notificationMethodKeys$1, resultMethodKeys, maps$1, rev2025RequestMethods, rev2025NotificationMethods, NOT_IN_ERA$1, rev2025Codec, memo2, CACHEABLE_RESULT_METHODS, RESULT_CACHE_HINT_FALLBACK, ProtocolErrorCode, ProtocolError, ResourceNotFoundError, UrlElicitationRequiredError, UnsupportedProtocolVersionError, MissingRequiredClientCapabilityError, DEFAULT_CACHE_TTL_MS, DEFAULT_CACHE_SCOPE, EXTENDED_RESULT_TYPE_METHODS, INPUT_REQUEST_METHODS_2026, maps, requestMethodKeys, notificationMethodKeys, rev2026RequestMethods, rev2026NotificationMethods, NOT_IN_ERA, REQUIRED_ENVELOPE_KEYS, rev2026Codec, wireResultSchemasMemo, MODERN_WIRE_REVISION, ALL_CODECS, schemas_exports3, isJSONRPCRequest, isJSONRPCNotification, isJSONRPCResultResponse, isJSONRPCErrorResponse, isInputRequiredResult, X_MCP_HEADER_KEY, RFC9110_TOKEN, PERMITTED_X_MCP_HEADER_TYPES, NON_REACHABLE_SUBSCHEMA_KEYWORDS, OBJECT_VALUED_SUBSCHEMA_KEYWORDS, HEADER_MISMATCH_ERROR_CODE, INBOUND_VALIDATION_LADDER, LADDER_ERROR_HTTP_STATUS, warnedZodFallback, JSON_SCHEMA_CONVERSION_TARGET, LOCAL_DEFINITION_REF, DATETIME_FRACTION_DIGITS, ANNOTATION_ONLY_JSON_SCHEMA_KEYWORDS, ROOT_KEYS, PROPERTY_KEYS_BY_TYPE, SUPPORTED_STRING_FORMATS, inputRequired, REQUEST_STATE_ONLY_LEG_PACING_MS, SPEC_SCHEMA_KEYS, authSchemas, _specTypeSchemas, _isSpecType, specTypeSchemas, isSpecType, DEFAULT_REQUEST_TIMEOUT_MSEC, RESERVED_ENVELOPE_META_KEYS, RETRY_PARAMS_KEYS, NO_REQUEST_STATE, writeNegotiatedProtocolVersion, Protocol, require_content_type, import_content_type, STDIO_DEFAULT_MAX_BUFFER_SIZE, ReadBuffer, TOOL_NAME_REGEX;
|
|
24361
|
+
var init_src_DdvbAHrR = __esm({
|
|
24362
|
+
"node_modules/@modelcontextprotocol/server/dist/src-DdvbAHrR.mjs"() {
|
|
24363
|
+
init_chunk_vYduTEsO();
|
|
24364
|
+
init_dialects_CDpMbily();
|
|
24344
24365
|
init_internal();
|
|
24345
24366
|
init_v4();
|
|
24346
24367
|
BRANDS = /* @__PURE__ */ Symbol.for("mcp.sdk.errorBrands");
|
|
@@ -25069,8 +25090,7 @@ var init_src_Cqbh3MYc = __esm({
|
|
|
25069
25090
|
PERMITTED_X_MCP_HEADER_TYPES = /* @__PURE__ */ new Set([
|
|
25070
25091
|
"string",
|
|
25071
25092
|
"integer",
|
|
25072
|
-
"boolean"
|
|
25073
|
-
"number"
|
|
25093
|
+
"boolean"
|
|
25074
25094
|
]);
|
|
25075
25095
|
NON_REACHABLE_SUBSCHEMA_KEYWORDS = [
|
|
25076
25096
|
"items",
|
|
@@ -25187,6 +25207,7 @@ var init_src_Cqbh3MYc = __esm({
|
|
|
25187
25207
|
};
|
|
25188
25208
|
warnedZodFallback = false;
|
|
25189
25209
|
JSON_SCHEMA_CONVERSION_TARGET = "draft-2020-12";
|
|
25210
|
+
LOCAL_DEFINITION_REF = /^#\/(\$defs|definitions)\/([^/~%]+)$/;
|
|
25190
25211
|
DATETIME_FRACTION_DIGITS = /\\\.\\d\{(\d+)\}/;
|
|
25191
25212
|
ANNOTATION_ONLY_JSON_SCHEMA_KEYWORDS = /* @__PURE__ */ new Set([
|
|
25192
25213
|
"$comment",
|
|
@@ -26253,7 +26274,7 @@ var init_src_Cqbh3MYc = __esm({
|
|
|
26253
26274
|
}
|
|
26254
26275
|
});
|
|
26255
26276
|
|
|
26256
|
-
// node_modules/@modelcontextprotocol/server/dist/ajvProvider-
|
|
26277
|
+
// node_modules/@modelcontextprotocol/server/dist/ajvProvider-DyjnscPj.mjs
|
|
26257
26278
|
function createDefaultAjvInstance(engineClass) {
|
|
26258
26279
|
const ajv = new engineClass({
|
|
26259
26280
|
strict: false,
|
|
@@ -26265,10 +26286,10 @@ function createDefaultAjvInstance(engineClass) {
|
|
|
26265
26286
|
return ajv;
|
|
26266
26287
|
}
|
|
26267
26288
|
var require_code$1, require_scope, require_codegen, require_util, require_names, require_errors, require_boolSchema, require_rules, require_applicability, require_dataType, require_defaults, require_code, require_keyword, require_subschema, require_fast_deep_equal, require_json_schema_traverse, require_resolve, require_validate, require_validation_error, require_ref_error, require_compile, require_data, require_utils, require_schemes, require_fast_uri, require_uri, require_core$3, require_id, require_ref, require_core$2, require_limitNumber, require_multipleOf, require_ucs2length, require_limitLength, require_pattern, require_limitProperties, require_required, require_limitItems, require_equal, require_uniqueItems, require_const, require_enum, require_validation$2, require_additionalItems, require_items, require_prefixItems, require_items2020, require_contains, require_dependencies, require_propertyNames, require_additionalProperties, require_properties, require_patternProperties, require_not, require_anyOf, require_oneOf, require_allOf, require_if, require_thenElse, require_applicator$2, require_format$2, require_format$1, require_metadata, require_draft7, require_types, require_discriminator, require_json_schema_draft_07, require_ajv, require_dynamicAnchor, require_dynamicRef, require_recursiveAnchor, require_recursiveRef, require_dynamic, require_dependentRequired, require_dependentSchemas, require_limitContains, require_next, require_unevaluatedProperties, require_unevaluatedItems, require_unevaluated$1, require_schema$1, require_applicator$1, require_content$1, require_core$1, require_format, require_meta_data$1, require_validation$1, require_json_schema_2019_09, require__2019, require_draft2020, require_schema, require_applicator, require_unevaluated, require_content, require_core, require_format_annotation, require_meta_data, require_validation, require_json_schema_2020_12, require__2020, require_formats, require_limit, require_dist, import_ajv, import__2019, import__2020, import_dist, addFormats, AjvJsonSchemaValidator, Ajv;
|
|
26268
|
-
var
|
|
26269
|
-
"node_modules/@modelcontextprotocol/server/dist/ajvProvider-
|
|
26270
|
-
|
|
26271
|
-
|
|
26289
|
+
var init_ajvProvider_DyjnscPj = __esm({
|
|
26290
|
+
"node_modules/@modelcontextprotocol/server/dist/ajvProvider-DyjnscPj.mjs"() {
|
|
26291
|
+
init_chunk_vYduTEsO();
|
|
26292
|
+
init_dialects_CDpMbily();
|
|
26272
26293
|
require_code$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
26273
26294
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26274
26295
|
exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;
|
|
@@ -28950,6 +28971,22 @@ var init_ajvProvider_CEoC_sr = __esm({
|
|
|
28950
28971
|
require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
28951
28972
|
const isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
28952
28973
|
const isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
28974
|
+
const isPort = RegExp.prototype.test.bind(/^\d*$/u);
|
|
28975
|
+
const isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
|
|
28976
|
+
const isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
|
|
28977
|
+
const isPathCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u);
|
|
28978
|
+
const isQueryFragmentCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u);
|
|
28979
|
+
const isUserinfoCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u);
|
|
28980
|
+
const BYTE_HEX = new Array(256);
|
|
28981
|
+
{
|
|
28982
|
+
const HEX_DIGITS = "0123456789ABCDEF";
|
|
28983
|
+
for (let i = 0; i < 256; i++) BYTE_HEX[i] = "%" + HEX_DIGITS[i >> 4] + HEX_DIGITS[i & 15];
|
|
28984
|
+
}
|
|
28985
|
+
function percentEncodeNonAscii(cp) {
|
|
28986
|
+
if (cp < 2048) return BYTE_HEX[192 | cp >> 6] + BYTE_HEX[128 | cp & 63];
|
|
28987
|
+
if (cp < 65536) return BYTE_HEX[224 | cp >> 12] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
|
|
28988
|
+
return BYTE_HEX[240 | cp >> 18] + BYTE_HEX[128 | cp >> 12 & 63] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
|
|
28989
|
+
}
|
|
28953
28990
|
function stringArrayToHexStripped(input2) {
|
|
28954
28991
|
let acc = "";
|
|
28955
28992
|
let code2 = 0;
|
|
@@ -28968,83 +29005,120 @@ var init_ajvProvider_CEoC_sr = __esm({
|
|
|
28968
29005
|
}
|
|
28969
29006
|
return acc;
|
|
28970
29007
|
}
|
|
29008
|
+
const isHextet = RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/);
|
|
29009
|
+
const isIPvFuture = RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/);
|
|
29010
|
+
const isZoneCharacter = RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/);
|
|
28971
29011
|
const nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
|
|
28972
|
-
function
|
|
28973
|
-
|
|
28974
|
-
|
|
28975
|
-
|
|
28976
|
-
|
|
28977
|
-
|
|
28978
|
-
|
|
28979
|
-
if (hex3 !== "") address.push(hex3);
|
|
28980
|
-
else {
|
|
28981
|
-
output2.error = true;
|
|
28982
|
-
return false;
|
|
29012
|
+
function isZoneIdentifier(zone) {
|
|
29013
|
+
if (zone.length === 0) return false;
|
|
29014
|
+
for (let i = 0; i < zone.length; i++) {
|
|
29015
|
+
if (isZoneCharacter(zone[i])) continue;
|
|
29016
|
+
if (zone[i] === "%" && i + 2 < zone.length && isHexPair(zone.slice(i + 1, i + 3))) {
|
|
29017
|
+
i += 2;
|
|
29018
|
+
continue;
|
|
28983
29019
|
}
|
|
28984
|
-
|
|
29020
|
+
return false;
|
|
28985
29021
|
}
|
|
28986
29022
|
return true;
|
|
28987
29023
|
}
|
|
28988
|
-
function
|
|
28989
|
-
let
|
|
28990
|
-
|
|
28991
|
-
|
|
28992
|
-
|
|
28993
|
-
|
|
28994
|
-
|
|
28995
|
-
|
|
28996
|
-
|
|
28997
|
-
|
|
28998
|
-
|
|
28999
|
-
|
|
29000
|
-
|
|
29001
|
-
|
|
29002
|
-
|
|
29003
|
-
|
|
29004
|
-
|
|
29005
|
-
|
|
29006
|
-
|
|
29007
|
-
|
|
29008
|
-
|
|
29009
|
-
|
|
29010
|
-
|
|
29011
|
-
|
|
29012
|
-
|
|
29013
|
-
|
|
29014
|
-
|
|
29015
|
-
|
|
29016
|
-
|
|
29017
|
-
|
|
29024
|
+
function compressIPv6ZeroRun(hextets) {
|
|
29025
|
+
let bestStart = -1;
|
|
29026
|
+
let bestLength = 0;
|
|
29027
|
+
let runStart = -1;
|
|
29028
|
+
let runLength = 0;
|
|
29029
|
+
for (let i = 0; i < hextets.length; i++) if (hextets[i] === "0") {
|
|
29030
|
+
if (runStart === -1) runStart = i;
|
|
29031
|
+
runLength++;
|
|
29032
|
+
if (runLength > bestLength) {
|
|
29033
|
+
bestLength = runLength;
|
|
29034
|
+
bestStart = runStart;
|
|
29035
|
+
}
|
|
29036
|
+
} else {
|
|
29037
|
+
runStart = -1;
|
|
29038
|
+
runLength = 0;
|
|
29039
|
+
}
|
|
29040
|
+
if (bestLength < 2) return hextets.join(":");
|
|
29041
|
+
const head = hextets.slice(0, bestStart).join(":");
|
|
29042
|
+
const tail = hextets.slice(bestStart + bestLength).join(":");
|
|
29043
|
+
return head + "::" + tail;
|
|
29044
|
+
}
|
|
29045
|
+
function normalizeIPv6Address(input2) {
|
|
29046
|
+
const compression = input2.indexOf("::");
|
|
29047
|
+
if (compression !== -1 && input2.indexOf("::", compression + 1) !== -1) return void 0;
|
|
29048
|
+
const left = compression === -1 ? input2.split(":") : input2.slice(0, compression).split(":");
|
|
29049
|
+
const right = compression === -1 ? [] : input2.slice(compression + 2).split(":");
|
|
29050
|
+
if (compression !== -1) {
|
|
29051
|
+
if (left.length === 1 && left[0] === "") left.length = 0;
|
|
29052
|
+
if (right.length === 1 && right[0] === "") right.length = 0;
|
|
29053
|
+
}
|
|
29054
|
+
const parts = left.concat(right);
|
|
29055
|
+
let hextetCount = 0;
|
|
29056
|
+
for (let i = 0; i < parts.length; i++) {
|
|
29057
|
+
const part = parts[i];
|
|
29058
|
+
if (part === "") return void 0;
|
|
29059
|
+
if (part.indexOf(".") !== -1) {
|
|
29060
|
+
if (i !== parts.length - 1 || compression !== -1 && right.length === 0 || !isIPv4(part)) return void 0;
|
|
29061
|
+
hextetCount += 2;
|
|
29018
29062
|
continue;
|
|
29019
29063
|
}
|
|
29064
|
+
if (!isHextet(part)) return void 0;
|
|
29065
|
+
parts[i] = parseInt(part, 16).toString(16);
|
|
29066
|
+
hextetCount++;
|
|
29020
29067
|
}
|
|
29021
|
-
if (
|
|
29022
|
-
|
|
29023
|
-
|
|
29024
|
-
|
|
29025
|
-
return
|
|
29068
|
+
if (compression === -1) {
|
|
29069
|
+
if (hextetCount !== 8) return void 0;
|
|
29070
|
+
return compressIPv6ZeroRun(parts);
|
|
29071
|
+
}
|
|
29072
|
+
if (hextetCount >= 8) return void 0;
|
|
29073
|
+
const expanded = parts.slice(0, left.length);
|
|
29074
|
+
for (let i = hextetCount; i < 8; i++) expanded.push("0");
|
|
29075
|
+
for (let i = left.length; i < parts.length; i++) expanded.push(parts[i]);
|
|
29076
|
+
return compressIPv6ZeroRun(expanded);
|
|
29026
29077
|
}
|
|
29027
29078
|
function normalizeIPv6(host) {
|
|
29028
|
-
|
|
29079
|
+
const bracketed = host[0] === "[" && host[host.length - 1] === "]";
|
|
29080
|
+
if ((host[0] === "[" || host[host.length - 1] === "]") && !bracketed) return {
|
|
29029
29081
|
host,
|
|
29030
|
-
isIPV6: false
|
|
29082
|
+
isIPV6: false,
|
|
29083
|
+
error: true
|
|
29031
29084
|
};
|
|
29032
|
-
|
|
29033
|
-
if (
|
|
29034
|
-
|
|
29035
|
-
let escapedHost = ipv63.address;
|
|
29036
|
-
if (ipv63.zone) {
|
|
29037
|
-
newHost += "%" + ipv63.zone;
|
|
29038
|
-
escapedHost += "%25" + ipv63.zone;
|
|
29039
|
-
}
|
|
29085
|
+
let input2 = bracketed ? host.slice(1, -1) : host;
|
|
29086
|
+
if (bracketed && isIPvFuture(input2)) {
|
|
29087
|
+
input2 = input2.toLowerCase();
|
|
29040
29088
|
return {
|
|
29041
|
-
host:
|
|
29042
|
-
|
|
29043
|
-
|
|
29089
|
+
host: `[${input2}]`,
|
|
29090
|
+
escapedHost: input2,
|
|
29091
|
+
isIPV6: false,
|
|
29092
|
+
isIPVFuture: true
|
|
29044
29093
|
};
|
|
29045
|
-
}
|
|
29094
|
+
}
|
|
29095
|
+
if (findToken(input2, ":") < 2) return {
|
|
29046
29096
|
host,
|
|
29047
|
-
isIPV6: false
|
|
29097
|
+
isIPV6: false,
|
|
29098
|
+
error: bracketed
|
|
29099
|
+
};
|
|
29100
|
+
let zoneIdentifier = "";
|
|
29101
|
+
const zoneSeparator = input2.indexOf("%");
|
|
29102
|
+
if (zoneSeparator !== -1) {
|
|
29103
|
+
const separatorLength = input2.slice(zoneSeparator, zoneSeparator + 3).toLowerCase() === "%25" ? 3 : 1;
|
|
29104
|
+
zoneIdentifier = input2.slice(zoneSeparator + separatorLength);
|
|
29105
|
+
if (!isZoneIdentifier(zoneIdentifier)) return {
|
|
29106
|
+
host,
|
|
29107
|
+
isIPV6: false,
|
|
29108
|
+
error: true
|
|
29109
|
+
};
|
|
29110
|
+
input2 = input2.slice(0, zoneSeparator);
|
|
29111
|
+
}
|
|
29112
|
+
const address = normalizeIPv6Address(input2);
|
|
29113
|
+
if (address === void 0) return {
|
|
29114
|
+
host,
|
|
29115
|
+
isIPV6: false,
|
|
29116
|
+
error: true
|
|
29117
|
+
};
|
|
29118
|
+
return {
|
|
29119
|
+
host: address + (zoneIdentifier ? "%" + zoneIdentifier : ""),
|
|
29120
|
+
escapedHost: address + (zoneIdentifier ? "%25" + zoneIdentifier : ""),
|
|
29121
|
+
isIPV6: true
|
|
29048
29122
|
};
|
|
29049
29123
|
}
|
|
29050
29124
|
function findToken(str, token) {
|
|
@@ -29120,41 +29194,225 @@ var init_ajvProvider_CEoC_sr = __esm({
|
|
|
29120
29194
|
}
|
|
29121
29195
|
return output2.join("");
|
|
29122
29196
|
}
|
|
29123
|
-
|
|
29124
|
-
|
|
29125
|
-
|
|
29126
|
-
|
|
29127
|
-
|
|
29128
|
-
|
|
29129
|
-
|
|
29130
|
-
|
|
29131
|
-
|
|
29197
|
+
const HOST_DELIMS = {
|
|
29198
|
+
"@": "%40",
|
|
29199
|
+
"/": "%2F",
|
|
29200
|
+
"?": "%3F",
|
|
29201
|
+
"#": "%23",
|
|
29202
|
+
":": "%3A"
|
|
29203
|
+
};
|
|
29204
|
+
const HOST_DELIM_RE = /[@/?#:]/g;
|
|
29205
|
+
const HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
|
|
29206
|
+
function reescapeHostDelimiters(host, isIP2) {
|
|
29207
|
+
const re = isIP2 ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE;
|
|
29208
|
+
re.lastIndex = 0;
|
|
29209
|
+
return host.replace(re, (ch) => HOST_DELIMS[ch]);
|
|
29210
|
+
}
|
|
29211
|
+
function normalizePercentEncoding(input2, decodeUnreserved = false) {
|
|
29212
|
+
if (input2.indexOf("%") === -1) return input2;
|
|
29213
|
+
let output2 = "";
|
|
29214
|
+
for (let i = 0; i < input2.length; i++) {
|
|
29215
|
+
if (input2[i] === "%" && i + 2 < input2.length) {
|
|
29216
|
+
const hex3 = input2.slice(i + 1, i + 3);
|
|
29217
|
+
if (isHexPair(hex3)) {
|
|
29218
|
+
const normalizedHex = hex3.toUpperCase();
|
|
29219
|
+
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
29220
|
+
if (decodeUnreserved && isUnreserved(decoded)) output2 += decoded;
|
|
29221
|
+
else output2 += "%" + normalizedHex;
|
|
29222
|
+
i += 2;
|
|
29223
|
+
continue;
|
|
29224
|
+
}
|
|
29225
|
+
}
|
|
29226
|
+
output2 += input2[i];
|
|
29227
|
+
}
|
|
29228
|
+
return output2;
|
|
29229
|
+
}
|
|
29230
|
+
function normalizePathEncoding(input2) {
|
|
29231
|
+
let output2 = "";
|
|
29232
|
+
for (let i = 0; i < input2.length; i++) {
|
|
29233
|
+
const ch = input2[i];
|
|
29234
|
+
if (ch === "%" && i + 2 < input2.length) {
|
|
29235
|
+
const hex3 = input2.slice(i + 1, i + 3);
|
|
29236
|
+
if (isHexPair(hex3)) {
|
|
29237
|
+
const normalizedHex = hex3.toUpperCase();
|
|
29238
|
+
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
29239
|
+
if (decoded !== "." && isUnreserved(decoded)) output2 += decoded;
|
|
29240
|
+
else output2 += "%" + normalizedHex;
|
|
29241
|
+
i += 2;
|
|
29242
|
+
continue;
|
|
29243
|
+
}
|
|
29244
|
+
}
|
|
29245
|
+
if (isPathCharacter(ch)) output2 += ch;
|
|
29246
|
+
else {
|
|
29247
|
+
const code2 = input2.charCodeAt(i);
|
|
29248
|
+
if (code2 < 128) output2 += isEscapeSafe(code2) ? ch : BYTE_HEX[code2];
|
|
29249
|
+
else if (code2 < 55296 || code2 > 57343) output2 += percentEncodeNonAscii(code2);
|
|
29250
|
+
else if (code2 <= 56319 && i + 1 < input2.length) {
|
|
29251
|
+
const low = input2.charCodeAt(i + 1);
|
|
29252
|
+
if (low >= 56320 && low <= 57343) {
|
|
29253
|
+
output2 += percentEncodeNonAscii(65536 + (code2 - 55296 << 10) + (low - 56320));
|
|
29254
|
+
i++;
|
|
29255
|
+
} else output2 += percentEncodeNonAscii(65533);
|
|
29256
|
+
} else output2 += percentEncodeNonAscii(65533);
|
|
29257
|
+
}
|
|
29258
|
+
}
|
|
29259
|
+
return output2;
|
|
29260
|
+
}
|
|
29261
|
+
function serializePathEncoding(input2, pathNoScheme = false) {
|
|
29262
|
+
let output2 = "";
|
|
29263
|
+
let firstSegment = pathNoScheme && input2[0] !== "/";
|
|
29264
|
+
for (let i = 0; i < input2.length; i++) {
|
|
29265
|
+
const ch = input2[i];
|
|
29266
|
+
if (ch === "%" && i + 2 < input2.length) {
|
|
29267
|
+
const hex3 = input2.slice(i + 1, i + 3);
|
|
29268
|
+
if (isHexPair(hex3)) {
|
|
29269
|
+
output2 += "%" + hex3.toUpperCase();
|
|
29270
|
+
i += 2;
|
|
29271
|
+
continue;
|
|
29272
|
+
}
|
|
29273
|
+
}
|
|
29274
|
+
if (ch === "/") firstSegment = false;
|
|
29275
|
+
if (isPathCharacter(ch) && (ch !== ":" || !firstSegment)) output2 += ch;
|
|
29276
|
+
else {
|
|
29277
|
+
const code2 = input2.charCodeAt(i);
|
|
29278
|
+
if (code2 < 128) output2 += BYTE_HEX[code2];
|
|
29279
|
+
else if (code2 < 55296 || code2 > 57343) output2 += percentEncodeNonAscii(code2);
|
|
29280
|
+
else if (code2 <= 56319 && i + 1 < input2.length) {
|
|
29281
|
+
const low = input2.charCodeAt(i + 1);
|
|
29282
|
+
if (low >= 56320 && low <= 57343) {
|
|
29283
|
+
output2 += percentEncodeNonAscii(65536 + (code2 - 55296 << 10) + (low - 56320));
|
|
29284
|
+
i++;
|
|
29285
|
+
} else output2 += percentEncodeNonAscii(65533);
|
|
29286
|
+
} else output2 += percentEncodeNonAscii(65533);
|
|
29287
|
+
}
|
|
29288
|
+
}
|
|
29289
|
+
return output2;
|
|
29290
|
+
}
|
|
29291
|
+
function encodeComponent(input2, isAllowed) {
|
|
29292
|
+
let output2 = "";
|
|
29293
|
+
for (let i = 0; i < input2.length; i++) {
|
|
29294
|
+
const ch = input2[i];
|
|
29295
|
+
if (ch === "%" && i + 2 < input2.length) {
|
|
29296
|
+
const hex3 = input2.slice(i + 1, i + 3);
|
|
29297
|
+
if (isHexPair(hex3)) {
|
|
29298
|
+
output2 += "%" + hex3.toUpperCase();
|
|
29299
|
+
i += 2;
|
|
29300
|
+
continue;
|
|
29301
|
+
}
|
|
29302
|
+
}
|
|
29303
|
+
if (isAllowed(ch)) output2 += ch;
|
|
29304
|
+
else {
|
|
29305
|
+
const code2 = input2.charCodeAt(i);
|
|
29306
|
+
if (code2 < 128) output2 += BYTE_HEX[code2];
|
|
29307
|
+
else if (code2 < 55296 || code2 > 57343) output2 += percentEncodeNonAscii(code2);
|
|
29308
|
+
else if (code2 <= 56319 && i + 1 < input2.length) {
|
|
29309
|
+
const low = input2.charCodeAt(i + 1);
|
|
29310
|
+
if (low >= 56320 && low <= 57343) {
|
|
29311
|
+
output2 += percentEncodeNonAscii(65536 + (code2 - 55296 << 10) + (low - 56320));
|
|
29312
|
+
i++;
|
|
29313
|
+
} else output2 += percentEncodeNonAscii(65533);
|
|
29314
|
+
} else output2 += percentEncodeNonAscii(65533);
|
|
29315
|
+
}
|
|
29316
|
+
}
|
|
29317
|
+
return output2;
|
|
29318
|
+
}
|
|
29319
|
+
function encodeUserinfo(input2) {
|
|
29320
|
+
return encodeComponent(input2, isUserinfoCharacter);
|
|
29321
|
+
}
|
|
29322
|
+
function encodeQuery(input2) {
|
|
29323
|
+
return encodeComponent(input2, isQueryFragmentCharacter);
|
|
29324
|
+
}
|
|
29325
|
+
function encodeFragment(input2) {
|
|
29326
|
+
return encodeComponent(input2, isQueryFragmentCharacter);
|
|
29327
|
+
}
|
|
29328
|
+
function isEscapeSafe(cp) {
|
|
29329
|
+
return cp >= 48 && cp <= 57 || cp >= 65 && cp <= 90 || cp >= 97 && cp <= 122 || cp === 42 || cp === 43 || cp === 45 || cp === 46 || cp === 47 || cp === 64 || cp === 95;
|
|
29330
|
+
}
|
|
29331
|
+
function normalizeQueryFragmentEncoding(input2) {
|
|
29332
|
+
let output2 = "";
|
|
29333
|
+
for (let i = 0; i < input2.length; i++) {
|
|
29334
|
+
const ch = input2[i];
|
|
29335
|
+
if (ch === "%" && i + 2 < input2.length) {
|
|
29336
|
+
const hex3 = input2.slice(i + 1, i + 3);
|
|
29337
|
+
if (isHexPair(hex3)) {
|
|
29338
|
+
const normalizedHex = hex3.toUpperCase();
|
|
29339
|
+
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
29340
|
+
if (isUnreserved(decoded)) output2 += decoded;
|
|
29341
|
+
else output2 += "%" + normalizedHex;
|
|
29342
|
+
i += 2;
|
|
29343
|
+
continue;
|
|
29344
|
+
}
|
|
29345
|
+
}
|
|
29346
|
+
if (isQueryFragmentCharacter(ch)) output2 += ch;
|
|
29347
|
+
else {
|
|
29348
|
+
const code2 = input2.charCodeAt(i);
|
|
29349
|
+
if (code2 < 128) output2 += isEscapeSafe(code2) ? ch : BYTE_HEX[code2];
|
|
29350
|
+
else if (code2 < 55296 || code2 > 57343) output2 += percentEncodeNonAscii(code2);
|
|
29351
|
+
else if (code2 <= 56319 && i + 1 < input2.length) {
|
|
29352
|
+
const low = input2.charCodeAt(i + 1);
|
|
29353
|
+
if (low >= 56320 && low <= 57343) {
|
|
29354
|
+
output2 += percentEncodeNonAscii(65536 + (code2 - 55296 << 10) + (low - 56320));
|
|
29355
|
+
i++;
|
|
29356
|
+
} else output2 += percentEncodeNonAscii(65533);
|
|
29357
|
+
} else output2 += percentEncodeNonAscii(65533);
|
|
29358
|
+
}
|
|
29359
|
+
}
|
|
29360
|
+
return output2;
|
|
29361
|
+
}
|
|
29362
|
+
function escapePreservingEscapes(input2) {
|
|
29363
|
+
let output2 = "";
|
|
29364
|
+
for (let i = 0; i < input2.length; i++) {
|
|
29365
|
+
if (input2[i] === "%" && i + 2 < input2.length) {
|
|
29366
|
+
const hex3 = input2.slice(i + 1, i + 3);
|
|
29367
|
+
if (isHexPair(hex3)) {
|
|
29368
|
+
output2 += "%" + hex3.toUpperCase();
|
|
29369
|
+
i += 2;
|
|
29370
|
+
continue;
|
|
29371
|
+
}
|
|
29372
|
+
}
|
|
29373
|
+
output2 += escape(input2[i]);
|
|
29374
|
+
}
|
|
29375
|
+
return output2;
|
|
29132
29376
|
}
|
|
29133
29377
|
function recomposeAuthority(component) {
|
|
29134
29378
|
const uriTokens = [];
|
|
29135
29379
|
if (component.userinfo !== void 0) {
|
|
29136
|
-
uriTokens.push(component.userinfo);
|
|
29380
|
+
uriTokens.push(encodeUserinfo(component.userinfo));
|
|
29137
29381
|
uriTokens.push("@");
|
|
29138
29382
|
}
|
|
29139
29383
|
if (component.host !== void 0) {
|
|
29140
|
-
let host =
|
|
29384
|
+
let host = component.host;
|
|
29141
29385
|
if (!isIPv4(host)) {
|
|
29142
|
-
|
|
29143
|
-
if (ipV6res.isIPV6
|
|
29144
|
-
|
|
29386
|
+
let ipV6res = normalizeIPv6(host);
|
|
29387
|
+
if (ipV6res.isIPV6 !== true && ipV6res.isIPVFuture !== true) {
|
|
29388
|
+
host = normalizePercentEncoding(host, true);
|
|
29389
|
+
ipV6res = normalizeIPv6(host);
|
|
29390
|
+
}
|
|
29391
|
+
if (ipV6res.isIPV6 === true || ipV6res.isIPVFuture === true) host = `[${ipV6res.escapedHost}]`;
|
|
29392
|
+
else host = reescapeHostDelimiters(host, false);
|
|
29145
29393
|
}
|
|
29146
29394
|
uriTokens.push(host);
|
|
29147
29395
|
}
|
|
29148
29396
|
if (typeof component.port === "number" || typeof component.port === "string") {
|
|
29397
|
+
const port = String(component.port);
|
|
29398
|
+
if (!isPort(port)) throw new TypeError("URI port is malformed.");
|
|
29149
29399
|
uriTokens.push(":");
|
|
29150
|
-
uriTokens.push(
|
|
29400
|
+
uriTokens.push(port);
|
|
29151
29401
|
}
|
|
29152
29402
|
return uriTokens.length ? uriTokens.join("") : void 0;
|
|
29153
29403
|
}
|
|
29154
29404
|
module.exports = {
|
|
29155
29405
|
nonSimpleDomain,
|
|
29156
29406
|
recomposeAuthority,
|
|
29157
|
-
|
|
29407
|
+
reescapeHostDelimiters,
|
|
29408
|
+
normalizePercentEncoding,
|
|
29409
|
+
normalizePathEncoding,
|
|
29410
|
+
serializePathEncoding,
|
|
29411
|
+
normalizeQueryFragmentEncoding,
|
|
29412
|
+
encodeUserinfo,
|
|
29413
|
+
encodeQuery,
|
|
29414
|
+
encodeFragment,
|
|
29415
|
+
escapePreservingEscapes,
|
|
29158
29416
|
removeDotSegments,
|
|
29159
29417
|
isIPv4,
|
|
29160
29418
|
isUUID,
|
|
@@ -29164,7 +29422,7 @@ var init_ajvProvider_CEoC_sr = __esm({
|
|
|
29164
29422
|
}));
|
|
29165
29423
|
require_schemes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
29166
29424
|
const { isUUID } = require_utils();
|
|
29167
|
-
const URN_REG =
|
|
29425
|
+
const URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
|
|
29168
29426
|
const supportedSchemeNames = [
|
|
29169
29427
|
"http",
|
|
29170
29428
|
"https",
|
|
@@ -29206,9 +29464,10 @@ var init_ajvProvider_CEoC_sr = __esm({
|
|
|
29206
29464
|
wsComponent.secure = void 0;
|
|
29207
29465
|
}
|
|
29208
29466
|
if (wsComponent.resourceName) {
|
|
29209
|
-
const
|
|
29467
|
+
const queryIndex = wsComponent.resourceName.indexOf("?");
|
|
29468
|
+
const path = queryIndex === -1 ? wsComponent.resourceName : wsComponent.resourceName.slice(0, queryIndex);
|
|
29210
29469
|
wsComponent.path = path && path !== "/" ? path : void 0;
|
|
29211
|
-
wsComponent.query =
|
|
29470
|
+
wsComponent.query = queryIndex === -1 ? void 0 : wsComponent.resourceName.slice(queryIndex + 1);
|
|
29212
29471
|
wsComponent.resourceName = void 0;
|
|
29213
29472
|
}
|
|
29214
29473
|
wsComponent.fragment = void 0;
|
|
@@ -29220,7 +29479,7 @@ var init_ajvProvider_CEoC_sr = __esm({
|
|
|
29220
29479
|
return urnComponent;
|
|
29221
29480
|
}
|
|
29222
29481
|
const matches = urnComponent.path.match(URN_REG);
|
|
29223
|
-
if (matches) {
|
|
29482
|
+
if (matches && matches[0] === urnComponent.path) {
|
|
29224
29483
|
const scheme = options.scheme || urnComponent.scheme || "urn";
|
|
29225
29484
|
urnComponent.nid = matches[1].toLowerCase();
|
|
29226
29485
|
urnComponent.nss = matches[2];
|
|
@@ -29310,16 +29569,32 @@ var init_ajvProvider_CEoC_sr = __esm({
|
|
|
29310
29569
|
};
|
|
29311
29570
|
}));
|
|
29312
29571
|
require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
29313
|
-
const { normalizeIPv6, removeDotSegments, recomposeAuthority,
|
|
29572
|
+
const { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
29314
29573
|
const { SCHEMES, getSchemeHandler } = require_schemes();
|
|
29574
|
+
const VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u;
|
|
29575
|
+
const MALFORMED_SCHEME_ERROR = "URI scheme is malformed.";
|
|
29576
|
+
function decodeValidScheme(scheme) {
|
|
29577
|
+
const decodedScheme = unescape(String(scheme));
|
|
29578
|
+
if (!VALID_SCHEME.test(decodedScheme)) throw new TypeError(MALFORMED_SCHEME_ERROR);
|
|
29579
|
+
return decodedScheme;
|
|
29580
|
+
}
|
|
29315
29581
|
function normalize(uri, options) {
|
|
29316
|
-
if (typeof uri === "string") uri =
|
|
29582
|
+
if (typeof uri === "string") uri = normalizeString(uri, options);
|
|
29317
29583
|
else if (typeof uri === "object") uri = parse3(serialize(uri, options), options);
|
|
29318
29584
|
return uri;
|
|
29319
29585
|
}
|
|
29320
29586
|
function resolve5(baseURI, relativeURI, options) {
|
|
29321
29587
|
const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
|
|
29322
|
-
const
|
|
29588
|
+
const { parsed: baseParsed, malformedAuthorityOrPort: baseMalformed, malformedPercentEncoding: baseMalformedPercentEncoding, malformedSchemeSpecific: baseMalformedSchemeSpecific, malformedHost: baseMalformedHost, malformedScheme: baseMalformedScheme } = parseWithStatus(baseURI, schemelessOptions);
|
|
29589
|
+
const { parsed: relativeParsed, malformedAuthorityOrPort: relativeMalformed, malformedPercentEncoding: relativeMalformedPercentEncoding, malformedSchemeSpecific: relativeMalformedSchemeSpecific, malformedHost: relativeMalformedHost, malformedScheme: relativeMalformedScheme } = parseWithStatus(relativeURI, schemelessOptions);
|
|
29590
|
+
if (baseMalformed || relativeMalformed || baseMalformedPercentEncoding || relativeMalformedPercentEncoding || baseMalformedSchemeSpecific || relativeMalformedSchemeSpecific || baseMalformedHost || relativeMalformedHost || baseMalformedScheme || relativeMalformedScheme) throw new Error(baseParsed.error || relativeParsed.error || "URI is malformed.");
|
|
29591
|
+
const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true);
|
|
29592
|
+
const resolvedSchemeHandler = getSchemeHandler(options && options.scheme || resolved.scheme);
|
|
29593
|
+
const resolvedHost = resolved.host;
|
|
29594
|
+
const resolvedHostIsIP = resolvedHost !== void 0 && resolvedHost !== "" && (isIPv4(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6);
|
|
29595
|
+
canonicalizeHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP);
|
|
29596
|
+
const encodedASCIIHost = resolvedHost && resolvedHost.indexOf("%") !== -1 && !/\P{ASCII}/u.test(resolvedHost);
|
|
29597
|
+
if (resolved.error && !encodedASCIIHost) throw new Error(resolved.error);
|
|
29323
29598
|
schemelessOptions.skipEscape = true;
|
|
29324
29599
|
return serialize(resolved, schemelessOptions);
|
|
29325
29600
|
}
|
|
@@ -29369,27 +29644,9 @@ var init_ajvProvider_CEoC_sr = __esm({
|
|
|
29369
29644
|
return target;
|
|
29370
29645
|
}
|
|
29371
29646
|
function equal(uriA, uriB, options) {
|
|
29372
|
-
|
|
29373
|
-
|
|
29374
|
-
|
|
29375
|
-
...options,
|
|
29376
|
-
skipEscape: true
|
|
29377
|
-
});
|
|
29378
|
-
} else if (typeof uriA === "object") uriA = serialize(normalizeComponentEncoding(uriA, true), {
|
|
29379
|
-
...options,
|
|
29380
|
-
skipEscape: true
|
|
29381
|
-
});
|
|
29382
|
-
if (typeof uriB === "string") {
|
|
29383
|
-
uriB = unescape(uriB);
|
|
29384
|
-
uriB = serialize(normalizeComponentEncoding(parse3(uriB, options), true), {
|
|
29385
|
-
...options,
|
|
29386
|
-
skipEscape: true
|
|
29387
|
-
});
|
|
29388
|
-
} else if (typeof uriB === "object") uriB = serialize(normalizeComponentEncoding(uriB, true), {
|
|
29389
|
-
...options,
|
|
29390
|
-
skipEscape: true
|
|
29391
|
-
});
|
|
29392
|
-
return uriA.toLowerCase() === uriB.toLowerCase();
|
|
29647
|
+
const normalizedA = normalizeComparableURI(uriA, options);
|
|
29648
|
+
const normalizedB = normalizeComparableURI(uriB, options);
|
|
29649
|
+
return normalizedA !== void 0 && normalizedB !== void 0 && normalizedA === normalizedB;
|
|
29393
29650
|
}
|
|
29394
29651
|
function serialize(cmpts, opts) {
|
|
29395
29652
|
const component = {
|
|
@@ -29410,13 +29667,17 @@ var init_ajvProvider_CEoC_sr = __esm({
|
|
|
29410
29667
|
};
|
|
29411
29668
|
const options = Object.assign({}, opts);
|
|
29412
29669
|
const uriTokens = [];
|
|
29670
|
+
if (component.scheme) component.scheme = decodeValidScheme(component.scheme);
|
|
29413
29671
|
const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
|
|
29414
29672
|
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
|
|
29415
|
-
|
|
29416
|
-
|
|
29417
|
-
|
|
29418
|
-
|
|
29419
|
-
if (options.reference !== "suffix" && component.scheme)
|
|
29673
|
+
const hasAuthority = component.userinfo !== void 0 || component.host !== void 0 || component.port !== void 0;
|
|
29674
|
+
const pathNoScheme = !options.skipEscape && component.scheme === void 0 && !hasAuthority;
|
|
29675
|
+
if (component.path !== void 0) if (!options.skipEscape) component.path = serializePathEncoding(component.path, pathNoScheme);
|
|
29676
|
+
else component.path = normalizePercentEncoding(component.path);
|
|
29677
|
+
if (options.reference !== "suffix" && component.scheme) {
|
|
29678
|
+
component.scheme = decodeValidScheme(component.scheme);
|
|
29679
|
+
uriTokens.push(component.scheme, ":");
|
|
29680
|
+
}
|
|
29420
29681
|
const authority = recomposeAuthority(component);
|
|
29421
29682
|
if (authority !== void 0) {
|
|
29422
29683
|
if (options.reference !== "suffix") uriTokens.push("//");
|
|
@@ -29426,15 +29687,47 @@ var init_ajvProvider_CEoC_sr = __esm({
|
|
|
29426
29687
|
if (component.path !== void 0) {
|
|
29427
29688
|
let s = component.path;
|
|
29428
29689
|
if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) s = removeDotSegments(s);
|
|
29690
|
+
if (pathNoScheme) s = serializePathEncoding(s, true);
|
|
29429
29691
|
if (authority === void 0 && s[0] === "/" && s[1] === "/") s = "/%2F" + s.slice(2);
|
|
29430
29692
|
uriTokens.push(s);
|
|
29431
29693
|
}
|
|
29432
|
-
if (component.query !== void 0) uriTokens.push("?", component.query);
|
|
29433
|
-
if (component.fragment !== void 0) uriTokens.push("#", component.fragment);
|
|
29694
|
+
if (component.query !== void 0) uriTokens.push("?", encodeQuery(component.query));
|
|
29695
|
+
if (component.fragment !== void 0) uriTokens.push("#", encodeFragment(component.fragment));
|
|
29434
29696
|
return uriTokens.join("");
|
|
29435
29697
|
}
|
|
29436
29698
|
const URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
29437
|
-
|
|
29699
|
+
const AUTHORITY_PREFIX = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/;
|
|
29700
|
+
const AUTHORITY_INTRODUCER_REGION = /^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;
|
|
29701
|
+
function getParseError(parsed, matches) {
|
|
29702
|
+
if (matches[2] !== void 0 && parsed.path && parsed.path[0] !== "/") return 'URI path must start with "/" when authority is present.';
|
|
29703
|
+
if (typeof parsed.port === "number" && (parsed.port < 0 || parsed.port > 65535)) return "URI port is malformed.";
|
|
29704
|
+
}
|
|
29705
|
+
function hasMalformedPercentEncoding(component) {
|
|
29706
|
+
if (component === void 0) return false;
|
|
29707
|
+
let percent = component.indexOf("%");
|
|
29708
|
+
while (percent !== -1) {
|
|
29709
|
+
if (percent + 2 >= component.length || !/^[\da-f]{2}$/iu.test(component.slice(percent + 1, percent + 3))) return true;
|
|
29710
|
+
percent = component.indexOf("%", percent + 3);
|
|
29711
|
+
}
|
|
29712
|
+
return false;
|
|
29713
|
+
}
|
|
29714
|
+
function isIPLiteral(host) {
|
|
29715
|
+
return host[0] === "[" && host[host.length - 1] === "]";
|
|
29716
|
+
}
|
|
29717
|
+
function hasMalformedComponentPercentEncoding(matches) {
|
|
29718
|
+
const host = matches[4];
|
|
29719
|
+
return hasMalformedPercentEncoding(matches[3]) || host !== void 0 && !isIPLiteral(host) && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
|
|
29720
|
+
}
|
|
29721
|
+
function canonicalizeHost(parsed, options, schemeHandler, isIP2) {
|
|
29722
|
+
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP2 === false && nonSimpleDomain(parsed.host)) try {
|
|
29723
|
+
parsed.host = new URL("http://" + parsed.host).hostname;
|
|
29724
|
+
} catch (e) {
|
|
29725
|
+
parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
|
|
29726
|
+
return true;
|
|
29727
|
+
}
|
|
29728
|
+
return false;
|
|
29729
|
+
}
|
|
29730
|
+
function parseWithStatus(uri, opts) {
|
|
29438
29731
|
const options = Object.assign({}, opts);
|
|
29439
29732
|
const parsed = {
|
|
29440
29733
|
scheme: void 0,
|
|
@@ -29445,9 +29738,34 @@ var init_ajvProvider_CEoC_sr = __esm({
|
|
|
29445
29738
|
query: void 0,
|
|
29446
29739
|
fragment: void 0
|
|
29447
29740
|
};
|
|
29741
|
+
let malformedAuthorityOrPort = false;
|
|
29742
|
+
let malformedPercentEncoding = false;
|
|
29743
|
+
let malformedSchemeSpecific = false;
|
|
29744
|
+
let malformedHost = false;
|
|
29745
|
+
let malformedIPLiteral = false;
|
|
29746
|
+
let malformedScheme = false;
|
|
29448
29747
|
let isIP2 = false;
|
|
29449
29748
|
if (options.reference === "suffix") if (options.scheme) uri = options.scheme + ":" + uri;
|
|
29450
29749
|
else uri = "//" + uri;
|
|
29750
|
+
const authorityMatch = uri.match(AUTHORITY_PREFIX);
|
|
29751
|
+
if (authorityMatch !== null && authorityMatch[1].indexOf("\\") !== -1) {
|
|
29752
|
+
parsed.error = "URI authority must not contain a literal backslash.";
|
|
29753
|
+
malformedAuthorityOrPort = true;
|
|
29754
|
+
}
|
|
29755
|
+
const introducerMatch = uri.match(AUTHORITY_INTRODUCER_REGION);
|
|
29756
|
+
if (introducerMatch !== null) {
|
|
29757
|
+
const region = introducerMatch[1];
|
|
29758
|
+
const normalizedRegion = region.replace(/[\t\n\r]/g, "");
|
|
29759
|
+
if (normalizedRegion.length >= 2) {
|
|
29760
|
+
if (normalizedRegion.slice(0, 2) !== "//") {
|
|
29761
|
+
parsed.error = parsed.error || "URI authority must not contain a literal backslash.";
|
|
29762
|
+
malformedAuthorityOrPort = true;
|
|
29763
|
+
} else if (region.length !== normalizedRegion.length) {
|
|
29764
|
+
parsed.error = parsed.error || "URI authority introducer must not contain whitespace.";
|
|
29765
|
+
malformedAuthorityOrPort = true;
|
|
29766
|
+
}
|
|
29767
|
+
}
|
|
29768
|
+
}
|
|
29451
29769
|
const matches = uri.match(URI_PARSE);
|
|
29452
29770
|
if (matches) {
|
|
29453
29771
|
parsed.scheme = matches[1];
|
|
@@ -29457,11 +29775,33 @@ var init_ajvProvider_CEoC_sr = __esm({
|
|
|
29457
29775
|
parsed.path = matches[6] || "";
|
|
29458
29776
|
parsed.query = matches[7];
|
|
29459
29777
|
parsed.fragment = matches[8];
|
|
29778
|
+
if (parsed.scheme !== void 0) {
|
|
29779
|
+
const decodedScheme = unescape(parsed.scheme);
|
|
29780
|
+
if (VALID_SCHEME.test(decodedScheme)) parsed.scheme = decodedScheme.toLowerCase();
|
|
29781
|
+
else {
|
|
29782
|
+
parsed.error = parsed.error || MALFORMED_SCHEME_ERROR;
|
|
29783
|
+
malformedScheme = true;
|
|
29784
|
+
}
|
|
29785
|
+
}
|
|
29786
|
+
malformedPercentEncoding = hasMalformedComponentPercentEncoding(matches);
|
|
29787
|
+
if (malformedPercentEncoding) parsed.error = parsed.error || "URI contains malformed percent-encoding.";
|
|
29460
29788
|
if (isNaN(parsed.port)) parsed.port = matches[5];
|
|
29789
|
+
const parseError = getParseError(parsed, matches);
|
|
29790
|
+
if (parseError !== void 0) {
|
|
29791
|
+
parsed.error = parsed.error || parseError;
|
|
29792
|
+
malformedAuthorityOrPort = true;
|
|
29793
|
+
}
|
|
29461
29794
|
if (parsed.host) if (isIPv4(parsed.host) === false) {
|
|
29795
|
+
const bracketedIPLiteral = isIPLiteral(parsed.host);
|
|
29796
|
+
const hasIPLiteralBracket = parsed.host.indexOf("[") !== -1 || parsed.host.indexOf("]") !== -1;
|
|
29462
29797
|
const ipv6result = normalizeIPv6(parsed.host);
|
|
29463
|
-
|
|
29464
|
-
|
|
29798
|
+
isIP2 = ipv6result.isIPV6 || ipv6result.isIPVFuture === true;
|
|
29799
|
+
malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
|
|
29800
|
+
parsed.host = isIP2 ? ipv6result.host : ipv6result.host.toLowerCase();
|
|
29801
|
+
if (malformedIPLiteral) {
|
|
29802
|
+
parsed.error = parsed.error || "URI host is malformed.";
|
|
29803
|
+
malformedAuthorityOrPort = true;
|
|
29804
|
+
}
|
|
29465
29805
|
} else isIP2 = true;
|
|
29466
29806
|
if (parsed.scheme === void 0 && parsed.userinfo === void 0 && parsed.host === void 0 && parsed.port === void 0 && parsed.query === void 0 && !parsed.path) parsed.reference = "same-document";
|
|
29467
29807
|
else if (parsed.scheme === void 0) parsed.reference = "relative";
|
|
@@ -29469,24 +29809,58 @@ var init_ajvProvider_CEoC_sr = __esm({
|
|
|
29469
29809
|
else parsed.reference = "uri";
|
|
29470
29810
|
if (options.reference && options.reference !== "suffix" && options.reference !== parsed.reference) parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
|
|
29471
29811
|
const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
|
|
29472
|
-
if (!
|
|
29473
|
-
|
|
29474
|
-
|
|
29475
|
-
|
|
29476
|
-
|
|
29477
|
-
}
|
|
29812
|
+
if (!malformedIPLiteral) malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP2);
|
|
29813
|
+
if (uri.indexOf("%") !== -1 && parsed.host !== void 0 && !malformedIPLiteral) {
|
|
29814
|
+
let host = isIP2 ? parsed.host : normalizePercentEncoding(parsed.host, true);
|
|
29815
|
+
if (!isIP2) host = normalizePercentEncoding(host.toLowerCase());
|
|
29816
|
+
parsed.host = reescapeHostDelimiters(host, isIP2);
|
|
29478
29817
|
}
|
|
29479
29818
|
if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
|
|
29480
|
-
if (
|
|
29481
|
-
|
|
29482
|
-
|
|
29483
|
-
|
|
29484
|
-
|
|
29485
|
-
|
|
29819
|
+
if (parsed.path) parsed.path = normalizePathEncoding(parsed.path);
|
|
29820
|
+
if (parsed.query) parsed.query = normalizeQueryFragmentEncoding(parsed.query);
|
|
29821
|
+
if (parsed.fragment) parsed.fragment = normalizeQueryFragmentEncoding(parsed.fragment);
|
|
29822
|
+
}
|
|
29823
|
+
if (schemeHandler && schemeHandler.parse) {
|
|
29824
|
+
schemeHandler.parse(parsed, options);
|
|
29825
|
+
if (schemeHandler === SCHEMES.urn && parsed.nid === void 0) malformedSchemeSpecific = true;
|
|
29486
29826
|
}
|
|
29487
|
-
if (schemeHandler && schemeHandler.parse) schemeHandler.parse(parsed, options);
|
|
29488
29827
|
} else parsed.error = parsed.error || "URI can not be parsed.";
|
|
29489
|
-
return
|
|
29828
|
+
return {
|
|
29829
|
+
parsed,
|
|
29830
|
+
malformedAuthorityOrPort,
|
|
29831
|
+
malformedPercentEncoding,
|
|
29832
|
+
malformedSchemeSpecific,
|
|
29833
|
+
malformedHost,
|
|
29834
|
+
malformedScheme
|
|
29835
|
+
};
|
|
29836
|
+
}
|
|
29837
|
+
function parse3(uri, opts) {
|
|
29838
|
+
return parseWithStatus(uri, opts).parsed;
|
|
29839
|
+
}
|
|
29840
|
+
function normalizeString(uri, opts) {
|
|
29841
|
+
return normalizeStringWithStatus(uri, opts).normalized;
|
|
29842
|
+
}
|
|
29843
|
+
function normalizeStringWithStatus(uri, opts) {
|
|
29844
|
+
const { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = parseWithStatus(uri, opts);
|
|
29845
|
+
return {
|
|
29846
|
+
normalized: malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? uri : serialize(parsed, opts),
|
|
29847
|
+
malformedAuthorityOrPort,
|
|
29848
|
+
malformedPercentEncoding,
|
|
29849
|
+
malformedSchemeSpecific,
|
|
29850
|
+
malformedHost,
|
|
29851
|
+
malformedScheme
|
|
29852
|
+
};
|
|
29853
|
+
}
|
|
29854
|
+
function normalizeComparableURI(uri, opts) {
|
|
29855
|
+
if (typeof uri !== "string" && typeof uri !== "object") return;
|
|
29856
|
+
let value;
|
|
29857
|
+
try {
|
|
29858
|
+
value = typeof uri === "string" ? uri : serialize(uri, opts);
|
|
29859
|
+
} catch {
|
|
29860
|
+
return;
|
|
29861
|
+
}
|
|
29862
|
+
const { normalized, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = normalizeStringWithStatus(value, opts);
|
|
29863
|
+
return malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? void 0 : normalized;
|
|
29490
29864
|
}
|
|
29491
29865
|
const fastUri = {
|
|
29492
29866
|
SCHEMES,
|
|
@@ -33274,68 +33648,25 @@ var init_ajvProvider_CEoC_sr = __esm({
|
|
|
33274
33648
|
import process2 from "node:process";
|
|
33275
33649
|
var init_shimsNode = __esm({
|
|
33276
33650
|
"node_modules/@modelcontextprotocol/server/dist/shimsNode.mjs"() {
|
|
33277
|
-
|
|
33651
|
+
init_ajvProvider_DyjnscPj();
|
|
33278
33652
|
}
|
|
33279
33653
|
});
|
|
33280
33654
|
|
|
33281
|
-
// node_modules/@modelcontextprotocol/server/dist/mcp-
|
|
33655
|
+
// node_modules/@modelcontextprotocol/server/dist/mcp-oHn3ureC.mjs
|
|
33282
33656
|
function isCompletable(schema) {
|
|
33283
33657
|
return !!schema && typeof schema === "object" && COMPLETABLE_SYMBOL in schema;
|
|
33284
33658
|
}
|
|
33285
33659
|
function getCompleter(schema) {
|
|
33286
33660
|
return schema[COMPLETABLE_SYMBOL]?.complete;
|
|
33287
33661
|
}
|
|
33288
|
-
function
|
|
33289
|
-
|
|
33290
|
-
|
|
33291
|
-
|
|
33292
|
-
|
|
33293
|
-
return filter.promptsListChanged === true;
|
|
33294
|
-
case "resources_list_changed":
|
|
33295
|
-
return filter.resourcesListChanged === true;
|
|
33296
|
-
case "resource_updated":
|
|
33297
|
-
return filter.resourceSubscriptions !== void 0 && filter.resourceSubscriptions.includes(event.uri);
|
|
33298
|
-
}
|
|
33299
|
-
}
|
|
33300
|
-
function honoredSubset(requested, capabilities) {
|
|
33301
|
-
const honored = {};
|
|
33302
|
-
const allow = (bit) => capabilities === void 0 || bit === true;
|
|
33303
|
-
if (requested.toolsListChanged === true && allow(capabilities?.tools?.listChanged)) honored.toolsListChanged = true;
|
|
33304
|
-
if (requested.promptsListChanged === true && allow(capabilities?.prompts?.listChanged)) honored.promptsListChanged = true;
|
|
33305
|
-
if (requested.resourcesListChanged === true && allow(capabilities?.resources?.listChanged)) honored.resourcesListChanged = true;
|
|
33306
|
-
if (requested.resourceSubscriptions !== void 0 && requested.resourceSubscriptions.length > 0 && allow(capabilities?.resources?.subscribe)) honored.resourceSubscriptions = [...requested.resourceSubscriptions];
|
|
33307
|
-
return honored;
|
|
33662
|
+
function armSseKeepAlive(intervalMs, onTick) {
|
|
33663
|
+
if (!Number.isFinite(intervalMs) || intervalMs < 1) return;
|
|
33664
|
+
const timer = setInterval(onTick, Math.min(intervalMs, MAX_TIMER_DELAY_MS));
|
|
33665
|
+
timer.unref?.();
|
|
33666
|
+
return timer;
|
|
33308
33667
|
}
|
|
33309
|
-
function
|
|
33310
|
-
return
|
|
33311
|
-
method: notification.method,
|
|
33312
|
-
params: {
|
|
33313
|
-
...notification.params,
|
|
33314
|
-
_meta: {
|
|
33315
|
-
...notification.params?._meta,
|
|
33316
|
-
[SUBSCRIPTION_ID_META_KEY]: subscriptionId
|
|
33317
|
-
}
|
|
33318
|
-
}
|
|
33319
|
-
};
|
|
33320
|
-
}
|
|
33321
|
-
function parseListenFilter(message) {
|
|
33322
|
-
const outcome = codecForVersion(MODERN_WIRE_REVISION).validateRequest("subscriptions/listen", message);
|
|
33323
|
-
return outcome.ok ? outcome.value.params?.notifications : void 0;
|
|
33324
|
-
}
|
|
33325
|
-
function notificationToServerEvent(method, uri) {
|
|
33326
|
-
switch (method) {
|
|
33327
|
-
case "notifications/tools/list_changed":
|
|
33328
|
-
return { kind: "tools_list_changed" };
|
|
33329
|
-
case "notifications/prompts/list_changed":
|
|
33330
|
-
return { kind: "prompts_list_changed" };
|
|
33331
|
-
case "notifications/resources/list_changed":
|
|
33332
|
-
return { kind: "resources_list_changed" };
|
|
33333
|
-
default:
|
|
33334
|
-
return {
|
|
33335
|
-
kind: "resource_updated",
|
|
33336
|
-
uri: uri ?? ""
|
|
33337
|
-
};
|
|
33338
|
-
}
|
|
33668
|
+
function perRequestClassificationOf(transport) {
|
|
33669
|
+
return transport instanceof PerRequestHTTPServerTransport ? readClassification(transport) : void 0;
|
|
33339
33670
|
}
|
|
33340
33671
|
function supportsScopeChallengeResolver(transport) {
|
|
33341
33672
|
return typeof transport === "object" && transport !== null && "setScopeChallengeResolver" in transport && typeof transport.setScopeChallengeResolver === "function";
|
|
@@ -33467,143 +33798,230 @@ function unwrapOptionalSchema(schema) {
|
|
|
33467
33798
|
if (!isOptionalSchema(schema)) return schema;
|
|
33468
33799
|
return schema.def?.innerType ?? schema;
|
|
33469
33800
|
}
|
|
33470
|
-
var COMPLETABLE_SYMBOL,
|
|
33471
|
-
var
|
|
33472
|
-
"node_modules/@modelcontextprotocol/server/dist/mcp-
|
|
33473
|
-
|
|
33801
|
+
var COMPLETABLE_SYMBOL, DEFAULT_SSE_KEEP_ALIVE_MS, MAX_TIMER_DELAY_MS, readClassification, PerRequestHTTPServerTransport, DEFAULT_LEGACY_SHIM_MAX_ROUNDS, DEFAULT_LEGACY_SHIM_ROUND_TIMEOUT_MS, LegacyInputRequiredShim, INPUT_REQUIRED_CAPABLE_METHODS, writeClientIdentity, installDiscoverHandler, readServerIdentity, Server, McpServer, EMPTY_OBJECT_JSON_SCHEMA, EMPTY_COMPLETION_RESULT;
|
|
33802
|
+
var init_mcp_oHn3ureC = __esm({
|
|
33803
|
+
"node_modules/@modelcontextprotocol/server/dist/mcp-oHn3ureC.mjs"() {
|
|
33804
|
+
init_src_DdvbAHrR();
|
|
33474
33805
|
init_shimsNode();
|
|
33475
33806
|
COMPLETABLE_SYMBOL = /* @__PURE__ */ Symbol.for("mcp.completable");
|
|
33807
|
+
DEFAULT_SSE_KEEP_ALIVE_MS = 15e3;
|
|
33476
33808
|
MAX_TIMER_DELAY_MS = 2 ** 31 - 1;
|
|
33477
|
-
|
|
33478
|
-
|
|
33479
|
-
|
|
33480
|
-
"notifications/prompts/list_changed",
|
|
33481
|
-
"notifications/resources/list_changed",
|
|
33482
|
-
"notifications/resources/updated"
|
|
33483
|
-
]);
|
|
33484
|
-
StdioListenRouter = class {
|
|
33485
|
-
/** Active subscriptions, keyed by the listen request's JSON-RPC id verbatim. */
|
|
33486
|
-
_subs = /* @__PURE__ */ new Map();
|
|
33487
|
-
/**
|
|
33488
|
-
* The serving instance's declared capabilities. Filled in by the entry
|
|
33489
|
-
* once the modern instance is constructed (the router is created before
|
|
33490
|
-
* the instance exists), so the acknowledged filter is narrowed against
|
|
33491
|
-
* what the server can actually deliver.
|
|
33492
|
-
*/
|
|
33493
|
-
_serverCapabilities;
|
|
33494
|
-
/**
|
|
33495
|
-
* The serving instance's identity, stamped onto the graceful-close
|
|
33496
|
-
* results' `_meta` (the spec's `SubscriptionsListenResultMetaObject` extends
|
|
33497
|
-
* `ResultMetaObject`). Handed over together with the capabilities.
|
|
33498
|
-
*/
|
|
33499
|
-
_serverInfo;
|
|
33500
|
-
constructor(_maxSubscriptions = DEFAULT_MAX_SUBSCRIPTIONS, serverCapabilities, serverInfo) {
|
|
33501
|
-
this._maxSubscriptions = _maxSubscriptions;
|
|
33502
|
-
this._serverCapabilities = serverCapabilities;
|
|
33503
|
-
this._serverInfo = serverInfo;
|
|
33809
|
+
PerRequestHTTPServerTransport = class {
|
|
33810
|
+
static {
|
|
33811
|
+
readClassification = (transport) => transport._classification;
|
|
33504
33812
|
}
|
|
33813
|
+
onclose;
|
|
33814
|
+
onerror;
|
|
33815
|
+
onmessage;
|
|
33816
|
+
_classification;
|
|
33817
|
+
_responseMode;
|
|
33818
|
+
_started = false;
|
|
33819
|
+
_used = false;
|
|
33820
|
+
_closed = false;
|
|
33821
|
+
_terminalDelivered = false;
|
|
33505
33822
|
/**
|
|
33506
|
-
*
|
|
33507
|
-
*
|
|
33508
|
-
*
|
|
33509
|
-
*
|
|
33823
|
+
* `true` only while the inbound message is being delivered synchronously
|
|
33824
|
+
* to the connected protocol layer. The pre-handler gates (the era
|
|
33825
|
+
* registry gate, the edge→instance handoff check, the missing-handler
|
|
33826
|
+
* rejection) answer inside this window; request handlers always run
|
|
33827
|
+
* after it (the protocol layer defers them to a microtask). An error
|
|
33828
|
+
* sent inside the window is therefore ladder-originated, and an error
|
|
33829
|
+
* sent after it is handler-produced.
|
|
33510
33830
|
*/
|
|
33511
|
-
|
|
33512
|
-
|
|
33513
|
-
|
|
33831
|
+
_dispatchWindowOpen = false;
|
|
33832
|
+
_requestId;
|
|
33833
|
+
_deferredResponse;
|
|
33834
|
+
_sse;
|
|
33835
|
+
_abortCleanup;
|
|
33836
|
+
_keepAliveMs;
|
|
33837
|
+
constructor(options) {
|
|
33838
|
+
this._classification = options.classification;
|
|
33839
|
+
this._responseMode = options.responseMode ?? "auto";
|
|
33840
|
+
this._keepAliveMs = options.keepAliveMs ?? DEFAULT_SSE_KEEP_ALIVE_MS;
|
|
33514
33841
|
}
|
|
33515
|
-
|
|
33516
|
-
|
|
33517
|
-
|
|
33842
|
+
async start() {
|
|
33843
|
+
if (this._started) throw new Error("PerRequestHTTPServerTransport is already started");
|
|
33844
|
+
this._started = true;
|
|
33518
33845
|
}
|
|
33519
33846
|
/**
|
|
33520
|
-
*
|
|
33521
|
-
*
|
|
33522
|
-
* capacity / params rejection, the in-band JSON-RPC error response).
|
|
33847
|
+
* Serves the single exchange: delivers the classified message to the
|
|
33848
|
+
* connected server instance and resolves with the HTTP response.
|
|
33523
33849
|
*
|
|
33524
|
-
*
|
|
33525
|
-
*
|
|
33526
|
-
*
|
|
33527
|
-
*
|
|
33528
|
-
*
|
|
33850
|
+
* Throws when called a second time (the transport is strictly
|
|
33851
|
+
* single-use), or before a server has been connected to the transport.
|
|
33852
|
+
* The returned promise rejects with a connection-closed error when the
|
|
33853
|
+
* transport is closed before a response was produced (for example because
|
|
33854
|
+
* the client disconnected).
|
|
33529
33855
|
*/
|
|
33530
|
-
|
|
33531
|
-
if (this.
|
|
33532
|
-
if (this.
|
|
33533
|
-
|
|
33534
|
-
|
|
33535
|
-
|
|
33536
|
-
|
|
33537
|
-
|
|
33538
|
-
|
|
33856
|
+
async handleMessage(message, extra) {
|
|
33857
|
+
if (this._used) throw new Error("PerRequestHTTPServerTransport serves exactly one exchange; construct a new transport per request");
|
|
33858
|
+
if (!this._started || this.onmessage === void 0) throw new Error("PerRequestHTTPServerTransport is not connected: connect a server to this transport before handling a message");
|
|
33859
|
+
if (this._closed) throw new Error("PerRequestHTTPServerTransport is closed");
|
|
33860
|
+
this._used = true;
|
|
33861
|
+
const signal = extra?.request?.signal;
|
|
33862
|
+
if (signal?.aborted) {
|
|
33863
|
+
await this.close();
|
|
33864
|
+
throw new SdkError(SdkErrorCode.ConnectionClosed, "The request was aborted before it could be handled");
|
|
33865
|
+
}
|
|
33866
|
+
const messageExtra = {
|
|
33867
|
+
classification: this._classification,
|
|
33868
|
+
...extra?.request !== void 0 && { request: extra.request },
|
|
33869
|
+
...extra?.authInfo !== void 0 && { authInfo: extra.authInfo }
|
|
33539
33870
|
};
|
|
33540
|
-
|
|
33541
|
-
|
|
33542
|
-
|
|
33543
|
-
|
|
33544
|
-
|
|
33545
|
-
|
|
33546
|
-
|
|
33871
|
+
if (isJSONRPCRequest(message)) {
|
|
33872
|
+
this._requestId = message.id;
|
|
33873
|
+
let resolve5;
|
|
33874
|
+
let reject;
|
|
33875
|
+
const promise2 = new Promise((promiseResolve, promiseReject) => {
|
|
33876
|
+
resolve5 = promiseResolve;
|
|
33877
|
+
reject = promiseReject;
|
|
33878
|
+
});
|
|
33879
|
+
this._deferredResponse = {
|
|
33880
|
+
promise: promise2,
|
|
33881
|
+
resolve: resolve5,
|
|
33882
|
+
reject,
|
|
33883
|
+
settled: false
|
|
33884
|
+
};
|
|
33885
|
+
if (signal !== void 0) {
|
|
33886
|
+
const onAbort = () => void this.close();
|
|
33887
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
33888
|
+
this._abortCleanup = () => signal.removeEventListener("abort", onAbort);
|
|
33547
33889
|
}
|
|
33548
|
-
|
|
33549
|
-
|
|
33550
|
-
|
|
33551
|
-
|
|
33552
|
-
|
|
33553
|
-
|
|
33554
|
-
|
|
33890
|
+
this._dispatchWindowOpen = true;
|
|
33891
|
+
try {
|
|
33892
|
+
this.onmessage(message, messageExtra);
|
|
33893
|
+
} finally {
|
|
33894
|
+
this._dispatchWindowOpen = false;
|
|
33895
|
+
}
|
|
33896
|
+
if (this._responseMode === "sse" && !this._closed && !this._deferredResponse.settled) this.upgradeToSse();
|
|
33897
|
+
return promise2;
|
|
33898
|
+
}
|
|
33899
|
+
this.onmessage(message, messageExtra);
|
|
33900
|
+
return new Response(null, { status: 202 });
|
|
33555
33901
|
}
|
|
33556
|
-
|
|
33557
|
-
|
|
33558
|
-
|
|
33559
|
-
|
|
33560
|
-
|
|
33561
|
-
|
|
33562
|
-
|
|
33902
|
+
async send(message, options) {
|
|
33903
|
+
if (this._closed) return;
|
|
33904
|
+
const isResponse = isJSONRPCResultResponse(message) || isJSONRPCErrorResponse(message);
|
|
33905
|
+
const relatedId = isResponse ? message.id : options?.relatedRequestId;
|
|
33906
|
+
if (this._requestId === void 0 || relatedId === void 0 || relatedId !== this._requestId) {
|
|
33907
|
+
if (isResponse) this.onerror?.(/* @__PURE__ */ new Error(`Received a response for an unknown request id: ${String(message.id)}`));
|
|
33908
|
+
return;
|
|
33909
|
+
}
|
|
33910
|
+
if (isResponse) {
|
|
33911
|
+
if (this._terminalDelivered) return;
|
|
33912
|
+
this._terminalDelivered = true;
|
|
33913
|
+
const errorCode = isJSONRPCErrorResponse(message) ? message.error.code : void 0;
|
|
33914
|
+
const ladderStatus = errorCode !== void 0 && (this._dispatchWindowOpen || errorCode === ProtocolErrorCode.MissingRequiredClientCapability) ? LADDER_ERROR_HTTP_STATUS[errorCode] : void 0;
|
|
33915
|
+
if (ladderStatus !== void 0 && this._sse === void 0) {
|
|
33916
|
+
this.settleResponse(Response.json(message, {
|
|
33917
|
+
status: ladderStatus,
|
|
33918
|
+
headers: { "Content-Type": "application/json" }
|
|
33919
|
+
}));
|
|
33920
|
+
queueMicrotask(() => void this.close());
|
|
33921
|
+
return;
|
|
33922
|
+
}
|
|
33923
|
+
if (this._sse !== void 0 || this._responseMode === "sse") {
|
|
33924
|
+
if (this._sse === void 0) this.upgradeToSse();
|
|
33925
|
+
this.writeMessageFrame(message);
|
|
33926
|
+
this.finalizeStream();
|
|
33927
|
+
return;
|
|
33928
|
+
}
|
|
33929
|
+
this.settleResponse(Response.json(message, {
|
|
33930
|
+
status: 200,
|
|
33931
|
+
headers: { "Content-Type": "application/json" }
|
|
33932
|
+
}));
|
|
33933
|
+
queueMicrotask(() => void this.close());
|
|
33934
|
+
return;
|
|
33935
|
+
}
|
|
33936
|
+
if (this._responseMode === "json") return;
|
|
33937
|
+
if (this._sse === void 0) this.upgradeToSse();
|
|
33938
|
+
this.writeMessageFrame(message);
|
|
33563
33939
|
}
|
|
33564
33940
|
/**
|
|
33565
|
-
*
|
|
33566
|
-
*
|
|
33567
|
-
* - For a subscription-gated change notification, returns one stamped copy
|
|
33568
|
-
* per subscription that opted in to it (an empty array means it is
|
|
33569
|
-
* dropped — the modern era never delivers an un-requested change type).
|
|
33570
|
-
* - For any other outbound message, returns `'passthrough'` (the entry
|
|
33571
|
-
* forwards it as-is).
|
|
33941
|
+
* Writes an SSE comment frame (a keep-alive heartbeat). Dropped when the
|
|
33942
|
+
* exchange is not currently streaming.
|
|
33572
33943
|
*/
|
|
33573
|
-
|
|
33574
|
-
if (
|
|
33575
|
-
const
|
|
33576
|
-
|
|
33577
|
-
|
|
33578
|
-
|
|
33579
|
-
for (const [subscriptionId, filter] of this._subs) if (listenFilterAccepts(filter, event)) out.push(stampSubscriptionId({
|
|
33580
|
-
method: message.method,
|
|
33581
|
-
params: message.params ?? {}
|
|
33582
|
-
}, subscriptionId));
|
|
33583
|
-
return out;
|
|
33944
|
+
writeCommentFrame(comment) {
|
|
33945
|
+
if (this._closed || this._sse === void 0 || this._sse.closed) return;
|
|
33946
|
+
const frame = comment.split("\n").map((line) => `: ${line}`).join("\n");
|
|
33947
|
+
this.writeFrame(`${frame}
|
|
33948
|
+
|
|
33949
|
+
`);
|
|
33584
33950
|
}
|
|
33585
|
-
|
|
33586
|
-
|
|
33587
|
-
|
|
33588
|
-
|
|
33589
|
-
|
|
33590
|
-
|
|
33591
|
-
|
|
33592
|
-
|
|
33593
|
-
|
|
33594
|
-
|
|
33595
|
-
|
|
33596
|
-
|
|
33597
|
-
|
|
33598
|
-
|
|
33599
|
-
|
|
33600
|
-
|
|
33601
|
-
|
|
33602
|
-
|
|
33951
|
+
async close() {
|
|
33952
|
+
if (this._closed) return;
|
|
33953
|
+
this._closed = true;
|
|
33954
|
+
this._abortCleanup?.();
|
|
33955
|
+
this._abortCleanup = void 0;
|
|
33956
|
+
if (this._sse?.keepAliveTimer !== void 0) clearInterval(this._sse.keepAliveTimer);
|
|
33957
|
+
if (this._sse !== void 0 && !this._sse.closed) {
|
|
33958
|
+
this._sse.closed = true;
|
|
33959
|
+
try {
|
|
33960
|
+
this._sse.controller.close();
|
|
33961
|
+
} catch {
|
|
33962
|
+
}
|
|
33963
|
+
}
|
|
33964
|
+
if (this._deferredResponse !== void 0 && !this._deferredResponse.settled) {
|
|
33965
|
+
this._deferredResponse.settled = true;
|
|
33966
|
+
this._deferredResponse.reject(new SdkError(SdkErrorCode.ConnectionClosed, "Connection closed before a response was produced"));
|
|
33967
|
+
}
|
|
33968
|
+
this.onclose?.();
|
|
33969
|
+
}
|
|
33970
|
+
settleResponse(response) {
|
|
33971
|
+
if (this._deferredResponse === void 0 || this._deferredResponse.settled) return;
|
|
33972
|
+
this._deferredResponse.settled = true;
|
|
33973
|
+
this._deferredResponse.resolve(response);
|
|
33974
|
+
}
|
|
33975
|
+
upgradeToSse() {
|
|
33976
|
+
let controller;
|
|
33977
|
+
const readable = new ReadableStream({
|
|
33978
|
+
start: (streamController) => {
|
|
33979
|
+
controller = streamController;
|
|
33980
|
+
},
|
|
33981
|
+
cancel: () => {
|
|
33982
|
+
this.close();
|
|
33603
33983
|
}
|
|
33604
33984
|
});
|
|
33605
|
-
this.
|
|
33606
|
-
|
|
33985
|
+
this._sse = {
|
|
33986
|
+
controller,
|
|
33987
|
+
encoder: new TextEncoder(),
|
|
33988
|
+
closed: false
|
|
33989
|
+
};
|
|
33990
|
+
this._sse.keepAliveTimer = armSseKeepAlive(this._keepAliveMs, () => this.writeCommentFrame("keepalive"));
|
|
33991
|
+
this.settleResponse(new Response(readable, {
|
|
33992
|
+
status: 200,
|
|
33993
|
+
headers: {
|
|
33994
|
+
"Content-Type": "text/event-stream",
|
|
33995
|
+
"Cache-Control": "no-cache, no-transform",
|
|
33996
|
+
Connection: "keep-alive",
|
|
33997
|
+
"X-Accel-Buffering": "no"
|
|
33998
|
+
}
|
|
33999
|
+
}));
|
|
34000
|
+
}
|
|
34001
|
+
finalizeStream() {
|
|
34002
|
+
if (this._sse?.keepAliveTimer !== void 0) clearInterval(this._sse.keepAliveTimer);
|
|
34003
|
+
if (this._sse !== void 0 && !this._sse.closed) {
|
|
34004
|
+
this._sse.closed = true;
|
|
34005
|
+
try {
|
|
34006
|
+
this._sse.controller.close();
|
|
34007
|
+
} catch {
|
|
34008
|
+
}
|
|
34009
|
+
}
|
|
34010
|
+
queueMicrotask(() => void this.close());
|
|
34011
|
+
}
|
|
34012
|
+
writeMessageFrame(message) {
|
|
34013
|
+
this.writeFrame(`event: message
|
|
34014
|
+
data: ${JSON.stringify(message)}
|
|
34015
|
+
|
|
34016
|
+
`);
|
|
34017
|
+
}
|
|
34018
|
+
writeFrame(frame) {
|
|
34019
|
+
if (this._sse === void 0 || this._sse.closed) return;
|
|
34020
|
+
try {
|
|
34021
|
+
this._sse.controller.enqueue(this._sse.encoder.encode(frame));
|
|
34022
|
+
} catch (error62) {
|
|
34023
|
+
this.onerror?.(/* @__PURE__ */ new Error(`Failed to write to the response stream: ${error62}`));
|
|
34024
|
+
}
|
|
33607
34025
|
}
|
|
33608
34026
|
};
|
|
33609
34027
|
DEFAULT_LEGACY_SHIM_MAX_ROUNDS = 8;
|
|
@@ -33723,6 +34141,7 @@ var init_mcp_DIH4cS6P = __esm({
|
|
|
33723
34141
|
_requestStateVerify;
|
|
33724
34142
|
_inputRequiredServing;
|
|
33725
34143
|
_legacyShim;
|
|
34144
|
+
_boundFromTransport = false;
|
|
33726
34145
|
/** Lazily-built legacy shim; the loop lives in legacyInputRequiredShim.ts behind a narrow host contract. */
|
|
33727
34146
|
_legacyInputRequiredShim() {
|
|
33728
34147
|
return this._legacyShim ??= new LegacyInputRequiredShim({
|
|
@@ -33762,6 +34181,15 @@ var init_mcp_DIH4cS6P = __esm({
|
|
|
33762
34181
|
/** Attaches to the given transport; rejects while this instance is connected to another one. */
|
|
33763
34182
|
async connect(transport) {
|
|
33764
34183
|
if (this.transport !== void 0) throw new SdkError(SdkErrorCode.AlreadyConnected, "Use a separate Server instance per connection: this instance is already connected to a transport. To connect it to a new transport, call close() first.");
|
|
34184
|
+
if (this._boundFromTransport) {
|
|
34185
|
+
this._boundFromTransport = false;
|
|
34186
|
+
this._negotiatedProtocolVersion = void 0;
|
|
34187
|
+
}
|
|
34188
|
+
const revision = perRequestClassificationOf(transport)?.revision;
|
|
34189
|
+
if (revision !== void 0 && !this._servedModernEra() && SUPPORTED_MODERN_PROTOCOL_VERSIONS.includes(revision) && modernProtocolVersions(this._supportedProtocolVersions).includes(revision)) {
|
|
34190
|
+
this._negotiatedProtocolVersion = revision;
|
|
34191
|
+
this._boundFromTransport = true;
|
|
34192
|
+
}
|
|
33765
34193
|
await super.connect(transport);
|
|
33766
34194
|
}
|
|
33767
34195
|
/**
|
|
@@ -34087,8 +34515,8 @@ var init_mcp_DIH4cS6P = __esm({
|
|
|
34087
34515
|
* @deprecated Read client identity from the per-request handler context instead: on
|
|
34088
34516
|
* 2026-07-28 (per-request envelope) requests `ctx.mcpReq.envelope` carries the client's
|
|
34089
34517
|
* declared capabilities, while on 2025-era connections this accessor keeps returning the
|
|
34090
|
-
* `initialize`-scoped value. The accessor remains functional
|
|
34091
|
-
* 2026-07-28 era
|
|
34518
|
+
* `initialize`-scoped value. The accessor remains functional where `createMcpHandler`
|
|
34519
|
+
* serves the 2026-07-28 era: it backfills it per request from the validated envelope.
|
|
34092
34520
|
*/
|
|
34093
34521
|
getClientCapabilities() {
|
|
34094
34522
|
return this._clientCapabilities;
|
|
@@ -34099,8 +34527,8 @@ var init_mcp_DIH4cS6P = __esm({
|
|
|
34099
34527
|
* @deprecated Read client identity from the per-request handler context instead: on
|
|
34100
34528
|
* 2026-07-28 (per-request envelope) requests `ctx.mcpReq.envelope` carries the client's
|
|
34101
34529
|
* name and version, while on 2025-era connections this accessor keeps returning the
|
|
34102
|
-
* `initialize`-scoped value. The accessor remains functional
|
|
34103
|
-
* 2026-07-28 era
|
|
34530
|
+
* `initialize`-scoped value. The accessor remains functional where `createMcpHandler`
|
|
34531
|
+
* serves the 2026-07-28 era: it backfills it per request from the validated envelope.
|
|
34104
34532
|
*/
|
|
34105
34533
|
getClientVersion() {
|
|
34106
34534
|
return this._clientVersion;
|
|
@@ -34648,8 +35076,14 @@ var init_mcp_DIH4cS6P = __esm({
|
|
|
34648
35076
|
if (updates.uri) this._registeredResources[updates.uri] = registeredResource;
|
|
34649
35077
|
}
|
|
34650
35078
|
if (updates.name !== void 0) registeredResource.name = updates.name;
|
|
34651
|
-
if (updates.title !== void 0) registeredResource.title = updates.title;
|
|
34652
35079
|
if (updates.metadata !== void 0) registeredResource.metadata = updates.metadata;
|
|
35080
|
+
if (updates.title !== void 0) {
|
|
35081
|
+
registeredResource.title = updates.title;
|
|
35082
|
+
registeredResource.metadata = {
|
|
35083
|
+
...registeredResource.metadata,
|
|
35084
|
+
title: updates.title
|
|
35085
|
+
};
|
|
35086
|
+
}
|
|
34653
35087
|
if (updates.callback !== void 0) registeredResource.readCallback = updates.callback;
|
|
34654
35088
|
if (updates.scopeChallenge !== void 0) registeredResource.scopeChallenge = updates.scopeChallenge === null ? void 0 : updates.scopeChallenge;
|
|
34655
35089
|
if (updates.enabled !== void 0) registeredResource.enabled = updates.enabled;
|
|
@@ -34675,9 +35109,15 @@ var init_mcp_DIH4cS6P = __esm({
|
|
|
34675
35109
|
delete this._registeredResourceTemplates[name];
|
|
34676
35110
|
if (updates.name) this._registeredResourceTemplates[updates.name] = registeredResourceTemplate;
|
|
34677
35111
|
}
|
|
34678
|
-
if (updates.title !== void 0) registeredResourceTemplate.title = updates.title;
|
|
34679
35112
|
if (updates.template !== void 0) registeredResourceTemplate.resourceTemplate = updates.template;
|
|
34680
35113
|
if (updates.metadata !== void 0) registeredResourceTemplate.metadata = updates.metadata;
|
|
35114
|
+
if (updates.title !== void 0) {
|
|
35115
|
+
registeredResourceTemplate.title = updates.title;
|
|
35116
|
+
registeredResourceTemplate.metadata = {
|
|
35117
|
+
...registeredResourceTemplate.metadata,
|
|
35118
|
+
title: updates.title
|
|
35119
|
+
};
|
|
35120
|
+
}
|
|
34681
35121
|
if (updates.callback !== void 0) registeredResourceTemplate.readCallback = updates.callback;
|
|
34682
35122
|
if (updates.scopeChallenge !== void 0) registeredResourceTemplate.scopeChallenge = updates.scopeChallenge === null ? void 0 : updates.scopeChallenge;
|
|
34683
35123
|
if (updates.enabled !== void 0) registeredResourceTemplate.enabled = updates.enabled;
|
|
@@ -34880,6 +35320,199 @@ var init_mcp_DIH4cS6P = __esm({
|
|
|
34880
35320
|
}
|
|
34881
35321
|
});
|
|
34882
35322
|
|
|
35323
|
+
// node_modules/@modelcontextprotocol/server/dist/listenRouter-Bartj63y.mjs
|
|
35324
|
+
function listenFilterAccepts(filter, event) {
|
|
35325
|
+
switch (event.kind) {
|
|
35326
|
+
case "tools_list_changed":
|
|
35327
|
+
return filter.toolsListChanged === true;
|
|
35328
|
+
case "prompts_list_changed":
|
|
35329
|
+
return filter.promptsListChanged === true;
|
|
35330
|
+
case "resources_list_changed":
|
|
35331
|
+
return filter.resourcesListChanged === true;
|
|
35332
|
+
case "resource_updated":
|
|
35333
|
+
return filter.resourceSubscriptions !== void 0 && filter.resourceSubscriptions.includes(event.uri);
|
|
35334
|
+
}
|
|
35335
|
+
}
|
|
35336
|
+
function honoredSubset(requested, capabilities) {
|
|
35337
|
+
const honored = {};
|
|
35338
|
+
const allow = (bit) => capabilities === void 0 || bit === true;
|
|
35339
|
+
if (requested.toolsListChanged === true && allow(capabilities?.tools?.listChanged)) honored.toolsListChanged = true;
|
|
35340
|
+
if (requested.promptsListChanged === true && allow(capabilities?.prompts?.listChanged)) honored.promptsListChanged = true;
|
|
35341
|
+
if (requested.resourcesListChanged === true && allow(capabilities?.resources?.listChanged)) honored.resourcesListChanged = true;
|
|
35342
|
+
if (requested.resourceSubscriptions !== void 0 && requested.resourceSubscriptions.length > 0 && allow(capabilities?.resources?.subscribe)) honored.resourceSubscriptions = [...requested.resourceSubscriptions];
|
|
35343
|
+
return honored;
|
|
35344
|
+
}
|
|
35345
|
+
function stampSubscriptionId(notification, subscriptionId) {
|
|
35346
|
+
return {
|
|
35347
|
+
method: notification.method,
|
|
35348
|
+
params: {
|
|
35349
|
+
...notification.params,
|
|
35350
|
+
_meta: {
|
|
35351
|
+
...notification.params?._meta,
|
|
35352
|
+
[SUBSCRIPTION_ID_META_KEY]: subscriptionId
|
|
35353
|
+
}
|
|
35354
|
+
}
|
|
35355
|
+
};
|
|
35356
|
+
}
|
|
35357
|
+
function parseListenFilter(message) {
|
|
35358
|
+
const outcome = codecForVersion(MODERN_WIRE_REVISION).validateRequest("subscriptions/listen", message);
|
|
35359
|
+
return outcome.ok ? outcome.value.params?.notifications : void 0;
|
|
35360
|
+
}
|
|
35361
|
+
function notificationToServerEvent(method, uri) {
|
|
35362
|
+
switch (method) {
|
|
35363
|
+
case "notifications/tools/list_changed":
|
|
35364
|
+
return { kind: "tools_list_changed" };
|
|
35365
|
+
case "notifications/prompts/list_changed":
|
|
35366
|
+
return { kind: "prompts_list_changed" };
|
|
35367
|
+
case "notifications/resources/list_changed":
|
|
35368
|
+
return { kind: "resources_list_changed" };
|
|
35369
|
+
default:
|
|
35370
|
+
return {
|
|
35371
|
+
kind: "resource_updated",
|
|
35372
|
+
uri: uri ?? ""
|
|
35373
|
+
};
|
|
35374
|
+
}
|
|
35375
|
+
}
|
|
35376
|
+
var DEFAULT_MAX_SUBSCRIPTIONS, CHANGE_NOTIFICATION_METHODS, StdioListenRouter;
|
|
35377
|
+
var init_listenRouter_Bartj63y = __esm({
|
|
35378
|
+
"node_modules/@modelcontextprotocol/server/dist/listenRouter-Bartj63y.mjs"() {
|
|
35379
|
+
init_mcp_oHn3ureC();
|
|
35380
|
+
init_src_DdvbAHrR();
|
|
35381
|
+
DEFAULT_MAX_SUBSCRIPTIONS = 1024;
|
|
35382
|
+
CHANGE_NOTIFICATION_METHODS = /* @__PURE__ */ new Set([
|
|
35383
|
+
"notifications/tools/list_changed",
|
|
35384
|
+
"notifications/prompts/list_changed",
|
|
35385
|
+
"notifications/resources/list_changed",
|
|
35386
|
+
"notifications/resources/updated"
|
|
35387
|
+
]);
|
|
35388
|
+
StdioListenRouter = class {
|
|
35389
|
+
/** Active subscriptions, keyed by the listen request's JSON-RPC id verbatim. */
|
|
35390
|
+
_subs = /* @__PURE__ */ new Map();
|
|
35391
|
+
/**
|
|
35392
|
+
* The serving instance's declared capabilities. Filled in by the entry
|
|
35393
|
+
* once the modern instance is constructed (the router is created before
|
|
35394
|
+
* the instance exists), so the acknowledged filter is narrowed against
|
|
35395
|
+
* what the server can actually deliver.
|
|
35396
|
+
*/
|
|
35397
|
+
_serverCapabilities;
|
|
35398
|
+
/**
|
|
35399
|
+
* The serving instance's identity, stamped onto the graceful-close
|
|
35400
|
+
* results' `_meta` (the spec's `SubscriptionsListenResultMetaObject` extends
|
|
35401
|
+
* `ResultMetaObject`). Handed over together with the capabilities.
|
|
35402
|
+
*/
|
|
35403
|
+
_serverInfo;
|
|
35404
|
+
constructor(_maxSubscriptions = DEFAULT_MAX_SUBSCRIPTIONS, serverCapabilities, serverInfo) {
|
|
35405
|
+
this._maxSubscriptions = _maxSubscriptions;
|
|
35406
|
+
this._serverCapabilities = serverCapabilities;
|
|
35407
|
+
this._serverInfo = serverInfo;
|
|
35408
|
+
}
|
|
35409
|
+
/**
|
|
35410
|
+
* Record the serving instance's declared capabilities and identity once
|
|
35411
|
+
* it has been constructed. Called by `serveStdio`'s connect path;
|
|
35412
|
+
* subsequent `serve()` calls narrow the honored filter against the
|
|
35413
|
+
* capabilities, and `teardownAll()` stamps the identity.
|
|
35414
|
+
*/
|
|
35415
|
+
setServerCapabilities(capabilities, serverInfo) {
|
|
35416
|
+
this._serverCapabilities = capabilities;
|
|
35417
|
+
if (serverInfo !== void 0) this._serverInfo = serverInfo;
|
|
35418
|
+
}
|
|
35419
|
+
/** Whether `id` is an active listen subscription on this connection. */
|
|
35420
|
+
has(id) {
|
|
35421
|
+
return this._subs.has(id);
|
|
35422
|
+
}
|
|
35423
|
+
/**
|
|
35424
|
+
* Serve one inbound `subscriptions/listen` request: registers the
|
|
35425
|
+
* subscription and returns the stamped acknowledged notification (or, on
|
|
35426
|
+
* capacity / params rejection, the in-band JSON-RPC error response).
|
|
35427
|
+
*
|
|
35428
|
+
* @throws when called before {@linkcode setServerCapabilities} (or the
|
|
35429
|
+
* constructor) has supplied the serving instance's capabilities. Honoring a
|
|
35430
|
+
* filter without knowing the server's advertised capabilities would fail
|
|
35431
|
+
* open (deliver unadvertised types); the entry guarantees capabilities are
|
|
35432
|
+
* set before any listen request is routed here.
|
|
35433
|
+
*/
|
|
35434
|
+
serve(message) {
|
|
35435
|
+
if (this._serverCapabilities === void 0) throw new Error("StdioListenRouter.serve() called before setServerCapabilities(); refusing to honor a filter without capabilities");
|
|
35436
|
+
if (this._subs.size >= this._maxSubscriptions) return {
|
|
35437
|
+
jsonrpc: "2.0",
|
|
35438
|
+
id: message.id,
|
|
35439
|
+
error: {
|
|
35440
|
+
code: -32603,
|
|
35441
|
+
message: "Subscription limit reached"
|
|
35442
|
+
}
|
|
35443
|
+
};
|
|
35444
|
+
const filter = parseListenFilter(message);
|
|
35445
|
+
if (filter === void 0) return {
|
|
35446
|
+
jsonrpc: "2.0",
|
|
35447
|
+
id: message.id,
|
|
35448
|
+
error: {
|
|
35449
|
+
code: -32602,
|
|
35450
|
+
message: "Invalid params: 'notifications' is required and must be a valid SubscriptionFilter"
|
|
35451
|
+
}
|
|
35452
|
+
};
|
|
35453
|
+
const honored = honoredSubset(filter, this._serverCapabilities);
|
|
35454
|
+
this._subs.set(message.id, honored);
|
|
35455
|
+
return stampSubscriptionId({
|
|
35456
|
+
method: "notifications/subscriptions/acknowledged",
|
|
35457
|
+
params: { notifications: honored }
|
|
35458
|
+
}, message.id);
|
|
35459
|
+
}
|
|
35460
|
+
/**
|
|
35461
|
+
* Tear down one subscription (inbound `notifications/cancelled`). Returns
|
|
35462
|
+
* `true` when a subscription was removed. After this call NOTHING further
|
|
35463
|
+
* is delivered for that subscription id (the post-cancel hardening).
|
|
35464
|
+
*/
|
|
35465
|
+
cancel(id) {
|
|
35466
|
+
return this._subs.delete(id);
|
|
35467
|
+
}
|
|
35468
|
+
/**
|
|
35469
|
+
* Route an outbound notification through the active subscriptions.
|
|
35470
|
+
*
|
|
35471
|
+
* - For a subscription-gated change notification, returns one stamped copy
|
|
35472
|
+
* per subscription that opted in to it (an empty array means it is
|
|
35473
|
+
* dropped — the modern era never delivers an un-requested change type).
|
|
35474
|
+
* - For any other outbound message, returns `'passthrough'` (the entry
|
|
35475
|
+
* forwards it as-is).
|
|
35476
|
+
*/
|
|
35477
|
+
routeOutbound(message) {
|
|
35478
|
+
if (!CHANGE_NOTIFICATION_METHODS.has(message.method)) return "passthrough";
|
|
35479
|
+
const uriParam = message.params?.["uri"];
|
|
35480
|
+
const uri = typeof uriParam === "string" ? uriParam : void 0;
|
|
35481
|
+
const event = notificationToServerEvent(message.method, uri);
|
|
35482
|
+
const out = [];
|
|
35483
|
+
for (const [subscriptionId, filter] of this._subs) if (listenFilterAccepts(filter, event)) out.push(stampSubscriptionId({
|
|
35484
|
+
method: message.method,
|
|
35485
|
+
params: message.params ?? {}
|
|
35486
|
+
}, subscriptionId));
|
|
35487
|
+
return out;
|
|
35488
|
+
}
|
|
35489
|
+
/**
|
|
35490
|
+
* Server-side graceful teardown of every active subscription: returns the
|
|
35491
|
+
* empty `subscriptions/listen` JSON-RPC result for each subscription id —
|
|
35492
|
+
* the spec's graceful-close signal, `_meta` carrying the subscription id
|
|
35493
|
+
* and the serving instance's identity — for the entry to emit before
|
|
35494
|
+
* closing the wire. Clears the set so nothing further is delivered.
|
|
35495
|
+
*/
|
|
35496
|
+
teardownAll() {
|
|
35497
|
+
const out = [];
|
|
35498
|
+
for (const id of this._subs.keys()) out.push({
|
|
35499
|
+
jsonrpc: "2.0",
|
|
35500
|
+
id,
|
|
35501
|
+
result: {
|
|
35502
|
+
resultType: "complete",
|
|
35503
|
+
_meta: {
|
|
35504
|
+
[SUBSCRIPTION_ID_META_KEY]: id,
|
|
35505
|
+
...this._serverInfo !== void 0 && { [SERVER_INFO_META_KEY]: this._serverInfo }
|
|
35506
|
+
}
|
|
35507
|
+
}
|
|
35508
|
+
});
|
|
35509
|
+
this._subs.clear();
|
|
35510
|
+
return out;
|
|
35511
|
+
}
|
|
35512
|
+
};
|
|
35513
|
+
}
|
|
35514
|
+
});
|
|
35515
|
+
|
|
34883
35516
|
// node_modules/@modelcontextprotocol/server/dist/stdio.mjs
|
|
34884
35517
|
function classifyOpeningMessage(message) {
|
|
34885
35518
|
const params = message.params;
|
|
@@ -35198,8 +35831,9 @@ function toError(value) {
|
|
|
35198
35831
|
var swallowsErrorsAfterClose, StdioServerTransport, DISCARD_ANSWER_TIMEOUT_MS, StdioConnectionChannel;
|
|
35199
35832
|
var init_stdio = __esm({
|
|
35200
35833
|
"node_modules/@modelcontextprotocol/server/dist/stdio.mjs"() {
|
|
35201
|
-
|
|
35202
|
-
|
|
35834
|
+
init_mcp_oHn3ureC();
|
|
35835
|
+
init_src_DdvbAHrR();
|
|
35836
|
+
init_listenRouter_Bartj63y();
|
|
35203
35837
|
init_shimsNode();
|
|
35204
35838
|
swallowsErrorsAfterClose = /* @__PURE__ */ Symbol("swallowsErrorsAfterClose");
|
|
35205
35839
|
StdioServerTransport = class {
|
|
@@ -35390,8 +36024,9 @@ var init_stdio = __esm({
|
|
|
35390
36024
|
var DEFAULT_MAX_REQUEST_BODY_SIZE;
|
|
35391
36025
|
var init_dist = __esm({
|
|
35392
36026
|
"node_modules/@modelcontextprotocol/server/dist/index.mjs"() {
|
|
35393
|
-
|
|
35394
|
-
|
|
36027
|
+
init_mcp_oHn3ureC();
|
|
36028
|
+
init_src_DdvbAHrR();
|
|
36029
|
+
init_listenRouter_Bartj63y();
|
|
35395
36030
|
init_shimsNode();
|
|
35396
36031
|
DEFAULT_MAX_REQUEST_BODY_SIZE = 4 * 1024 * 1024;
|
|
35397
36032
|
}
|
|
@@ -35701,6 +36336,12 @@ var init_untrusted = __esm({
|
|
|
35701
36336
|
}
|
|
35702
36337
|
});
|
|
35703
36338
|
|
|
36339
|
+
// node_modules/@chrischall/mcp-utils/dist/response/urlish.js
|
|
36340
|
+
var init_urlish = __esm({
|
|
36341
|
+
"node_modules/@chrischall/mcp-utils/dist/response/urlish.js"() {
|
|
36342
|
+
}
|
|
36343
|
+
});
|
|
36344
|
+
|
|
35704
36345
|
// node_modules/@chrischall/mcp-utils/dist/response/index.js
|
|
35705
36346
|
function textResult(data) {
|
|
35706
36347
|
return {
|
|
@@ -35724,6 +36365,7 @@ var init_response = __esm({
|
|
|
35724
36365
|
init_view();
|
|
35725
36366
|
init_media();
|
|
35726
36367
|
init_untrusted();
|
|
36368
|
+
init_urlish();
|
|
35727
36369
|
}
|
|
35728
36370
|
});
|
|
35729
36371
|
|
|
@@ -38444,7 +39086,7 @@ var init_version = __esm({
|
|
|
38444
39086
|
"src/version.ts"() {
|
|
38445
39087
|
"use strict";
|
|
38446
39088
|
PACKAGE_NAME = "office-outlook-mcp";
|
|
38447
|
-
VERSION = "0.
|
|
39089
|
+
VERSION = "0.8.0";
|
|
38448
39090
|
}
|
|
38449
39091
|
});
|
|
38450
39092
|
|
|
@@ -49770,6 +50412,49 @@ var OutlookClient = class {
|
|
|
49770
50412
|
init_zod();
|
|
49771
50413
|
init_dist2();
|
|
49772
50414
|
|
|
50415
|
+
// src/tools/_hints.ts
|
|
50416
|
+
init_zod();
|
|
50417
|
+
init_dist2();
|
|
50418
|
+
|
|
50419
|
+
// src/tools/_untrusted.ts
|
|
50420
|
+
init_dist2();
|
|
50421
|
+
init_dist2();
|
|
50422
|
+
var UNTRUSTED_CONTENT_NOTE2 = "Message bodies, previews, subjects, names and event text below are written by other people (anyone who can email or invite this mailbox). " + UNTRUSTED_CONTENT_RULE;
|
|
50423
|
+
function mailboxUntrusted(payload) {
|
|
50424
|
+
return untrustedResult(payload, { note: UNTRUSTED_CONTENT_NOTE2 });
|
|
50425
|
+
}
|
|
50426
|
+
|
|
50427
|
+
// src/tools/_hints.ts
|
|
50428
|
+
function workMeta(intent, extra = {}) {
|
|
50429
|
+
return { mint: { domain: "work", intent, ...extra } };
|
|
50430
|
+
}
|
|
50431
|
+
var BRIEF_MAX = 120;
|
|
50432
|
+
var BRIEF_NOTE = '"brief": one line per item, `title \u2014 <ISO date or "no date"> \u2014 <status>`, at most 120 chars each, as `data` in the untrusted-content envelope; a last line `-- more` means another page exists (re-ask without "brief" for its nextLink).';
|
|
50433
|
+
function briefViewParam(rungs, note) {
|
|
50434
|
+
const base = viewParam(rungs);
|
|
50435
|
+
return external_exports.enum([...rungs, "brief"]).optional().describe(`${base.description ?? ""} ${BRIEF_NOTE} ${note}`.trim());
|
|
50436
|
+
}
|
|
50437
|
+
function flat(s) {
|
|
50438
|
+
const out = s?.replace(/\s+/g, " ").trim();
|
|
50439
|
+
return out ? out : void 0;
|
|
50440
|
+
}
|
|
50441
|
+
function briefDate(dt) {
|
|
50442
|
+
return flat(dt?.replace(/\.0+(?=Z?$)/, "")) ?? "no date";
|
|
50443
|
+
}
|
|
50444
|
+
function briefLine(title, date5, status) {
|
|
50445
|
+
const tail = ` \u2014 ${date5} \u2014 ${status}`;
|
|
50446
|
+
const shown = flat(title) ?? "(no subject)";
|
|
50447
|
+
const room = BRIEF_MAX - tail.length;
|
|
50448
|
+
return `${shown.length > room ? `${shown.slice(0, Math.max(room - 1, 0))}\u2026` : shown}${tail}`;
|
|
50449
|
+
}
|
|
50450
|
+
var BRIEF_MORE = "-- more";
|
|
50451
|
+
function briefResult(lines, hasMore = false) {
|
|
50452
|
+
return mailboxUntrusted(hasMore ? [...lines, BRIEF_MORE] : lines);
|
|
50453
|
+
}
|
|
50454
|
+
function spaced(value) {
|
|
50455
|
+
return value.replace(/([a-z])([A-Z])/g, "$1 $2").toLowerCase();
|
|
50456
|
+
}
|
|
50457
|
+
|
|
49773
50458
|
// src/view.ts
|
|
49774
50459
|
init_dist2();
|
|
49775
50460
|
var VIEWS2 = ["compact", "full", "raw"];
|
|
@@ -49984,14 +50669,6 @@ function nextPosition(rows, pos) {
|
|
|
49984
50669
|
return { t: utcLiteral(newest), ids: [...carried, ...tied] };
|
|
49985
50670
|
}
|
|
49986
50671
|
|
|
49987
|
-
// src/tools/_untrusted.ts
|
|
49988
|
-
init_dist2();
|
|
49989
|
-
init_dist2();
|
|
49990
|
-
var UNTRUSTED_CONTENT_NOTE2 = "Message bodies, previews, subjects, names and event text below are written by other people (anyone who can email or invite this mailbox). " + UNTRUSTED_CONTENT_RULE;
|
|
49991
|
-
function mailboxUntrusted(payload) {
|
|
49992
|
-
return untrustedResult(payload, { note: UNTRUSTED_CONTENT_NOTE2 });
|
|
49993
|
-
}
|
|
49994
|
-
|
|
49995
50672
|
// src/tools/mail.ts
|
|
49996
50673
|
var WELL_KNOWN = [
|
|
49997
50674
|
"inbox",
|
|
@@ -50041,6 +50718,13 @@ function triageKind(m) {
|
|
|
50041
50718
|
if (/Cancel/.test(type)) return "meetingCancelled";
|
|
50042
50719
|
return "meetingResponse";
|
|
50043
50720
|
}
|
|
50721
|
+
function briefUnread(m) {
|
|
50722
|
+
const who = m.From ?? m.Sender;
|
|
50723
|
+
const sender = who?.EmailAddress?.Name || who?.EmailAddress?.Address;
|
|
50724
|
+
const kind = triageKind(m);
|
|
50725
|
+
const title = sender ? `${sender}: ${m.Subject ?? "(no subject)"}` : m.Subject;
|
|
50726
|
+
return briefLine(title, briefDate(m.ReceivedDateTime), kind === "mail" ? "unread" : spaced(kind));
|
|
50727
|
+
}
|
|
50044
50728
|
function triageEvent(e) {
|
|
50045
50729
|
return stripUndefined({
|
|
50046
50730
|
id: e.Id,
|
|
@@ -50129,6 +50813,7 @@ function registerMailTools(server, client2) {
|
|
|
50129
50813
|
{
|
|
50130
50814
|
description: "List mail folders with unread and total counts. Use this to discover folder ids before listing messages; the well-known names (" + WELL_KNOWN.join(", ") + ") can be used directly without a lookup. Lists ONE level: top-level folders by default, or the child folders of `parent`. A folder with `Children` > 0 has subfolders \u2014 list them with `parent` set to its Id.",
|
|
50131
50815
|
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
50816
|
+
_meta: workMeta("lookup"),
|
|
50132
50817
|
inputSchema: external_exports.object({
|
|
50133
50818
|
view: viewParam(VIEWS2),
|
|
50134
50819
|
parent: external_exports.string().min(1).optional().describe("List the child folders of this folder (id or well-known name). Omit for the top level."),
|
|
@@ -50153,6 +50838,7 @@ function registerMailTools(server, client2) {
|
|
|
50153
50838
|
{
|
|
50154
50839
|
description: 'List messages in a folder, newest first. Defaults to the inbox. Use `unreadOnly` for a triage view. Bodies are NOT included \u2014 call outlook_get_message for one. Note `search` and `unreadOnly` cannot be combined on a first-page request (the API rejects $search with $filter); pass `search` alone to search the whole mailbox. When following a `nextLink`, both are ignored, so echoing them back is harmless. Each message\'s To list (and Cc, in the full view) holds at most 20 addresses; a longer list adds ToCount/ToTruncated (CcCount/CcTruncated) with the full count \u2014 pass view:"raw" for every address. ' + FROM_DESCRIPTION + " Cannot combine with `search`, `skip` or `nextLink`. " + UNTRUSTED_DESCRIPTION_SUFFIX,
|
|
50155
50840
|
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
50841
|
+
_meta: workMeta("lookup", { aliases: ["email", "mail", "inbox"] }),
|
|
50156
50842
|
inputSchema: external_exports.object({
|
|
50157
50843
|
view: viewParam(VIEWS2),
|
|
50158
50844
|
folder: external_exports.string().optional().describe('Folder id or well-known name (default "inbox")'),
|
|
@@ -50204,6 +50890,7 @@ function registerMailTools(server, client2) {
|
|
|
50204
50890
|
{
|
|
50205
50891
|
description: `Get one message including its body. The body is requested as plain text rather than HTML (measured ~9x smaller and far easier to read); pass view:"raw" to get Outlook's untouched record. To and Cc list at most 20 addresses; a longer list adds ToCount/ToTruncated (CcCount/CcTruncated) with the full count \u2014 view:"raw" returns every address. ` + UNTRUSTED_DESCRIPTION_SUFFIX,
|
|
50206
50892
|
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
50893
|
+
_meta: workMeta("lookup"),
|
|
50207
50894
|
inputSchema: external_exports.object({
|
|
50208
50895
|
view: viewParam(VIEWS2),
|
|
50209
50896
|
id: external_exports.string().min(1).describe("Message Id from outlook_list_messages"),
|
|
@@ -50224,7 +50911,11 @@ function registerMailTools(server, client2) {
|
|
|
50224
50911
|
{
|
|
50225
50912
|
description: 'Triage batch: the unread messages in a folder (default inbox), newest first, each WITH its plain-text body (truncated to `maxBodyChars`) in one call \u2014 no follow-up outlook_get_message needed. Every item has a `kind`: "mail", "meetingRequest", "meetingCancelled" or "meetingResponse" (a reply to an invite you sent). Requests and cancellations also carry `event` (id, time, organizer, your current `responseStatus`) so the invite can be answered by its event id (when the meeting is no longer on your calendar \u2014 already declined, cancelled or deleted \u2014 the item has a `hint` instead and there is nothing to respond to). `to`/`cc` list at most 20 addresses; a longer list adds `toCount`/`ccCount` and `toTruncated`/`ccTruncated`. This does NOT mark anything read. Processing loop: read the batch \u2192 act on each item (reply, respond to the invite, file, flag \u2014 or leave it) \u2192 call outlook_mark_read on the plain mail you handled, so the next call returns only what is still new. An invite you answer with outlook_respond_to_invite needs no mark-read: Outlook moves it to Deleted Items under a new id, so its old id would 404. Follow `nextLink` for more. ' + FROM_DESCRIPTION + " Cannot combine with `sinceHours` or `nextLink`. " + UNTRUSTED_DESCRIPTION_SUFFIX,
|
|
50226
50913
|
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
50914
|
+
_meta: workMeta("whats-new", { canonical: true, aliases: ["email", "mail", "inbox", "unread", "new mail", "work email"] }),
|
|
50227
50915
|
inputSchema: external_exports.object({
|
|
50916
|
+
view: external_exports.enum(["brief"]).optional().describe(
|
|
50917
|
+
'Omit for the triage batch above. "brief": one line per message, `<sender>: <subject> \u2014 <received ISO time or "no date"> \u2014 <unread | meeting request | meeting cancelled | meeting response>`, at most 120 chars each, as `data` in the untrusted-content envelope; fetches no body and no invite; a last line `-- more` means another page exists (re-ask without "brief" for its nextLink / next_from).'
|
|
50918
|
+
),
|
|
50228
50919
|
folder: external_exports.string().min(1).optional().describe('Folder id or well-known name (default "inbox")'),
|
|
50229
50920
|
limit: external_exports.number().int().min(1).max(50).optional().describe("Max messages (default 25, max 50)"),
|
|
50230
50921
|
sinceHours: external_exports.number().positive().max(24 * 365).optional().describe("Only mail received in the last N hours (not with `from`)"),
|
|
@@ -50234,7 +50925,7 @@ function registerMailTools(server, client2) {
|
|
|
50234
50925
|
nextLink: nextLinkParam
|
|
50235
50926
|
})
|
|
50236
50927
|
},
|
|
50237
|
-
async ({ folder, limit, sinceHours, includeBody, maxBodyChars, from, nextLink }) => {
|
|
50928
|
+
async ({ view, folder, limit, sinceHours, includeBody, maxBodyChars, from, nextLink }) => {
|
|
50238
50929
|
const pos = fromPosition(from, { nextLink, sinceHours });
|
|
50239
50930
|
const max = limit ?? 25;
|
|
50240
50931
|
const keyset = pos !== void 0 ? fromQuery(pos, max) : void 0;
|
|
@@ -50259,6 +50950,10 @@ function registerMailTools(server, client2) {
|
|
|
50259
50950
|
const listed = Array.isArray(data?.value) ? data.value : [];
|
|
50260
50951
|
const page = pos !== void 0 ? fromPage(listed, pos, max, Boolean(data?.["@odata.nextLink"])) : void 0;
|
|
50261
50952
|
const rows = page?.rows ?? listed;
|
|
50953
|
+
if (view === "brief") {
|
|
50954
|
+
const more = page !== void 0 ? page.has_more : Boolean(data?.["@odata.nextLink"]);
|
|
50955
|
+
return briefResult(rows.map(briefUnread), more);
|
|
50956
|
+
}
|
|
50262
50957
|
const wantBody = includeBody !== false;
|
|
50263
50958
|
const cap = maxBodyChars ?? 4e3;
|
|
50264
50959
|
const items = await mapWithConcurrency(rows, BODY_CONCURRENCY, async (m) => {
|
|
@@ -50321,6 +51016,7 @@ function registerMailTools(server, client2) {
|
|
|
50321
51016
|
{
|
|
50322
51017
|
description: "List a message's attachments (name, size, content type). Metadata only \u2014 this deliberately does not download bytes.",
|
|
50323
51018
|
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
51019
|
+
_meta: workMeta("lookup"),
|
|
50324
51020
|
inputSchema: external_exports.object({
|
|
50325
51021
|
id: external_exports.string().min(1).describe("Message Id"),
|
|
50326
51022
|
nextLink: nextLinkParam
|
|
@@ -50341,6 +51037,7 @@ function registerMailTools(server, client2) {
|
|
|
50341
51037
|
{
|
|
50342
51038
|
description: "Get one attachment's content (ids from outlook_list_attachments). An image comes back as image content the model can see; a text-like file (text/*, JSON, CSV, XML, .ics) is decoded to `text`, capped at 200 KB (`textTruncated` marks a cut). Any other binary (PDF, Office, archives) and anything over 5 MB is returned as metadata only \u2014 its bytes are not inlined. An attached Outlook item (a forwarded email or event) or a cloud-file link has no bytes to return; the result says which. " + UNTRUSTED_DESCRIPTION_SUFFIX,
|
|
50343
51039
|
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
51040
|
+
_meta: workMeta("lookup"),
|
|
50344
51041
|
inputSchema: external_exports.object({
|
|
50345
51042
|
messageId: external_exports.string().min(1).describe("Message Id"),
|
|
50346
51043
|
attachmentId: external_exports.string().min(1).describe("Attachment Id from outlook_list_attachments")
|
|
@@ -50448,6 +51145,11 @@ function assertWindow(start, end) {
|
|
|
50448
51145
|
function trimTime(dt) {
|
|
50449
51146
|
return dt?.replace(/\.0+$/, "");
|
|
50450
51147
|
}
|
|
51148
|
+
function briefEvent(e) {
|
|
51149
|
+
const response = e.ResponseStatus?.Response;
|
|
51150
|
+
const status = e.IsCancelled ? "cancelled" : response && response !== "None" ? spaced(response) : "scheduled";
|
|
51151
|
+
return briefLine(e.Subject, briefDate(e.Start?.DateTime), status);
|
|
51152
|
+
}
|
|
50451
51153
|
var attendeeList = (what) => external_exports.array(external_exports.string().min(3)).describe(`Email addresses of ${what}`);
|
|
50452
51154
|
function registerCalendarTools(server, client2) {
|
|
50453
51155
|
server.registerTool(
|
|
@@ -50455,8 +51157,9 @@ function registerCalendarTools(server, client2) {
|
|
|
50455
51157
|
{
|
|
50456
51158
|
description: 'List calendar events in a date window. This uses the calendar VIEW, which expands recurring series into their individual occurrences \u2014 the right tool for "what is on my schedule". Times are returned in `timeZone` when given. view:"raw" returns Outlook\'s records as-is and uncapped; the list carries no Attendees in any view \u2014 outlook_get_event returns them. ' + UNTRUSTED_DESCRIPTION_SUFFIX,
|
|
50457
51159
|
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
51160
|
+
_meta: workMeta("whats-on", { canonical: true, when: { start: "start", end: "end" }, aliases: ["calendar", "meetings", "schedule", "agenda", "appointments", "work calendar"] }),
|
|
50458
51161
|
inputSchema: external_exports.object({
|
|
50459
|
-
view:
|
|
51162
|
+
view: briefViewParam(VIEWS2, 'A brief status is "cancelled" or your response (accepted, organizer, not responded, \u2026).'),
|
|
50460
51163
|
start: external_exports.string().min(1).describe("Window start, ISO 8601 (e.g. 2026-09-20T00:00:00Z)"),
|
|
50461
51164
|
end: external_exports.string().min(1).describe("Window end, ISO 8601"),
|
|
50462
51165
|
timeZone: external_exports.string().optional().describe(
|
|
@@ -50483,6 +51186,7 @@ function registerCalendarTools(server, client2) {
|
|
|
50483
51186
|
...zone ? { prefer: `outlook.timezone="${zone}"` } : {}
|
|
50484
51187
|
}
|
|
50485
51188
|
);
|
|
51189
|
+
if (view === "brief") return briefResult((data?.value ?? []).map(briefEvent), Boolean(data?.["@odata.nextLink"]));
|
|
50486
51190
|
const v = resolveView(view, VIEWS2);
|
|
50487
51191
|
if (v === "raw") return mailboxUntrusted(data);
|
|
50488
51192
|
return mailboxUntrusted(
|
|
@@ -50495,6 +51199,7 @@ function registerCalendarTools(server, client2) {
|
|
|
50495
51199
|
{
|
|
50496
51200
|
description: `Get one calendar event in full, including attendees and their responses. Attendees appear in view:"full", every one of them \u2014 there is no 20-address cap as on a message's To/Cc; view:"raw" returns Outlook's untouched record, uncapped, Attendees included. ` + UNTRUSTED_DESCRIPTION_SUFFIX,
|
|
50497
51201
|
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
51202
|
+
_meta: workMeta("lookup"),
|
|
50498
51203
|
inputSchema: external_exports.object({
|
|
50499
51204
|
view: viewParam(VIEWS2),
|
|
50500
51205
|
id: external_exports.string().min(1).describe("Event Id from outlook_list_events"),
|
|
@@ -50517,6 +51222,7 @@ function registerCalendarTools(server, client2) {
|
|
|
50517
51222
|
{
|
|
50518
51223
|
description: "List the calendars in the mailbox, for picking one to read or write against.",
|
|
50519
51224
|
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
51225
|
+
_meta: workMeta("lookup"),
|
|
50520
51226
|
inputSchema: external_exports.object({
|
|
50521
51227
|
view: viewParam(VIEWS2),
|
|
50522
51228
|
nextLink: nextLinkParam
|
|
@@ -50533,6 +51239,7 @@ function registerCalendarTools(server, client2) {
|
|
|
50533
51239
|
{
|
|
50534
51240
|
description: "Find times when people can meet \u2014 Outlook's Scheduling Assistant. Give the attendees, a search window and a duration; Outlook checks everyone's free/busy (and the signed-in user's, as organizer) and returns ranked candidate slots with each attendee's availability. By default only working hours are searched. Use this to answer \"when can X and Y meet?\"; then book with outlook_create_event \u2014 each suggestion carries `createEventArgs` (times, zone and attendees; `subject` too when given here) to pass to it as-is. `start`/`end` are local wall-clock times in `timeZone` (default: the mailbox zone), and returned slots are in that zone too. view: 'raw' returns Outlook's response as-is, without `createEventArgs`. " + UNTRUSTED_DESCRIPTION_SUFFIX,
|
|
50535
51241
|
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
51242
|
+
_meta: workMeta("lookup", { aliases: ["free time", "when can we meet"] }),
|
|
50536
51243
|
inputSchema: external_exports.object({
|
|
50537
51244
|
view: viewParam(VIEWS2),
|
|
50538
51245
|
attendees: attendeeList("required attendees").min(1),
|
|
@@ -50619,6 +51326,7 @@ function registerCalendarTools(server, client2) {
|
|
|
50619
51326
|
{
|
|
50620
51327
|
description: "Get people's free/busy blocks for a time window \u2014 the grid view of Outlook's Scheduling Assistant. Returns each person's busy, tentative and out-of-office items (with subject and location where their calendar shares them). Use outlook_find_meeting_times to have Outlook pick slots instead. `start`/`end` are local wall-clock times in `timeZone` (default: the mailbox zone). " + UNTRUSTED_DESCRIPTION_SUFFIX,
|
|
50621
51328
|
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
51329
|
+
_meta: workMeta("lookup", { aliases: ["free busy", "availability"] }),
|
|
50622
51330
|
inputSchema: external_exports.object({
|
|
50623
51331
|
view: viewParam(VIEWS2),
|
|
50624
51332
|
people: attendeeList("people (or rooms) to look up").min(1).max(100),
|
|
@@ -50669,12 +51377,18 @@ function collection(data, raw) {
|
|
|
50669
51377
|
if (raw) return data;
|
|
50670
51378
|
return plainCollection(data);
|
|
50671
51379
|
}
|
|
51380
|
+
function briefTask(t) {
|
|
51381
|
+
const due = t.DueDateTime;
|
|
51382
|
+
const status = typeof t.Status === "string" && t.Status ? spaced(t.Status) : "no status";
|
|
51383
|
+
return briefLine(typeof t.Subject === "string" ? t.Subject : void 0, briefDate(due?.DateTime), status);
|
|
51384
|
+
}
|
|
50672
51385
|
function registerDirectoryTools(server, client2) {
|
|
50673
51386
|
server.registerTool(
|
|
50674
51387
|
"outlook_get_profile",
|
|
50675
51388
|
{
|
|
50676
51389
|
description: "Get the signed-in mailbox's identity (email address, display name, alias). The cheapest call that proves the credential works.",
|
|
50677
51390
|
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
51391
|
+
_meta: workMeta("lookup"),
|
|
50678
51392
|
inputSchema: external_exports.object({})
|
|
50679
51393
|
},
|
|
50680
51394
|
async () => minifiedResult(stripOData(await client2.get("/me")))
|
|
@@ -50684,6 +51398,7 @@ function registerDirectoryTools(server, client2) {
|
|
|
50684
51398
|
{
|
|
50685
51399
|
description: "Get mailbox settings: time zone, working hours, language, and automatic-replies (out-of-office) configuration.",
|
|
50686
51400
|
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
51401
|
+
_meta: workMeta("lookup", { aliases: ["out of office", "working hours"] }),
|
|
50687
51402
|
inputSchema: external_exports.object({})
|
|
50688
51403
|
},
|
|
50689
51404
|
async () => minifiedResult(stripOData(await client2.get("/me/MailboxSettings")))
|
|
@@ -50693,6 +51408,7 @@ function registerDirectoryTools(server, client2) {
|
|
|
50693
51408
|
{
|
|
50694
51409
|
description: "List saved contacts from the mailbox address book.",
|
|
50695
51410
|
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
51411
|
+
_meta: workMeta("lookup", { aliases: ["contacts", "address book"] }),
|
|
50696
51412
|
inputSchema: external_exports.object({
|
|
50697
51413
|
view: viewParam(VIEWS2),
|
|
50698
51414
|
limit: external_exports.number().int().min(1).max(200).optional().describe("Max contacts (default 50)"),
|
|
@@ -50723,6 +51439,7 @@ function registerDirectoryTools(server, client2) {
|
|
|
50723
51439
|
{
|
|
50724
51440
|
description: 'List people ranked by relevance to the user \u2014 colleagues and frequent correspondents, drawn from mail traffic rather than the saved address book. Better than outlook_list_contacts for resolving "who is X" in a work mailbox.',
|
|
50725
51441
|
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
51442
|
+
_meta: workMeta("lookup"),
|
|
50726
51443
|
inputSchema: external_exports.object({
|
|
50727
51444
|
view: viewParam(VIEWS2),
|
|
50728
51445
|
limit: external_exports.number().int().min(1).max(100).optional().describe("Max people (default 25)"),
|
|
@@ -50749,8 +51466,9 @@ function registerDirectoryTools(server, client2) {
|
|
|
50749
51466
|
{
|
|
50750
51467
|
description: "List Outlook tasks with status and due dates.",
|
|
50751
51468
|
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
51469
|
+
_meta: workMeta("whats-due", { canonical: true, aliases: ["tasks", "to do", "to-dos", "due", "deadlines"] }),
|
|
50752
51470
|
inputSchema: external_exports.object({
|
|
50753
|
-
view:
|
|
51471
|
+
view: briefViewParam(VIEWS2, "A brief status is the task's own (not started, in progress, completed, \u2026)."),
|
|
50754
51472
|
limit: external_exports.number().int().min(1).max(200).optional().describe("Max tasks (default 50)"),
|
|
50755
51473
|
nextLink: nextLinkParam
|
|
50756
51474
|
})
|
|
@@ -50767,6 +51485,7 @@ function registerDirectoryTools(server, client2) {
|
|
|
50767
51485
|
}
|
|
50768
51486
|
}
|
|
50769
51487
|
);
|
|
51488
|
+
if (view === "brief") return briefResult((data?.value ?? []).map(briefTask), Boolean(data?.["@odata.nextLink"]));
|
|
50770
51489
|
return minifiedResult(collection(data, resolveView(view, VIEWS2) === "raw"));
|
|
50771
51490
|
}
|
|
50772
51491
|
);
|
|
@@ -50775,6 +51494,7 @@ function registerDirectoryTools(server, client2) {
|
|
|
50775
51494
|
{
|
|
50776
51495
|
description: "List the mailbox's categories (the master list) with their colours \u2014 the names outlook_update_message can add or remove.",
|
|
50777
51496
|
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
51497
|
+
_meta: workMeta("lookup"),
|
|
50778
51498
|
inputSchema: external_exports.object({})
|
|
50779
51499
|
},
|
|
50780
51500
|
async () => {
|
|
@@ -50908,6 +51628,7 @@ function registerWriteTools(server, client2) {
|
|
|
50908
51628
|
{
|
|
50909
51629
|
description: "Send an email from the signed-in mailbox. " + CONFIRM_FLOW_SENTENCE + " The preview shows exactly what would be sent. " + TIMEOUT_SENTENCE + " " + CONFIRM_INJECTION_RULE,
|
|
50910
51630
|
annotations: { readOnlyHint: false, destructiveHint: true, openWorldHint: true },
|
|
51631
|
+
_meta: workMeta("send", { aliases: ["email", "send an email", "mail"] }),
|
|
50911
51632
|
inputSchema: external_exports.object({
|
|
50912
51633
|
to: recipientList,
|
|
50913
51634
|
cc: recipientList,
|
|
@@ -50953,6 +51674,7 @@ function registerWriteTools(server, client2) {
|
|
|
50953
51674
|
// Self-only and additive, like outlook_reply with draftOnly: nothing is
|
|
50954
51675
|
// overwritten or sent. Not idempotent: a repeat creates a second draft.
|
|
50955
51676
|
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
|
|
51677
|
+
_meta: workMeta("change", { aliases: ["draft", "draft an email"] }),
|
|
50956
51678
|
inputSchema: external_exports.object({
|
|
50957
51679
|
to: recipientList,
|
|
50958
51680
|
cc: recipientList,
|
|
@@ -50981,6 +51703,7 @@ function registerWriteTools(server, client2) {
|
|
|
50981
51703
|
{
|
|
50982
51704
|
description: "Mark a message read or unread. The result is verified by re-reading the message \u2014 a 2xx alone is not proof it persisted. " + CONFIRM_FLOW_SENTENCE,
|
|
50983
51705
|
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
51706
|
+
_meta: workMeta("change"),
|
|
50984
51707
|
inputSchema: external_exports.object({
|
|
50985
51708
|
id: external_exports.string().min(1).describe("Message Id"),
|
|
50986
51709
|
isRead: external_exports.boolean().describe("true to mark read, false to mark unread"),
|
|
@@ -51016,6 +51739,7 @@ function registerWriteTools(server, client2) {
|
|
|
51016
51739
|
{
|
|
51017
51740
|
description: 'Flag, categorise and/or mark read up to 50 messages at once \u2014 the filing step of the triage loop (outlook_list_unread_messages \u2192 act \u2192 update). `flag`: "flagged", "complete" or "none". `categories` replaces a message\'s categories; `addCategories`/`removeCategories` edit each message\'s current list instead (names from outlook_list_categories). Duplicate ids are collapsed, so each message is written once. Each id gets its own result `{ id, ok, error? }`, verified against what Outlook stored; one failure does not stop the rest, but a rejected or missing credential fails the whole call. Only your mailbox changes \u2014 nobody is notified. ' + CONFIRM_FLOW_SENTENCE,
|
|
51018
51741
|
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
51742
|
+
_meta: workMeta("change", { aliases: ["flag", "categorize"] }),
|
|
51019
51743
|
inputSchema: external_exports.object({
|
|
51020
51744
|
messageIds: external_exports.array(external_exports.string().min(1)).min(1).max(50).describe("Message Ids (1 to 50)"),
|
|
51021
51745
|
flag: external_exports.enum(["flagged", "complete", "none"]).optional().describe("Follow-up flag to set"),
|
|
@@ -51095,6 +51819,7 @@ function registerWriteTools(server, client2) {
|
|
|
51095
51819
|
{
|
|
51096
51820
|
description: 'Move a message to another folder (e.g. "archive", "deleteditems", or a folder id from outlook_list_folders). Moving assigns a NEW message id, which is returned. ' + CONFIRM_FLOW_SENTENCE,
|
|
51097
51821
|
annotations: { readOnlyHint: false, destructiveHint: false, openWorldHint: true },
|
|
51822
|
+
_meta: workMeta("change", { aliases: ["file", "archive"] }),
|
|
51098
51823
|
inputSchema: external_exports.object({
|
|
51099
51824
|
id: external_exports.string().min(1).describe("Message Id"),
|
|
51100
51825
|
destination: external_exports.string().min(1).describe('Destination folder id or well-known name (e.g. "archive")'),
|
|
@@ -51134,6 +51859,7 @@ function registerWriteTools(server, client2) {
|
|
|
51134
51859
|
{
|
|
51135
51860
|
description: 'Create a calendar event or meeting. A Microsoft Teams meeting is attached by default (`teamsMeeting: false` to skip) and its join link is returned. `timeZone` takes a WINDOWS zone name such as "Eastern Standard Time", not an IANA name. Attendees are emailed an invitation. To pick a time first, use outlook_find_meeting_times: each suggestion it returns carries `createEventArgs` that can be passed here as-is (add `subject` if the search did not set one). ' + CONFIRM_FLOW_SENTENCE + " " + TIMEOUT_SENTENCE + " " + CONFIRM_INJECTION_RULE,
|
|
51136
51861
|
annotations: { readOnlyHint: false, destructiveHint: true, openWorldHint: true },
|
|
51862
|
+
_meta: workMeta("change", { aliases: ["book a meeting", "schedule a meeting", "invite"] }),
|
|
51137
51863
|
inputSchema: createEventInput
|
|
51138
51864
|
},
|
|
51139
51865
|
async ({ subject, start, end, timeZone, location, body, attendees, optionalAttendees, teamsMeeting, confirmToken }, ctx) => {
|
|
@@ -51191,6 +51917,7 @@ function registerWriteTools(server, client2) {
|
|
|
51191
51917
|
{
|
|
51192
51918
|
description: "Update a meeting you organize: retitle, move, relocate, edit the description, or add/remove attendees. Moving only `start` keeps the meeting's length. It does not add a Microsoft Teams meeting unless you pass `teamsMeeting: true` (on an event that lacks one). Attendees are sent an updated invitation. Only the organizer can update a meeting \u2014 an attendee's edit would change their own copy alone, so it is refused. The result is verified by re-reading the event. " + CONFIRM_FLOW_SENTENCE + " " + CONFIRM_INJECTION_RULE,
|
|
51193
51919
|
annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: true },
|
|
51920
|
+
_meta: workMeta("change", { aliases: ["reschedule", "move the meeting"] }),
|
|
51194
51921
|
inputSchema: external_exports.object({
|
|
51195
51922
|
id: external_exports.string().min(1).describe("Event Id from outlook_list_events or outlook_get_event"),
|
|
51196
51923
|
subject: external_exports.string().optional().describe("New title"),
|
|
@@ -51310,6 +52037,7 @@ function registerWriteTools(server, client2) {
|
|
|
51310
52037
|
{
|
|
51311
52038
|
description: "Accept, tentatively accept or decline a meeting invitation. Pass the invite's `messageId` (from outlook_list_unread_messages, which marks it kind \"meetingRequest\") or the event's `eventId` \u2014 exactly one. The organizer is sent your response unless `sendResponse: false`, in which case only your calendar changes and no confirmation is asked. Cancelled meetings and meetings you organize are refused. The result is verified by re-reading the event's response status; a declined meeting may leave your calendar entirely. Outlook then moves the invite message itself to Deleted Items (under a new id), so an answered invite needs no outlook_mark_read. " + CONFIRM_FLOW_SENTENCE + " " + TIMEOUT_SENTENCE + " " + CONFIRM_INJECTION_RULE,
|
|
51312
52039
|
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
52040
|
+
_meta: workMeta("send", { aliases: ["accept", "decline", "rsvp"] }),
|
|
51313
52041
|
inputSchema: external_exports.object({
|
|
51314
52042
|
messageId: external_exports.string().min(1).optional().describe("Id of the invite message (resolved to its event). Give this or eventId."),
|
|
51315
52043
|
eventId: external_exports.string().min(1).optional().describe("Event Id. Give this or messageId."),
|
|
@@ -51429,6 +52157,7 @@ function registerWriteTools(server, client2) {
|
|
|
51429
52157
|
{
|
|
51430
52158
|
description: `Delete a calendar event. An occurrence's id deletes only that occurrence; a series master's id (Type "SeriesMaster" in outlook_get_event) deletes the WHOLE series. Only the organizer can delete a meeting \u2014 for an invite you received, decline it with outlook_respond_to_invite instead (a meeting the organizer already cancelled can be removed here). Deleting a meeting that has attendees sends each of them a cancellation, so it is confirmed first; your own appointment with no attendees, or a cancelled meeting, is removed without asking because only your calendar changes. The result is verified by re-reading the event. ` + CONFIRM_FLOW_SENTENCE + " " + TIMEOUT_SENTENCE + " " + CONFIRM_INJECTION_RULE,
|
|
51431
52159
|
annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: true },
|
|
52160
|
+
_meta: workMeta("change", { aliases: ["cancel the meeting"] }),
|
|
51432
52161
|
inputSchema: external_exports.object({
|
|
51433
52162
|
id: external_exports.string().min(1).describe("Event Id from outlook_list_events or outlook_get_event (an occurrence, or a series master)"),
|
|
51434
52163
|
confirmToken: confirmTokenParam
|
|
@@ -51496,6 +52225,7 @@ function registerWriteTools(server, client2) {
|
|
|
51496
52225
|
{
|
|
51497
52226
|
description: "Reply, reply-all or forward a message, with `comment` as your new text above the quoted original. Outlook picks the recipients for reply (the sender, or its Reply-To) and reply-all (sender plus the original To and Cc, minus you); a forward needs `to`. `draftOnly: true` leaves the reply in Drafts and returns its id, sending nothing and asking no confirmation; otherwise it is sent at once. " + CONFIRM_FLOW_SENTENCE + " The preview shows the recipients, subject and comment. " + TIMEOUT_SENTENCE + " " + CONFIRM_INJECTION_RULE + " " + UNTRUSTED_DESCRIPTION_SUFFIX,
|
|
51498
52227
|
annotations: { readOnlyHint: false, destructiveHint: true, openWorldHint: true },
|
|
52228
|
+
_meta: workMeta("send", { aliases: ["reply", "reply all", "forward"] }),
|
|
51499
52229
|
inputSchema: external_exports.object({
|
|
51500
52230
|
messageId: external_exports.string().min(1).describe("Id of the message to answer or forward"),
|
|
51501
52231
|
mode: external_exports.enum(["reply", "replyAll", "forward"]).describe("reply (sender only), replyAll, or forward"),
|
|
@@ -52909,6 +53639,7 @@ function registerExportTools(server, client2, opts = {}) {
|
|
|
52909
53639
|
{
|
|
52910
53640
|
description: MESSAGES_DESCRIPTION,
|
|
52911
53641
|
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
53642
|
+
_meta: workMeta("other"),
|
|
52912
53643
|
inputSchema: external_exports.object({
|
|
52913
53644
|
folder: external_exports.string().min(1).optional().describe('Well-known folder name (inbox, sentitems, archive, \u2026) or folder id; "all" exports the whole mailbox. Default inbox. Ignored with `search` (a search spans the mailbox).'),
|
|
52914
53645
|
since: external_exports.string().min(1).optional().describe("Only mail received at or after this ISO 8601 time (no zone = UTC)"),
|
|
@@ -53011,6 +53742,7 @@ function registerExportTools(server, client2, opts = {}) {
|
|
|
53011
53742
|
{
|
|
53012
53743
|
description: EVENTS_DESCRIPTION,
|
|
53013
53744
|
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
53745
|
+
_meta: workMeta("other"),
|
|
53014
53746
|
inputSchema: external_exports.object({
|
|
53015
53747
|
since: external_exports.string().min(1).optional().describe("Window start, ISO 8601 (no zone = UTC). Required unless `cursor` is given."),
|
|
53016
53748
|
until: external_exports.string().min(1).optional().describe("Window end, ISO 8601 (no zone = UTC); at most two years after `since`. Required unless `cursor` is given."),
|
|
@@ -53119,7 +53851,7 @@ await runMcp({
|
|
|
53119
53851
|
});
|
|
53120
53852
|
/*! Bundled license information:
|
|
53121
53853
|
|
|
53122
|
-
@modelcontextprotocol/server/dist/src-
|
|
53854
|
+
@modelcontextprotocol/server/dist/src-DdvbAHrR.mjs:
|
|
53123
53855
|
(*!
|
|
53124
53856
|
* content-type
|
|
53125
53857
|
* Copyright(c) 2015 Douglas Christopher Wilson
|