@kopai/mcp 0.4.2 → 0.5.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/dist/index.d.cts CHANGED
@@ -61,15 +61,33 @@ export declare const LIMITS: {
61
61
  */
62
62
  export declare const MAX_RESULT_CHARACTERS = 150000;
63
63
  /**
64
- * Remedies for a discovery listing too large even with the attributes gone.
64
+ * Caps on `metrics_discover`'s string arguments, in Unicode code points: the
65
+ * unit JSON Schema's `maxLength` counts, so the advertised schema and the
66
+ * handler agree on what is too long. A UTF-16 count would refuse a 200-emoji
67
+ * `service` the schema had just accepted.
65
68
  *
66
- * WHY its own list: `metrics_discover` takes no arguments, so every line in
67
- * `SIZE_REMEDIES` names a field the caller cannot set — a `limit`, a window, a
68
- * `granularity`. Offering those turned an over-size listing into a dead end
69
- * dressed up as advice. Nothing the caller writes can shrink this result, so
70
- * the honest answer is what remains possible without it.
69
+ * The cursor cap leaves room for both filters at their caps, each character
70
+ * escaped at its longest, and a metric name of several thousand characters.
71
71
  */
72
- export declare const DISCOVERY_SIZE_REMEDIES: readonly ["Query a metric by name with the `query` tool — discovery is not a prerequisite for it.", "Ask an operator to reduce what this deployment ingests: this workspace holds more metrics than one response can carry."];
72
+ export declare const DISCOVER_ARGUMENT_LIMITS: {
73
+ readonly service: 256;
74
+ readonly nameContains: 255;
75
+ readonly cursor: 16384;
76
+ };
77
+ /**
78
+ * Remedies for a discovery answer that cannot be cut to fit: one overview row,
79
+ * or one metric with its description already dropped, is above
80
+ * {@link MAX_RESULT_CHARACTERS} on its own, or a page's cursor would be above
81
+ * the `cursor` cap in {@link DISCOVER_ARGUMENT_LIMITS}. Neither happens with
82
+ * real metric names; this is a guard, not a step.
83
+ *
84
+ * WHY its own list: every line in `SIZE_REMEDIES` names a field this tool does
85
+ * not have — a `limit`, a window, a `granularity`. Offering those turned an
86
+ * over-size listing into a dead end dressed up as advice. Its filters are the
87
+ * one thing a caller can change, and while paging they are also the only way
88
+ * past the entry that does not fit, which the caller is owed being told.
89
+ */
90
+ export declare const DISCOVERY_SIZE_REMEDIES: readonly ["Filter with `service`, `metricType` or `nameContains` to leave out the entry that does not fit. While paging, the metrics after it can be reached only that way: following the cursor stops at it.", "Query a metric by name with the `query` tool — discovery is not a prerequisite for it.", "Ask an operator to look at what this deployment ingests: a metric name, description or `service.name` this large is not expected."];
73
91
  /** Remedies offered when a result is too large once serialized. */
74
92
  export declare const SIZE_REMEDIES: readonly ["Lower `limit`.", "Narrow the time window.", "Use a coarser `granularity`, or `output: {type: 'summary'}` instead of a time series."];
75
93
  /**
@@ -104,6 +122,23 @@ export declare function overflowRemedies(query: kopaiQuery.KopaiQuery, limit: nu
104
122
  */
105
123
  export declare const TOOL_CALL_OUTCOMES: readonly ["ok", "invalid_input", "result_too_large", "query_too_expensive", "upstream_error", "not_found", "forbidden"];
106
124
  type ToolCallOutcome = (typeof TOOL_CALL_OUTCOMES)[number];
125
+ /**
126
+ * How much of the listing an `ok` `metrics_discover` answer carries:
127
+ *
128
+ * - `full`, `attributeValues`, `attributes`: the listing, whole or with that
129
+ * part omitted to fit the size limit, with or without filters. `full` also
130
+ * covers a filtered call that matched nothing.
131
+ * - `overview`: counts per `service.name` and type instead of the listing,
132
+ * whether or not the overview itself was cut.
133
+ * - `truncated`: one page of a list cut to fit, including the last page and an
134
+ * empty one.
135
+ *
136
+ * WHY on the event: an `ok` from this tool ranges from everything to a count
137
+ * per service, and the outcome alone cannot tell a host how often callers get
138
+ * which.
139
+ */
140
+ export declare const TOOL_CALL_DETAILS: readonly ["full", "attributeValues", "attributes", "overview", "truncated"];
141
+ type ToolCallDetail = (typeof TOOL_CALL_DETAILS)[number];
107
142
  /**
108
143
  * The one method this package calls on a logger.
109
144
  *
@@ -127,8 +162,13 @@ interface ToolCallEvent {
127
162
  tool: string;
128
163
  outcome: ToolCallOutcome;
129
164
  durationMs: number;
130
- /** Rows returned, when the tool returned rows. */
165
+ /**
166
+ * Rows returned, when the tool returned rows. For `metrics_discover`, the
167
+ * metrics or overview rows in this answer.
168
+ */
131
169
  rowCount?: number;
170
+ /** Set on an `ok` `metrics_discover` answer only. See {@link ToolCallDetail}. */
171
+ detail?: ToolCallDetail;
132
172
  request: FastifyRequest;
133
173
  }
