@buun_group/plotwork-mcp 0.2.0-beta.1 → 0.2.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.
@@ -1,6 +1,6 @@
1
1
  # Third-party notices
2
2
 
3
- @buun_group/plotwork-mcp 0.2.0-beta.1 is licensed under the MIT licence, in the file LICENSE. The single file plotwork-mcp.mjs also contains code and data from other people. This file lists them, with the licence each is used under and the full licence text. Those licences apply to that material. The MIT licence of @buun_group/plotwork-mcp does not replace them, and it does not cover the vendor artwork described under "Trademarks and official icons".
3
+ @buun_group/plotwork-mcp 0.2.0 is licensed under the MIT licence, in the file LICENSE. The single file plotwork-mcp.mjs also contains code and data from other people. This file lists them, with the licence each is used under and the full licence text. Those licences apply to that material. The MIT licence of @buun_group/plotwork-mcp does not replace them, and it does not cover the vendor artwork described under "Trademarks and official icons".
4
4
 
5
5
  The build writes this file from the contents of the bundle. Do not edit it.
6
6
 
@@ -9,7 +9,7 @@ The build writes this file from the contents of the bundle. Do not edit it.
9
9
  | Question | Answer |
10
10
  |---|---|
11
11
  | Which licence covers the Plotwork code? | MIT, in the file LICENSE. |
12
- | Which third-party code is in the bundle? | 4 npm packages: @modelcontextprotocol/core 2.2.0, @modelcontextprotocol/server 2.2.0, elkjs 0.12.0, zod 4.6.5. |
12
+ | Which third-party code is in the bundle? | 4 npm packages: @modelcontextprotocol/core 2.3.1, @modelcontextprotocol/server 2.3.1, elkjs 0.12.0, zod 4.6.5. |
13
13
  | Which third-party data is in the bundle? | Lucide icons; Simple Icons; SVG Logos, through @iconify-json/logos; IBM Carbon icons, through @iconify-json/carbon; Inter font metrics; JetBrains Mono font metrics. |
14
14
  | Are official vendor icons in the bundle? | Yes: AWS, Microsoft Azure, Google Cloud. They are not covered by the MIT licence. |
15
15
  | Where is the full text of each licence? | Under "Licence texts" at the end of this file. |
@@ -18,8 +18,8 @@ The build writes this file from the contents of the bundle. Do not edit it.
18
18
 
19
19
  | Component | Version | Kind | Used under | Licence text |
20
20
  |---|---|---|---|---|