134
174
  /**
@@ -319,22 +359,29 @@ interface ToolRun {
319
359
  result: ToolResult;
320
360
  outcome: ToolCallOutcome;
321
361
  rowCount?: number;
362
+ /** Set on an `ok` `metrics_discover` answer only; see `ToolCallDetail`. */
363
+ detail?: ToolCallDetail;
322
364
  }
323
365
  export declare function runQueryTool(input: unknown, ctx: ToolContext): Promise<ToolRun>;
324
- export declare function runMetricsDiscoverTool(ctx: ToolContext): Promise<ToolRun>;
366
+ /**
367
+ * Lists the metrics in this workspace, filtered by `service`, `metricType`
368
+ * and `nameContains` when given, and paged by `cursor`.
369
+ *
370
+ * In order: the listing, through the steps in {@link degradations}, for a call
371
+ * without a cursor; then, when no step fits, an overview for a call with no
372
+ * filters and the first page of a cut list for one with filters. A call with
373
+ * a cursor always gets a page.
374
+ */
375
+ export declare function runMetricsDiscoverTool(input: unknown, ctx: ToolContext): Promise<ToolRun>;
325
376
  /** The tools this package registers itself. A host tool may not reuse them. */
326
377
  export declare const BUILT_IN_TOOL_NAMES: readonly ["query", "metrics_discover"];
327
378
  interface RegisterToolsOptions extends ToolContext {
328
379
  /**
329
380
  * Called once per completed tool call, after the result is built and before
330
- * it is returned.
381
+ * it is returned. The event `mcpRoutes` hands its own observer, without the
382
+ * request, which `routes.ts` attaches.
331
383
  */
332
- onToolCall?: (event: {
333
- tool: string;
334
- outcome: ToolCallOutcome;
335
- durationMs: number;
336
- rowCount?: number;
337
- }) => void;
384
+ onToolCall?: (event: Omit<ToolCallEvent, "request">) => void;
338
385
  }
339
386
  /**
340
387
  * Registers the `query` and `metrics_discover` tools on `server`.
@@ -372,8 +419,17 @@ export declare function applyDescriptions(doc: SchemaNode, overrides: readonly D
372
419
  export declare const DESCRIPTION_OVERRIDES_APPLIED: Record<string, number>;
373
420
  export declare const QUERY_TOOL_INPUT_SCHEMA: Record<string, unknown>;
374
421
  /**
375
- * The `metrics_discover` tool takes no arguments, but MCP still requires an
376
- * object root.
422
+ * The `metrics_discover` tool's input: four optional string arguments.
423
+ *
424
+ * Written out rather than generated from zod: zod counts a string's length in
425
+ * UTF-16 units and JSON Schema's `maxLength` in code points, and the handler
426
+ * (`parseDiscoverArguments`) counts code points. It validates everything
427
+ * itself, so this document only advertises. The rule that a filter sent with
428
+ * `cursor` must equal the one it holds is the handler's alone: it would need
429
+ * a conditional at the root, which the Anthropic API refuses.
430
+ *
431
+ * The descriptions are flat for the reason the tool descriptions are; see
432
+ * `register.ts`.
377
433
  */
378
434
  export declare const METRICS_DISCOVER_TOOL_INPUT_SCHEMA: Record<string, unknown>;
379
435
  /**
@@ -401,5 +457,5 @@ export declare const METRICS_DISCOVER_TOOL_INPUT_SCHEMA: Record<string, unknown>
401
457
  * broken" rather than as a bad argument.
402
458
  */
403
459
  export declare const passThroughValidator: jsonSchemaValidator;