21
- | @modelcontextprotocol/core | 2.2.0 | Code | MIT AND Apache-2.0 | [text 1](#licence-text-1) |
22
- | @modelcontextprotocol/server | 2.2.0 | Code | MIT AND Apache-2.0 | [text 1](#licence-text-1) |
21
+ | @modelcontextprotocol/core | 2.3.1 | Code | MIT AND Apache-2.0 | [text 1](#licence-text-1) |
22
+ | @modelcontextprotocol/server | 2.3.1 | Code | MIT AND Apache-2.0 | [text 1](#licence-text-1) |
23
23
  | elkjs | 0.12.0 | Code | EPL-2.0 | [text 2](#licence-text-2), [text 3](#licence-text-3) |
24
24
  | zod | 4.6.5 | Code | MIT | [text 4](#licence-text-4) |
25
25
  | Lucide icons | 1.49.0 | Data | ISC | [text 5](#licence-text-5) |
@@ -31,9 +31,9 @@ The build writes this file from the contents of the bundle. Do not edit it.
31
31
 
32
32
  ## Software in the bundle
33
33
 
34
- ### @modelcontextprotocol/core 2.2.0
34
+ ### @modelcontextprotocol/core 2.3.1
35
35
 
36
- - Licence declared: MIT
36
+ - Licence declared: Apache-2.0
37
37
  - Used under: MIT AND Apache-2.0
38
38
  - Repository: https://github.com/modelcontextprotocol/typescript-sdk
39
39
  - Copyright: Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC.
@@ -42,9 +42,9 @@ The build writes this file from the contents of the bundle. Do not edit it.
42
42
  - The package.json says MIT. The licence file says the project is moving from MIT to Apache-2.0: new code is Apache-2.0, and code whose authors have not agreed to relicense stays MIT. Both licences are reproduced and both apply.
43
43
  - The same file licenses the project's documentation under CC-BY-4.0. No documentation is part of the bundle.
44
44
 
45
- ### @modelcontextprotocol/server 2.2.0
45
+ ### @modelcontextprotocol/server 2.3.1
46
46
 
47
- - Licence declared: MIT
47
+ - Licence declared: Apache-2.0
48
48
  - Used under: MIT AND Apache-2.0
49
49
  - Repository: https://github.com/modelcontextprotocol/typescript-sdk
50
50
  - Copyright: Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC.
@@ -201,7 +201,7 @@ The vendor artwork below is NOT covered by the MIT licence of @buun_group/plotwo
201
201
 
202
202
  ### Licence text 1
203
203
 
204
- Licences in this text: Apache-2.0, MIT. Used by: @modelcontextprotocol/core 2.2.0, @modelcontextprotocol/server 2.2.0.
204
+ Licences in this text: Apache-2.0, MIT. Used by: @modelcontextprotocol/core 2.3.1, @modelcontextprotocol/server 2.3.1.
205
205
 
206
206
  ```text
207
207
  The MCP project is undergoing a licensing transition from the MIT License to the Apache License, Version 2.0 ("Apache-2.0"). All new code and specification contributions to the project are licensed under Apache-2.0. Documentation contributions (excluding specifications) are licensed under CC-BY-4.0.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buun_group/plotwork-mcp",
3
- "version": "0.2.0-beta.1",
3
+ "version": "0.2.0",
4
4
  "description": "No API key and no account. Plotwork MCP server for local use over stdio: read-only tools that draw, validate, outline, convert, and render twenty kinds of diagram, from flow, sequence, and database to Gantt, state, mind map, and treemap. It sends nothing unless you opt in.",
5
5
  "mcpName": "dev.plotwork/mcp",
6
6
  "license": "MIT",
package/plotwork-mcp.mjs CHANGED
@@ -65,7 +65,7 @@ var init_icon_art_folder = __esm({
65
65
  var package_default;
66
66
  var init_package = __esm({
67
67
  "package.json"() {
68
- package_default = { version: "0.2.0-beta.1" };
68
+ package_default = { version: "0.2.0" };
69
69
  }
70
70
  });
71
71
 
@@ -163399,10 +163399,10 @@ var init_files = __esm({
163399
163399
  }
163400
163400
  });
163401
163401
 
163402
- // ../../node_modules/.pnpm/@modelcontextprotocol+server@2.2.0/node_modules/@modelcontextprotocol/server/dist/chunk-Br0eD_fh.mjs
163402
+ // ../../node_modules/.pnpm/@modelcontextprotocol+server@2.3.1/node_modules/@modelcontextprotocol/server/dist/chunk-Br0eD_fh.mjs
163403
163403
  var __create2, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __getProtoOf2, __hasOwnProp2, __commonJSMin, __exportAll, __copyProps2, __toESM2;
163404
163404
  var init_chunk_Br0eD_fh = __esm({
163405
- "../../node_modules/.pnpm/@modelcontextprotocol+server@2.2.0/node_modules/@modelcontextprotocol/server/dist/chunk-Br0eD_fh.mjs"() {
163405
+ "../../node_modules/.pnpm/@modelcontextprotocol+server@2.3.1/node_modules/@modelcontextprotocol/server/dist/chunk-Br0eD_fh.mjs"() {
163406
163406
  __create2 = Object.create;
163407
163407
  __defProp2 = Object.defineProperty;
163408
163408
  __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -163444,7 +163444,7 @@ var init_chunk_Br0eD_fh = __esm({
163444
163444
  }
163445
163445
  });
163446
163446
 
163447
- // ../../node_modules/.pnpm/@modelcontextprotocol+server@2.2.0/node_modules/@modelcontextprotocol/server/dist/dialects-DoSzNhcb.mjs
163447
+ // ../../node_modules/.pnpm/@modelcontextprotocol+server@2.3.1/node_modules/@modelcontextprotocol/server/dist/dialects-DoSzNhcb.mjs
163448
163448
  function declares2019Dialect($schema) {
163449
163449
  return typeof $schema === "string" && DRAFT_2019_09_URIS.has($schema.replace(/#$/, ""));
163450
163450
  }
@@ -163458,7 +163458,7 @@ function declaredDialect(schema, remedy) {
163458
163458
  }
163459
163459
  var DRAFT_2020_12_URIS, DRAFT_2019_09_URIS, DRAFT_07_URIS, DRAFT_06_URIS;
163460
163460
  var init_dialects_DoSzNhcb = __esm({
163461
- "../../node_modules/.pnpm/@modelcontextprotocol+server@2.2.0/node_modules/@modelcontextprotocol/server/dist/dialects-DoSzNhcb.mjs"() {
163461
+ "../../node_modules/.pnpm/@modelcontextprotocol+server@2.3.1/node_modules/@modelcontextprotocol/server/dist/dialects-DoSzNhcb.mjs"() {
163462
163462
  DRAFT_2020_12_URIS = /* @__PURE__ */ new Set(["https://json-schema.org/draft/2020-12/schema", "http://json-schema.org/draft/2020-12/schema"]);
163463
163463
  DRAFT_2019_09_URIS = /* @__PURE__ */ new Set(["https://json-schema.org/draft/2019-09/schema", "http://json-schema.org/draft/2019-09/schema"]);
163464
163464
  DRAFT_07_URIS = /* @__PURE__ */ new Set(["https://json-schema.org/draft-07/schema", "http://json-schema.org/draft-07/schema"]);
@@ -163480,10 +163480,10 @@ var init_v4 = __esm({
163480
163480
  }
163481
163481
  });
163482
163482
 
163483
- // ../../node_modules/.pnpm/@modelcontextprotocol+core@2.2.0/node_modules/@modelcontextprotocol/core/dist/auth-BNDyLTqp.mjs
163483
+ // ../../node_modules/.pnpm/@modelcontextprotocol+core@2.3.1/node_modules/@modelcontextprotocol/core/dist/auth-BNDyLTqp.mjs
163484
163484
  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, SafeUrlSchema, OAuthProtectedResourceMetadataSchema, OAuthMetadataSchema, OpenIdProviderMetadataSchema, OpenIdProviderDiscoveryMetadataSchema, OAuthTokensSchema, IdJagTokenExchangeResponseSchema, OAuthErrorResponseSchema, OptionalSafeUrlSchema, OAuthClientMetadataSchema, OAuthClientInformationSchema, OAuthClientInformationFullSchema, OAuthClientRegistrationErrorSchema, OAuthTokenRevocationRequestSchema;
163485
163485
  var init_auth_BNDyLTqp = __esm({
163486
- "../../node_modules/.pnpm/@modelcontextprotocol+core@2.2.0/node_modules/@modelcontextprotocol/core/dist/auth-BNDyLTqp.mjs"() {
163486
+ "../../node_modules/.pnpm/@modelcontextprotocol+core@2.3.1/node_modules/@modelcontextprotocol/core/dist/auth-BNDyLTqp.mjs"() {
163487
163487
  init_v4();
163488
163488
  LATEST_PROTOCOL_VERSION = "2025-11-25";
163489
163489
  SUPPORTED_PROTOCOL_VERSIONS = [
@@ -164427,14 +164427,14 @@ var init_auth_BNDyLTqp = __esm({
164427
164427
  }
164428
164428
  });
164429
164429
 
164430
- // ../../node_modules/.pnpm/@modelcontextprotocol+core@2.2.0/node_modules/@modelcontextprotocol/core/dist/internal.mjs
164430
+ // ../../node_modules/.pnpm/@modelcontextprotocol+core@2.3.1/node_modules/@modelcontextprotocol/core/dist/internal.mjs
164431
164431
  var init_internal = __esm({
164432
- "../../node_modules/.pnpm/@modelcontextprotocol+core@2.2.0/node_modules/@modelcontextprotocol/core/dist/internal.mjs"() {
164432
+ "../../node_modules/.pnpm/@modelcontextprotocol+core@2.3.1/node_modules/@modelcontextprotocol/core/dist/internal.mjs"() {
164433
164433
  init_auth_BNDyLTqp();
164434
164434
  }
164435
164435
  });
164436
164436
 
164437
- // ../../node_modules/.pnpm/@modelcontextprotocol+server@2.2.0/node_modules/@modelcontextprotocol/server/dist/src-BHSMhZ_W.mjs
164437
+ // ../../node_modules/.pnpm/@modelcontextprotocol+server@2.3.1/node_modules/@modelcontextprotocol/server/dist/src-Cqbh3MYc.mjs
164438
164438
  function stampErrorBrands(instance, ctor) {
164439
164439
  const brands = /* @__PURE__ */ new Set();
164440
164440
  let current = ctor;
@@ -166414,7 +166414,8 @@ function build() {
166414
166414
  ListResourceTemplatesResultResponseSchema: wireResultResponse(ListResourceTemplatesResultSchema$1),
166415
166415
  ReadResourceResultResponseSchema: wireResultResponse(union([ReadResourceResultSchema$1, InputRequiredResultSchema])),
166416
166416
  CompleteResultResponseSchema: wireResultResponse(CompleteResultSchema$1),
166417
- DiscoverResultResponseSchema: wireResultResponse(DiscoverResultSchema$1)
166417
+ DiscoverResultResponseSchema: wireResultResponse(DiscoverResultSchema$1),
166418
+ SubscriptionsListenResultResponseSchema: wireResultResponse(SubscriptionsListenResultSchema$1)
166418
166419
  };
166419
166420
  }
166420
166421
  function buildSchemas2026() {
@@ -166633,6 +166634,9 @@ function isSpecRequestMethod(method) {
166633
166634
  function isSpecNotificationMethod(method) {
166634
166635
  return ALL_CODECS.some((codec2) => codec2.hasNotificationMethod(method));
166635
166636
  }
166637
+ function isExtensionReusedRequestMethod(method) {
166638
+ return method === "tasks/get" || method === "tasks/cancel";
166639
+ }
166636
166640
  function isPlainObject$3(value) {
166637
166641
  return value !== null && typeof value === "object" && !Array.isArray(value);
166638
166642
  }
@@ -167191,8 +167195,8 @@ function fromJsonSchema(schema, validator) {
167191
167195
  } };
167192
167196
  }
167193
167197
  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;
167194
- var init_src_BHSMhZ_W = __esm({
167195
- "../../node_modules/.pnpm/@modelcontextprotocol+server@2.2.0/node_modules/@modelcontextprotocol/server/dist/src-BHSMhZ_W.mjs"() {
167198
+ var init_src_Cqbh3MYc = __esm({
167199
+ "../../node_modules/.pnpm/@modelcontextprotocol+server@2.3.1/node_modules/@modelcontextprotocol/server/dist/src-Cqbh3MYc.mjs"() {
167196
167200
  init_chunk_Br0eD_fh();
167197
167201
  init_dialects_DoSzNhcb();
167198
167202
  init_internal();
@@ -168292,6 +168296,8 @@ var init_src_BHSMhZ_W = __esm({
168292
168296
  _transport;
168293
168297
  _requestMessageId = 0;
168294
168298
  _requestHandlers = /* @__PURE__ */ new Map();
168299
+ /** Methods registered with an explicit schema; the era gate in `_onrequest` reads it for the Tasks extension names. */
168300
+ _customSchemaRequestMethods = /* @__PURE__ */ new Set();
168295
168301
  _requestHandlerAbortControllers = /* @__PURE__ */ new Map();
168296
168302
  _notificationHandlers = /* @__PURE__ */ new Map();
168297
168303
  _responseHandlers = /* @__PURE__ */ new Map();
@@ -168575,7 +168581,7 @@ var init_src_BHSMhZ_W = __esm({
168575
168581
  return;
168576
168582
  }
168577
168583
  }
168578
- if (isSpecRequestMethod(request.method) && !codec2.hasRequestMethod(request.method)) {
168584
+ if (isSpecRequestMethod(request.method) && !codec2.hasRequestMethod(request.method) && !(isExtensionReusedRequestMethod(request.method) && this._customSchemaRequestMethods.has(request.method))) {
168579
168585
  sendErrorResponse(ProtocolErrorCode.MethodNotFound, "Method not found");
168580
168586
  return;
168581
168587
  }
@@ -168708,8 +168714,11 @@ var init_src_BHSMhZ_W = __esm({
168708
168714
  }
168709
168715
  request(request, schemaOrOptions, maybeOptions) {
168710
168716
  const codec2 = this._resolveOutboundCodec(request.method);
168717
+ if (isStandardSchema(schemaOrOptions)) {
168718
+ if (!isExtensionReusedRequestMethod(request.method)) this._assertOutboundRequestInEra(codec2, request.method);
168719
+ return this._requestWithSchemaViaCodec(codec2, request, schemaOrOptions, maybeOptions);
168720
+ }
168711
168721
  this._assertOutboundRequestInEra(codec2, request.method);
168712
- if (isStandardSchema(schemaOrOptions)) return this._requestWithSchemaViaCodec(codec2, request, schemaOrOptions, maybeOptions);
168713
168722
  const validate2 = codecResultValidator(codec2, request.method);
168714
168723
  if (validate2 === void 0) throw new TypeError(`'${request.method}' is not a spec method; pass a result schema as the second argument to request().`);
168715
168724
  return this._requestWithSchemaViaCodec(codec2, request, validate2, schemaOrOptions);
@@ -168953,6 +168962,8 @@ var init_src_BHSMhZ_W = __esm({
168953
168962
  return maybeHandler(parsed.data, ctx);
168954
168963
  };
168955
168964
  else throw new TypeError("setRequestHandler: handler is required");
168965
+ if (typeof schemasOrHandler === "function") this._customSchemaRequestMethods.delete(method);
168966
+ else this._customSchemaRequestMethods.add(method);
168956
168967
  this._requestHandlers.set(method, this._wrapHandler(method, stored));
168957
168968
  }
168958
168969
  /**
@@ -168982,6 +168993,7 @@ var init_src_BHSMhZ_W = __esm({
168982
168993
  */
168983
168994
  removeRequestHandler(method) {
168984
168995
  this._requestHandlers.delete(method);
168996
+ this._customSchemaRequestMethods.delete(method);
168985
168997
  }
168986
168998
  /**
168987
168999
  * Asserts that a request handler has not already been set for the given method, in preparation for a new one being automatically installed.
@@ -169099,7 +169111,7 @@ var init_src_BHSMhZ_W = __esm({
169099
169111
  }
169100
169112
  });
169101
169113
 
169102
- // ../../node_modules/.pnpm/@modelcontextprotocol+server@2.2.0/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CEoC__sr.mjs
169114
+ // ../../node_modules/.pnpm/@modelcontextprotocol+server@2.3.1/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CEoC__sr.mjs
169103
169115
  function createDefaultAjvInstance(engineClass) {
169104
169116
  const ajv = new engineClass({
169105
169117
  strict: false,
@@ -169112,7 +169124,7 @@ function createDefaultAjvInstance(engineClass) {
169112
169124
  }
169113
169125
  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;
169114
169126
  var init_ajvProvider_CEoC_sr = __esm({
169115
- "../../node_modules/.pnpm/@modelcontextprotocol+server@2.2.0/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CEoC__sr.mjs"() {
169127
+ "../../node_modules/.pnpm/@modelcontextprotocol+server@2.3.1/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CEoC__sr.mjs"() {
169116
169128
  init_chunk_Br0eD_fh();
169117
169129
  init_dialects_DoSzNhcb();
169118
169130
  require_code$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -176116,15 +176128,15 @@ var init_ajvProvider_CEoC_sr = __esm({
176116
176128
  }
176117
176129
  });
176118
176130
 
176119
- // ../../node_modules/.pnpm/@modelcontextprotocol+server@2.2.0/node_modules/@modelcontextprotocol/server/dist/shimsNode.mjs
176131
+ // ../../node_modules/.pnpm/@modelcontextprotocol+server@2.3.1/node_modules/@modelcontextprotocol/server/dist/shimsNode.mjs
176120
176132
  import process2 from "node:process";
176121
176133
  var init_shimsNode = __esm({
176122
- "../../node_modules/.pnpm/@modelcontextprotocol+server@2.2.0/node_modules/@modelcontextprotocol/server/dist/shimsNode.mjs"() {
176134
+ "../../node_modules/.pnpm/@modelcontextprotocol+server@2.3.1/node_modules/@modelcontextprotocol/server/dist/shimsNode.mjs"() {
176123
176135
  init_ajvProvider_CEoC_sr();
176124
176136
  }
176125
176137
  });
176126
176138
 
176127
- // ../../node_modules/.pnpm/@modelcontextprotocol+server@2.2.0/node_modules/@modelcontextprotocol/server/dist/mcp-DYuW2ZSs.mjs
176139
+ // ../../node_modules/.pnpm/@modelcontextprotocol+server@2.3.1/node_modules/@modelcontextprotocol/server/dist/mcp-DIH4cS6P.mjs
176128
176140
  function isCompletable(schema) {
176129
176141
  return !!schema && typeof schema === "object" && COMPLETABLE_SYMBOL in schema;
176130
176142
  }
@@ -176234,6 +176246,30 @@ function serverIdentityOf(server) {
176234
176246
  function discoverAdvertisedCapabilities(capabilities) {
176235
176247
  return { ...capabilities };
176236
176248
  }
176249
+ function toolInputElementCount(value, max) {
176250
+ let count3 = 0;
176251
+ const stack = [value];
176252
+ while (stack.length > 0) {
176253
+ const node3 = stack.pop();
176254
+ if (node3 === null || typeof node3 !== "object") continue;
176255
+ if (Array.isArray(node3)) for (const child of node3) {
176256
+ if (++count3 > max) return count3;
176257
+ if (child !== null && typeof child === "object") stack.push(child);
176258
+ }
176259
+ else for (const key in node3) {
176260
+ if (!Object.prototype.hasOwnProperty.call(node3, key)) continue;
176261
+ if (++count3 > max) return count3;
176262
+ const child = node3[key];
176263
+ if (child !== null && typeof child === "object") stack.push(child);
176264
+ }
176265
+ }
176266
+ return count3;
176267
+ }
176268
+ function resolveMaxToolInputElements(value) {
176269
+ if (value === void 0 || value === Infinity) return void 0;
176270
+ if (typeof value !== "number" || Number.isNaN(value) || value < 1) throw new RangeError(`maxToolInputElements must be a number of at least 1, or Infinity, got ${String(value)}`);
176271
+ return value;
176272
+ }
176237
176273
  function createToolExecutor(inputSchema, handler) {
176238
176274
  if (inputSchema) {
176239
176275
  const callback$1 = handler;
@@ -176242,6 +176278,12 @@ function createToolExecutor(inputSchema, handler) {
176242
176278
  const callback = handler;
176243
176279
  return async (_args, ctx) => callback(ctx);
176244
176280
  }
176281
+ function convertListedInputSchema(name2, inputSchema) {
176282
+ const json2 = standardSchemaToJsonSchema(inputSchema, "input");
176283
+ const scan = scanXMcpHeaderDeclarations(json2);
176284
+ if (!scan.valid) console.warn(`[mcp-sdk] tool '${name2}' carries an invalid x-mcp-header declaration and will be excluded by conforming Streamable HTTP clients: ${scan.reason}`);
176285
+ return json2;
176286
+ }
176245
176287
  function convertOutputSchemaJson(outputSchema) {
176246
176288
  if (outputSchema === void 0) return void 0;
176247
176289
  try {
@@ -176254,7 +176296,7 @@ function createPromptHandler(name2, argsSchema, callback) {
176254
176296
  if (argsSchema) {
176255
176297
  const typedCallback = callback;
176256
176298
  return async (args, ctx) => {
176257
- const parseResult = await validateStandardSchema(argsSchema, args);
176299
+ const parseResult = await validateStandardSchema(argsSchema, args ?? {});
176258
176300
  if (!parseResult.success) throw new ProtocolError(ProtocolErrorCode.InvalidParams, `Invalid arguments for prompt ${name2}: ${parseResult.error}`);
176259
176301
  return typedCallback(parseResult.data, ctx);
176260
176302
  };
@@ -176284,9 +176326,9 @@ function unwrapOptionalSchema(schema) {
176284
176326
  return schema.def?.innerType ?? schema;
176285
176327
  }
176286
176328
  var COMPLETABLE_SYMBOL, MAX_TIMER_DELAY_MS, DEFAULT_MAX_SUBSCRIPTIONS, CHANGE_NOTIFICATION_METHODS, StdioListenRouter, 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;
176287
- var init_mcp_DYuW2ZSs = __esm({
176288
- "../../node_modules/.pnpm/@modelcontextprotocol+server@2.2.0/node_modules/@modelcontextprotocol/server/dist/mcp-DYuW2ZSs.mjs"() {
176289
- init_src_BHSMhZ_W();
176329
+ var init_mcp_DIH4cS6P = __esm({
176330
+ "../../node_modules/.pnpm/@modelcontextprotocol+server@2.3.1/node_modules/@modelcontextprotocol/server/dist/mcp-DIH4cS6P.mjs"() {
176331
+ init_src_Cqbh3MYc();
176290
176332
  init_shimsNode();
176291
176333
  COMPLETABLE_SYMBOL = /* @__PURE__ */ Symbol.for("mcp.completable");
176292
176334
  MAX_TIMER_DELAY_MS = 2 ** 31 - 1;
@@ -176309,7 +176351,7 @@ var init_mcp_DYuW2ZSs = __esm({
176309
176351
  _serverCapabilities;
176310
176352
  /**
176311
176353
  * The serving instance's identity, stamped onto the graceful-close
176312
- * results' `_meta` (the spec's `SubscriptionsListenResultMeta` extends
176354
+ * results' `_meta` (the spec's `SubscriptionsListenResultMetaObject` extends
176313
176355
  * `ResultMetaObject`). Handed over together with the capabilities.
176314
176356
  */
176315
176357
  _serverInfo;
@@ -176575,6 +176617,11 @@ var init_mcp_DYuW2ZSs = __esm({
176575
176617
  if (modernProtocolVersions(this._supportedProtocolVersions).length > 0) this.setRequestHandler("server/discover", () => this._ondiscover());
176576
176618
  if (this._capabilities.logging) this._registerLoggingHandler();
176577
176619
  }
176620
+ /** Attaches to the given transport; rejects while this instance is connected to another one. */
176621
+ async connect(transport) {
176622
+ 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.");
176623
+ await super.connect(transport);
176624
+ }
176578
176625
  /**
176579
176626
  * Registers the built-in `logging/setLevel` request handler.
176580
176627
  *
@@ -177130,16 +177177,12 @@ var init_mcp_DYuW2ZSs = __esm({
177130
177177
  * The underlying {@linkcode Server} instance, useful for advanced operations like sending notifications.
177131
177178
  */
177132
177179
  server;
177180
+ _maxToolInputElements;
177133
177181
  _registeredResources = {};
177134
177182
  _registeredResourceTemplates = {};
177135
177183
  _registeredTools = {};
177136
177184
  _registeredPrompts = {};
177137
- /**
177138
- * Per-tool JSON-converted `inputSchema`, memoized so the SEP-2243
177139
- * registration-time scan and the pre-dispatch validation step share one
177140
- * conversion instead of paying it twice per request under the
177141
- * per-request-factory `createMcpHandler` model.
177142
- */
177185
+ /** Per-tool JSON-converted `inputSchema`, filled on first use by `toolInputSchemaJson()`. */
177143
177186
  _toolInputSchemaJson = {};
177144
177187
  /**
177145
177188
  * The JSON-serialized `inputSchema` of a registered tool, or `undefined`
@@ -177164,6 +177207,7 @@ var init_mcp_DYuW2ZSs = __esm({
177164
177207
  }
177165
177208
  constructor(serverInfo, options3) {
177166
177209
  this.server = new Server(serverInfo, options3);
177210
+ this._maxToolInputElements = resolveMaxToolInputElements(options3?.maxToolInputElements);
177167
177211
  if (options3?.capabilities?.tools) this.setToolRequestHandlers();
177168
177212
  if (options3?.capabilities?.resources) this.setResourceRequestHandlers();
177169
177213
  if (options3?.capabilities?.prompts) this.setPromptRequestHandlers();
@@ -177236,7 +177280,7 @@ var init_mcp_DYuW2ZSs = __esm({
177236
177280
  name: name2,
177237
177281
  title: tool.title,
177238
177282
  description: tool.description,
177239
- inputSchema: tool.inputSchema ? standardSchemaToJsonSchema(tool.inputSchema, "input") : EMPTY_OBJECT_JSON_SCHEMA,
177283
+ inputSchema: tool.inputSchema ? convertListedInputSchema(name2, tool.inputSchema) : EMPTY_OBJECT_JSON_SCHEMA,
177240
177284
  annotations: tool.annotations,
177241
177285
  icons: tool.icons,
177242
177286
  execution: tool.execution,
@@ -177281,6 +177325,7 @@ var init_mcp_DYuW2ZSs = __esm({
177281
177325
  * Validates tool input arguments against the tool's input schema.
177282
177326
  */
177283
177327
  async validateToolInput(tool, args, toolName) {
177328
+ if (this._maxToolInputElements !== void 0 && toolInputElementCount(args, this._maxToolInputElements) > this._maxToolInputElements) throw new ProtocolError(ProtocolErrorCode.InvalidParams, `Invalid arguments for tool ${toolName}: arguments contain more than the maximum of ${this._maxToolInputElements} elements`);
177284
177329
  if (!tool.inputSchema) return;
177285
177330
  const parseResult = await validateStandardSchema(tool.inputSchema, args ?? {});
177286
177331
  if (!parseResult.success) throw new ProtocolError(ProtocolErrorCode.InvalidParams, `Input validation error: Invalid arguments for tool ${toolName}: ${parseResult.error}`);
@@ -177555,20 +177600,19 @@ var init_mcp_DYuW2ZSs = __esm({
177555
177600
  }
177556
177601
  _createRegisteredTool(name2, title, description, inputSchema, outputSchema, annotations, icons, execution, scopeChallenge, _meta, handler) {
177557
177602
  validateAndWarnToolName(name2);
177558
- if (inputSchema !== void 0) try {
177559
- const json2 = standardSchemaToJsonSchema(inputSchema, "input");
177560
- this._toolInputSchemaJson[name2] = json2;
177561
- const scan = scanXMcpHeaderDeclarations(json2);
177562
- if (!scan.valid) console.warn(`[mcp-sdk] tool '${name2}' carries an invalid x-mcp-header declaration and will be excluded by conforming Streamable HTTP clients: ${scan.reason}`);
177563
- } catch {
177564
- }
177565
177603
  let currentHandler = handler;
177604
+ let outputSchemaJson;
177566
177605
  const registeredTool = {
177567
177606
  title,
177568
177607
  description,
177569
177608
  inputSchema,
177570
177609
  outputSchema,
177571
- outputSchemaJson: convertOutputSchemaJson(outputSchema),
177610
+ get outputSchemaJson() {
177611
+ return outputSchemaJson ??= convertOutputSchemaJson(registeredTool.outputSchema);
177612
+ },
177613
+ set outputSchemaJson(value) {
177614
+ outputSchemaJson = value;
177615
+ },
177572
177616
  annotations,
177573
177617
  icons,
177574
177618
  execution,
@@ -177694,7 +177738,7 @@ var init_mcp_DYuW2ZSs = __esm({
177694
177738
  }
177695
177739
  });
177696
177740
 
177697
- // ../../node_modules/.pnpm/@modelcontextprotocol+server@2.2.0/node_modules/@modelcontextprotocol/server/dist/stdio.mjs
177741
+ // ../../node_modules/.pnpm/@modelcontextprotocol+server@2.3.1/node_modules/@modelcontextprotocol/server/dist/stdio.mjs
177698
177742
  function classifyOpeningMessage(message2) {
177699
177743
  const params = message2.params;
177700
177744
  if (message2.method === "initialize" && !carriesValidModernEnvelopeClaim(params)) {
@@ -178011,9 +178055,9 @@ function toError(value) {
178011
178055
  }
178012
178056
  var swallowsErrorsAfterClose, StdioServerTransport, DISCARD_ANSWER_TIMEOUT_MS, StdioConnectionChannel;
178013
178057
  var init_stdio = __esm({
178014
- "../../node_modules/.pnpm/@modelcontextprotocol+server@2.2.0/node_modules/@modelcontextprotocol/server/dist/stdio.mjs"() {
178015
- init_mcp_DYuW2ZSs();
178016
- init_src_BHSMhZ_W();
178058
+ "../../node_modules/.pnpm/@modelcontextprotocol+server@2.3.1/node_modules/@modelcontextprotocol/server/dist/stdio.mjs"() {
178059
+ init_mcp_DIH4cS6P();
178060
+ init_src_Cqbh3MYc();
178017
178061
  init_shimsNode();
178018
178062
  swallowsErrorsAfterClose = /* @__PURE__ */ Symbol("swallowsErrorsAfterClose");
178019
178063
  StdioServerTransport = class {
@@ -201147,15 +201191,15 @@ var init_audit = __esm({
201147
201191
  }
201148
201192
  });
201149
201193
 
201150
- // ../../node_modules/.pnpm/@modelcontextprotocol+server@2.2.0/node_modules/@modelcontextprotocol/server/dist/index.mjs
201194
+ // ../../node_modules/.pnpm/@modelcontextprotocol+server@2.3.1/node_modules/@modelcontextprotocol/server/dist/index.mjs
201151
201195
  function fromJsonSchema2(schema, validator) {
201152
201196
  return fromJsonSchema(schema, validator ?? (_defaultValidator ??= new AjvJsonSchemaValidator()));
201153
201197
  }
201154
201198
  var DEFAULT_MAX_REQUEST_BODY_SIZE, _defaultValidator;
201155
201199
  var init_dist = __esm({
201156
- "../../node_modules/.pnpm/@modelcontextprotocol+server@2.2.0/node_modules/@modelcontextprotocol/server/dist/index.mjs"() {
201157
- init_mcp_DYuW2ZSs();
201158
- init_src_BHSMhZ_W();
201200
+ "../../node_modules/.pnpm/@modelcontextprotocol+server@2.3.1/node_modules/@modelcontextprotocol/server/dist/index.mjs"() {
201201
+ init_mcp_DIH4cS6P();
201202
+ init_src_Cqbh3MYc();
201159
201203
  init_shimsNode();
201160
201204
  DEFAULT_MAX_REQUEST_BODY_SIZE = 4 * 1024 * 1024;
201161
201205
  }
@@ -202544,7 +202588,7 @@ async function main(args) {
202544
202588
  await main(process.argv.slice(2));
202545
202589
  /*! Bundled license information:
202546
202590
 
202547
- @modelcontextprotocol/server/dist/src-BHSMhZ_W.mjs:
202591
+ @modelcontextprotocol/server/dist/src-Cqbh3MYc.mjs:
202548
202592
  (*!
202549
202593
  * content-type
202550
202594
  * Copyright(c) 2015 Douglas Christopher Wilson