404
- export { type DescriptionOverride, type HostTools, type McpRoutesOptions, type McpServer, type RegisterToolsOptions, type ToolCallEvent, type ToolCallOutcome, type ToolContext, type ToolErrorCode, type ToolErrorPayload, type ToolIssue, type ToolResult, type ToolRun, fromJsonSchema };
460
+ export { type DescriptionOverride, type HostTools, type McpRoutesOptions, type McpServer, type RegisterToolsOptions, type ToolCallDetail, type ToolCallEvent, type ToolCallOutcome, type ToolContext, type ToolErrorCode, type ToolErrorPayload, type ToolIssue, type ToolResult, type ToolRun, fromJsonSchema };
405
461
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":["SchemaNode","McpServer","McpServer"],"sources":["../src/dedupe.ts","../src/limits.ts","../src/types.ts","../src/results.ts","../src/tools.ts","../src/register.ts","../src/routes.ts","../src/describe.ts","../src/schema.ts","../src/validator.ts"],"mappings":";;;KAoBKA,eAAa;;;;;;;;;;wBAkFF,OAAO,K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YACL,oBAAoB;EACjB,UAAU;EAAY,SAAS;;;qBCpBvB,+BAA6B;qBAE7B,yBAAyB;;;;;qBAQzB,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;qBCtBpC,sBAAsB"}
1
+ {"version":3,"file":"index.d.cts","names":["SchemaNode","McpServer","McpServer"],"sources":["../src/dedupe.ts","../src/limits.ts","../src/types.ts","../src/results.ts","../src/tools.ts","../src/register.ts","../src/routes.ts","../src/describe.ts","../src/schema.ts","../src/validator.ts"],"mappings":";;;KAoBKA,eAAa;;;;;;;;;;wBAkFF,OAAO,KAAKA,cAAY,kBAAcA;;;;;;;;;;;;;;;;;;;;;;;;qBC7EzC;;;;;;;;;;;;;;;;;;;;;;;;qBAyBA;;;;;;;;;;qBAWA;;;;;;;;;;;;;;;;;;qBAmBA;;qBAsEA;;;;;;;;;;;;;;;;;;wBA6EG,iBACd,OAAO,WAAW,YAClB,eACA;;;;;;;;;;;;;qBCtNW;KAUD,0BAA0B;;;;;;;;;;;;;;;;qBAiBzB;KAQD,yBAAyB;;;;;;;;;UAUpB;EACf,MAAM,kBAAkB;;;;;;;;;;UAWT;EACf;EACA,SAAS;EACT;;;;;EAKA;;EAEA,SAAS;EACT,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAkCM;;;;;;;EAOf;;;;;;;;;;;;;;;EAeA,WAAW,QAAQC,aAAW,SAAS;;UAGxB;EACf,yBAAyB,WAAW;;;;;;EAMpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BA;;;;;EAKA,SAAS;;EAET,cAAc,OAAO;;EAErB,YAAY;;;YAQF;IACR;;;;KCpMQ,gBAAgB,QAAQ;UAEnB;EACf;EACA;;UAGe;EACf,OAAO;EACP;EACA,SAAS;EACT;;;;;;;KAQU;EACV;EACA,SAAS;IAAQ;IAAc;;EAC/B;;;;;;;;;;;;;;;;;;;;;;;wBAwBc,SAAS,mBAAmB;;;;;;;;;;wBAgB5B,YAAY,SAAS,mBAAmB;;;;;;wBAsBxC,iBAAiB,QAAQ,cAAc;UCvDtC;EACf,yBAAyB,WAAW;;EAEpC;;EAEA,SAAS;;;;;;;UAQM;EACf,QAAQ;EACR,SAAS;EACT;;EAEA,SAAS;;wBAwHW,aACpB,gBACA,KAAK,cACJ,QAAQ;;;;;;;;;;wBAiMW,uBACpB,gBACA,KAAK,cACJ,QAAQ;;qBC/RE;UAEI,6BAA6B;;;;;;EAM5C,cAAc,OAAO,KAAK;;;;;;;;wBAoEZ,cACd,QAAQC,aACR,MAAM;;;;;;;;qBC1FK,WAAW,mBAAmB;KCnDtC,aAAa;UAED;;WAEN;;WAEA;WACA;;wBAGK,qBACd,gBACA,sBACA,oBACA,2BACC;;;;;wBAwBa,kBACd,KAAK,YACL,oBAAoB;EACjB,UAAU;EAAY,SAAS;;;qBCpBvB,+BAA6B;qBAE7B,yBAAyB;;;;;;;;;;;;;;qBAiBzB,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;qBC/BpC,sBAAsB"}
package/dist/index.d.mts CHANGED
@@ -61,15 +61,33 @@ export declare const LIMITS: {
61
61
  */
62
62
  export declare const MAX_RESULT_CHARACTERS = 150000;
63
63
  /**
64
- * Remedies for a discovery listing too large even with the attributes gone.
64
+ * Caps on `metrics_discover`'s string arguments, in Unicode code points: the
65
+ * unit JSON Schema's `maxLength` counts, so the advertised schema and the
66
+ * handler agree on what is too long. A UTF-16 count would refuse a 200-emoji
67
+ * `service` the schema had just accepted.
65
68
  *
66
- * WHY its own list: `metrics_discover` takes no arguments, so every line in
67
- * `SIZE_REMEDIES` names a field the caller cannot set — a `limit`, a window, a
68
- * `granularity`. Offering those turned an over-size listing into a dead end
69
- * dressed up as advice. Nothing the caller writes can shrink this result, so
70
- * the honest answer is what remains possible without it.
69
+ * The cursor cap leaves room for both filters at their caps, each character
70
+ * escaped at its longest, and a metric name of several thousand characters.
71
71
  */
72
- export declare const DISCOVERY_SIZE_REMEDIES: readonly ["Query a metric by name with the `query` tool — discovery is not a prerequisite for it.", "Ask an operator to reduce what this deployment ingests: this workspace holds more metrics than one response can carry."];
72
+ export declare const DISCOVER_ARGUMENT_LIMITS: {
73
+ readonly service: 256;
74
+ readonly nameContains: 255;
75
+ readonly cursor: 16384;
76
+ };
77
+ /**
78
+ * Remedies for a discovery answer that cannot be cut to fit: one overview row,
79
+ * or one metric with its description already dropped, is above
80
+ * {@link MAX_RESULT_CHARACTERS} on its own, or a page's cursor would be above
81
+ * the `cursor` cap in {@link DISCOVER_ARGUMENT_LIMITS}. Neither happens with
82
+ * real metric names; this is a guard, not a step.
83
+ *
84
+ * WHY its own list: every line in `SIZE_REMEDIES` names a field this tool does
85
+ * not have — a `limit`, a window, a `granularity`. Offering those turned an
86
+ * over-size listing into a dead end dressed up as advice. Its filters are the
87
+ * one thing a caller can change, and while paging they are also the only way
88
+ * past the entry that does not fit, which the caller is owed being told.
89
+ */
90
+ export declare const DISCOVERY_SIZE_REMEDIES: readonly ["Filter with `service`, `metricType` or `nameContains` to leave out the entry that does not fit. While paging, the metrics after it can be reached only that way: following the cursor stops at it.", "Query a metric by name with the `query` tool — discovery is not a prerequisite for it.", "Ask an operator to look at what this deployment ingests: a metric name, description or `service.name` this large is not expected."];
73
91
  /** Remedies offered when a result is too large once serialized. */
74
92
  export declare const SIZE_REMEDIES: readonly ["Lower `limit`.", "Narrow the time window.", "Use a coarser `granularity`, or `output: {type: 'summary'}` instead of a time series."];
75
93
  /**
@@ -104,6 +122,23 @@ export declare function overflowRemedies(query: kopaiQuery.KopaiQuery, limit: nu
104
122
  */
105
123
  export declare const TOOL_CALL_OUTCOMES: readonly ["ok", "invalid_input", "result_too_large", "query_too_expensive", "upstream_error", "not_found", "forbidden"];
106
124
  type ToolCallOutcome = (typeof TOOL_CALL_OUTCOMES)[number];
125
+ /**
126
+ * How much of the listing an `ok` `metrics_discover` answer carries:
127
+ *
128
+ * - `full`, `attributeValues`, `attributes`: the listing, whole or with that
129
+ * part omitted to fit the size limit, with or without filters. `full` also
130
+ * covers a filtered call that matched nothing.
131
+ * - `overview`: counts per `service.name` and type instead of the listing,
132
+ * whether or not the overview itself was cut.
133
+ * - `truncated`: one page of a list cut to fit, including the last page and an
134
+ * empty one.
135
+ *
136
+ * WHY on the event: an `ok` from this tool ranges from everything to a count
137
+ * per service, and the outcome alone cannot tell a host how often callers get
138
+ * which.
139
+ */
140
+ export declare const TOOL_CALL_DETAILS: readonly ["full", "attributeValues", "attributes", "overview", "truncated"];
141
+ type ToolCallDetail = (typeof TOOL_CALL_DETAILS)[number];
107
142
  /**
108
143
  * The one method this package calls on a logger.
109
144
  *
@@ -127,8 +162,13 @@ interface ToolCallEvent {
127
162
  tool: string;
128
163
  outcome: ToolCallOutcome;
129
164
  durationMs: number;
130
- /** Rows returned, when the tool returned rows. */
165
+ /**
166
+ * Rows returned, when the tool returned rows. For `metrics_discover`, the
167
+ * metrics or overview rows in this answer.
168
+ */
131
169
  rowCount?: number;
170
+ /** Set on an `ok` `metrics_discover` answer only. See {@link ToolCallDetail}. */
171
+ detail?: ToolCallDetail;
132
172
  request: FastifyRequest;
133
173
  }
134
174
  /**
@@ -319,22 +359,29 @@ interface ToolRun {
319
359
  result: ToolResult;
320
360
  outcome: ToolCallOutcome;
321
361
  rowCount?: number;
362
+ /** Set on an `ok` `metrics_discover` answer only; see `ToolCallDetail`. */
363
+ detail?: ToolCallDetail;
322
364
  }
323
365
  export declare function runQueryTool(input: unknown, ctx: ToolContext): Promise<ToolRun>;
324
- export declare function runMetricsDiscoverTool(ctx: ToolContext): Promise<ToolRun>;
366
+ /**
367
+ * Lists the metrics in this workspace, filtered by `service`, `metricType`
368
+ * and `nameContains` when given, and paged by `cursor`.
369
+ *
370
+ * In order: the listing, through the steps in {@link degradations}, for a call
371
+ * without a cursor; then, when no step fits, an overview for a call with no
372
+ * filters and the first page of a cut list for one with filters. A call with
373
+ * a cursor always gets a page.
374
+ */
375
+ export declare function runMetricsDiscoverTool(input: unknown, ctx: ToolContext): Promise<ToolRun>;
325
376
  /** The tools this package registers itself. A host tool may not reuse them. */
326
377
  export declare const BUILT_IN_TOOL_NAMES: readonly ["query", "metrics_discover"];
327
378
  interface RegisterToolsOptions extends ToolContext {
328
379
  /**
329
380
  * Called once per completed tool call, after the result is built and before
330
- * it is returned.
381
+ * it is returned. The event `mcpRoutes` hands its own observer, without the
382
+ * request, which `routes.ts` attaches.
331
383
  */
332
- onToolCall?: (event: {
333
- tool: string;
334
- outcome: ToolCallOutcome;
335
- durationMs: number;
336
- rowCount?: number;
337
- }) => void;
384
+ onToolCall?: (event: Omit<ToolCallEvent, "request">) => void;
338
385
  }
339
386
  /**
340
387
  * Registers the `query` and `metrics_discover` tools on `server`.
@@ -372,8 +419,17 @@ export declare function applyDescriptions(doc: SchemaNode, overrides: readonly D
372
419
  export declare const DESCRIPTION_OVERRIDES_APPLIED: Record<string, number>;
373
420
  export declare const QUERY_TOOL_INPUT_SCHEMA: Record<string, unknown>;
374
421
  /**
375
- * The `metrics_discover` tool takes no arguments, but MCP still requires an
376
- * object root.
422
+ * The `metrics_discover` tool's input: four optional string arguments.
423
+ *
424
+ * Written out rather than generated from zod: zod counts a string's length in
425
+ * UTF-16 units and JSON Schema's `maxLength` in code points, and the handler
426
+ * (`parseDiscoverArguments`) counts code points. It validates everything
427
+ * itself, so this document only advertises. The rule that a filter sent with
428
+ * `cursor` must equal the one it holds is the handler's alone: it would need
429
+ * a conditional at the root, which the Anthropic API refuses.
430
+ *
431
+ * The descriptions are flat for the reason the tool descriptions are; see
432
+ * `register.ts`.
377
433
  */
378
434
  export declare const METRICS_DISCOVER_TOOL_INPUT_SCHEMA: Record<string, unknown>;
379
435
  /**
@@ -401,5 +457,5 @@ export declare const METRICS_DISCOVER_TOOL_INPUT_SCHEMA: Record<string, unknown>
401
457
  * broken" rather than as a bad argument.
402
458
  */
403
459
  export declare const passThroughValidator: jsonSchemaValidator;
404
- export { type DescriptionOverride, type HostTools, type McpRoutesOptions, type McpServer, type RegisterToolsOptions, type ToolCallEvent, type ToolCallOutcome, type ToolContext, type ToolErrorCode, type ToolErrorPayload, type ToolIssue, type ToolResult, type ToolRun, fromJsonSchema };
460
+ export { type DescriptionOverride, type HostTools, type McpRoutesOptions, type McpServer, type RegisterToolsOptions, type ToolCallDetail, type ToolCallEvent, type ToolCallOutcome, type ToolContext, type ToolErrorCode, type ToolErrorPayload, type ToolIssue, type ToolResult, type ToolRun, fromJsonSchema };
405
461
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":["SchemaNode","McpServer","McpServer"],"sources":["../src/dedupe.ts","../src/limits.ts","../src/types.ts","../src/results.ts","../src/tools.ts","../src/register.ts","../src/routes.ts","../src/describe.ts","../src/schema.ts","../src/validator.ts"],"mappings":";;;KAoBKA,eAAa;;;;;;;;;;wBAkFF,OAAO,KAAKA,cAAY,kBAAcA;;;;;;;;;;;;;;;;;;;;;;;;qBC7EzC;;;;;;;;;;;;;;;;;;;;;;;;qBAyBA;;;;;;;;;;qBAWA;;qBAkEA;;;;;;;;;;;;;;;;;;wBA6EG,iBACd,OAAO,WAAW,YAClB,eACA;;;;;;;;;;;;;qBC/LW;KAUD,0BAA0B;;;;;;;;;UAUrB;EACf,MAAM,kBAAkB;;;;;;;;;;UAWT;EACf;EACA,SAAS;EACT;;EAEA;EACA,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAkCM;;;;;;;EAOf;;;;;;;;;;;;;;;EAeA,WAAW,QAAQC,aAAW,SAAS;;UAGxB;EACf,yBAAyB,WAAW;;;;;;EAMpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BA;;;;;EAKA,SAAS;;EAET,cAAc,OAAO;;EAErB,YAAY;;;YAQF;IACR;;;;KCtKQ,gBAAgB,QAAQ;UAEnB;EACf;EACA;;UAGe;EACf,OAAO;EACP;EACA,SAAS;EACT;;;;;;;KAQU;EACV;EACA,SAAS;IAAQ;IAAc;;EAC/B;;;;;;;;;;;;;;;;;;;;;;;wBAwBc,SAAS,mBAAmB;;;;;;;;;;wBAgB5B,YAAY,SAAS,mBAAmB;;;;;;wBAsBxC,iBAAiB,QAAQ,cAAc;UCnEtC;EACf,yBAAyB,WAAW;;EAEpC;;EAEA,SAAS;;;;;;;UAQM;EACf,QAAQ;EACR,SAAS;EACT;;wBAwHoB,aACpB,gBACA,KAAK,cACJ,QAAQ;wBA4LW,uBACpB,KAAK,cACJ,QAAQ;;qBCvRE;UAEI,6BAA6B;;;;;EAK5C,cAAc;IACZ;IACA,SAAS;IACT;IACA;;;;;;;;;wBAoEY,cACd,QAAQC,aACR,MAAM;;;;;;;;qBCjFK,WAAW,mBAAmB;KCnDtC,aAAa;UAED;;WAEN;;WAEA;WACA;;wBAGK,qBACd,gBACA,sBACA,oBACA,2BACC;;;;;wBAwBa,kBACd,KAAK,YACL,oBAAoB;EACjB,UAAU;EAAY,SAAS;;;qBCpBvB,+BAA6B;qBAE7B,yBAAyB;;;;;qBAQzB,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;qBCtBpC,sBAAsB"}
1
+ {"version":3,"file":"index.d.mts","names":["SchemaNode","McpServer","McpServer"],"sources":["../src/dedupe.ts","../src/limits.ts","../src/types.ts","../src/results.ts","../src/tools.ts","../src/register.ts","../src/routes.ts","../src/describe.ts","../src/schema.ts","../src/validator.ts"],"mappings":";;;KAoBKA,eAAa;;;;;;;;;;wBAkFF,OAAO,KAAKA,cAAY,kBAAcA;;;;;;;;;;;;;;;;;;;;;;;;qBC7EzC;;;;;;;;;;;;;;;;;;;;;;;;qBAyBA;;;;;;;;;;qBAWA;;;;;;;;;;;;;;;;;;qBAmBA;;qBAsEA;;;;;;;;;;;;;;;;;;wBA6EG,iBACd,OAAO,WAAW,YAClB,eACA;;;;;;;;;;;;;qBCtNW;KAUD,0BAA0B;;;;;;;;;;;;;;;;qBAiBzB;KAQD,yBAAyB;;;;;;;;;UAUpB;EACf,MAAM,kBAAkB;;;;;;;;;;UAWT;EACf;EACA,SAAS;EACT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