@powerduck/openapi-mcp-server 1.0.0 → 1.1.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
@@ -1,13 +1,13 @@
1
- import { Document, ParameterObject, OperationObject, PathItemObject } from '@scalar/openapi-types/3.2';
1
+ import { Oas32Document, ParameterObject, OperationObject, PathItemObject } from '@powerduck/openapi-parser';
2
2
  import { Tool, GetPromptResult } from '@modelcontextprotocol/sdk/types.js';
3
- import { P as ParameterLocation, B as BodyEncoding, G as GeneratedPrompt, a as GeneratedResource, R as ResourceContentItem, E as ExecutionContext, b as ProtocolHint } from './admin-server-B4fQWUnc.cjs';
4
- export { A as AdminStatus, c as AppState, d as BODY_ENCODINGS, e as GeneratedTool, L as LOG_DIRECTIONS, f as LOG_LEVELS, g as LogDirection, h as LogLevel, i as LogQueryOptions, j as LogQueryResult, k as LoggedQuery, M as ManagedServiceRecord, l as PARAMETER_LOCATIONS, m as PROTOCOL_HINTS, n as PersistedState, o as PromptMessageShape, p as RequestLogEntry, q as ResolvedPrompt, S as SERVICE_STATUSES, r as SPEC_SOURCES, s as SecurityContext, t as ServerConfig, u as ServiceEndpointInfo, v as ServiceStatus, w as SpecIssue, x as SpecSource, T as TRANSPORT_MODES, y as TransportMode, z as isBodyEncoding, C as isParameterLocation, D as isPlainRecord, F as isProtocolHint, H as isServiceStatus, I as isSpecSource, J as startAdminServer } from './admin-server-B4fQWUnc.cjs';
3
+ import { P as ParameterLocation, B as BodyEncoding, G as GeneratedPrompt, a as GeneratedResource, R as ResourceContentItem, E as ExecutionContext, b as ProtocolHint, M as ManagedServiceRecord } from './admin-server-dcPWB2yO.cjs';
4
+ export { A as AdminStatus, c as AppState, d as BODY_ENCODINGS, e as GeneratedTool, L as LOG_DIRECTIONS, f as LOG_LEVELS, g as LogDirection, h as LogLevel, i as LogQueryOptions, j as LogQueryResult, k as LoggedQuery, l as PARAMETER_LOCATIONS, m as PROTOCOL_HINTS, n as PersistedState, o as PromptMessageShape, p as RequestLogEntry, q as ResolvedPrompt, S as SERVICE_STATUSES, r as SPEC_SOURCES, s as SecurityContext, t as ServerConfig, u as ServiceEndpointInfo, v as ServiceStatus, w as SpecIssue, x as SpecSource, T as TRANSPORT_MODES, y as TransportMode, z as isBodyEncoding, C as isParameterLocation, D as isPlainRecord, F as isProtocolHint, H as isServiceStatus, I as isSpecSource, J as startAdminServer } from './admin-server-dcPWB2yO.cjs';
5
5
  import { Server } from '@modelcontextprotocol/sdk/server/index.js';
6
6
  import express, { RequestHandler } from 'express';
7
7
  import 'node:http';
8
8
 
9
- declare function loadOpenApiSpec(filePath: string): Promise<Document>;
10
- declare function parseSpecContent(rawText: string, isYaml: boolean): Promise<Document>;
9
+ declare function loadOpenApiSpec(filePath: string): Promise<Oas32Document>;
10
+ declare function parseSpecContent(rawText: string, isYaml: boolean): Promise<Oas32Document>;
11
11
 
12
12
  /**
13
13
  * A parameter validated to carry the fields this library relies on.
@@ -68,6 +68,12 @@ interface SpecWalkIssue {
68
68
  code: SpecWalkIssueCode;
69
69
  message: string;
70
70
  }
71
+ declare function isPlainObject(value: unknown): value is Record<string, unknown>;
72
+ /**
73
+ * Shortens an identifier to {@link MAX_GENERATED_NAME_LENGTH} while preserving
74
+ * uniqueness by appending a hash of the original value.
75
+ */
76
+ declare function truncateGeneratedName(name: string, limit?: number): string;
71
77
  /**
72
78
  * Extracts the `{name}` template variables from a path template.
73
79
  * Duplicates are collapsed; order follows first appearance.
@@ -122,7 +128,7 @@ declare function ensureUniqueName(candidate: string, taken: Set<string>): string
122
128
  *
123
129
  * Non-fatal problems are appended to `issues` when the caller supplies an array.
124
130
  */
125
- declare function iterateOperations(spec: Document | null | undefined, issues?: SpecWalkIssue[]): Generator<ResolvedOperation>;
131
+ declare function iterateOperations(spec: Oas32Document | null | undefined, issues?: SpecWalkIssue[]): Generator<ResolvedOperation>;
126
132
  /**
127
133
  * Locates an operation by id, in O(1) after the first call.
128
134
  *
@@ -135,7 +141,7 @@ declare function iterateOperations(spec: Document | null | undefined, issues?: S
135
141
  * Returns null instead of throwing: an unknown id is a caller-level condition
136
142
  * (bad tool name), not a malformed document.
137
143
  */
138
- declare function findOperationById(spec: Document | null | undefined, operationId: string): OperationEntry | null;
144
+ declare function findOperationById(spec: Oas32Document | null | undefined, operationId: string): OperationEntry | null;
139
145
  /** Describes one operationId claimed by more than one operation. */
140
146
  interface DuplicateOperationId {
141
147
  operationId: string;
@@ -154,13 +160,13 @@ interface DuplicateOperationId {
154
160
  * degrades the tool names rather than breaking the server. Use it to warn the
155
161
  * operator.
156
162
  */
157
- declare function findDuplicateOperationIds(spec: Document | null | undefined): DuplicateOperationId[];
163
+ declare function findDuplicateOperationIds(spec: Oas32Document | null | undefined): DuplicateOperationId[];
158
164
  /**
159
165
  * Throws when the document declares the same operationId twice. Kept as a
160
166
  * separate strict entry point so library consumers can choose between failing
161
167
  * fast at load time and merely surfacing a warning.
162
168
  */
163
- declare function assertUniqueOperationIds(spec: Document | null | undefined): void;
169
+ declare function assertUniqueOperationIds(spec: Oas32Document | null | undefined): void;
164
170
 
165
171
  interface ArgumentBinding {
166
172
  key: string;
@@ -199,21 +205,21 @@ interface GenerateToolsResult {
199
205
  bindings: ToolBinding[];
200
206
  issues: SpecWalkIssue[];
201
207
  }
202
- declare function generateToolsDetailed(spec: Document | null | undefined): GenerateToolsResult;
203
- declare function generateTools(spec: Document | null | undefined): Tool[];
204
- declare function getBindingIndex(spec: Document | null | undefined): Map<string, ToolBinding>;
208
+ declare function generateToolsDetailed(spec: Oas32Document | null | undefined): GenerateToolsResult;
209
+ declare function generateTools(spec: Oas32Document | null | undefined): Tool[];
210
+ declare function getBindingIndex(spec: Oas32Document | null | undefined): Map<string, ToolBinding>;
205
211
  declare const buildBindingIndex: typeof getBindingIndex;
206
212
 
207
213
  /** List every prompt exposed for the given specification. */
208
- declare function generatePrompts(spec: Document): GeneratedPrompt[];
214
+ declare function generatePrompts(spec: Oas32Document): GeneratedPrompt[];
209
215
  /**
210
216
  * Resolve a prompt by name. Returns null when the prompt is unknown so the
211
217
  * transport layer can answer with the correct JSON-RPC error.
212
218
  */
213
- declare function resolvePrompt(spec: Document, name: string, args?: Record<string, unknown>): GetPromptResult | null;
219
+ declare function resolvePrompt(spec: Oas32Document, name: string, args?: Record<string, unknown>): GetPromptResult | null;
214
220
 
215
- declare function generateResources(spec: Document): GeneratedResource[];
216
- declare function readResource(spec: Document, uri: string): ResourceContentItem | null;
221
+ declare function generateResources(spec: Oas32Document): GeneratedResource[];
222
+ declare function readResource(spec: Oas32Document, uri: string): ResourceContentItem | null;
217
223
 
218
224
  interface ToolCallResult {
219
225
  status: number;
@@ -234,7 +240,7 @@ interface ToolCallResult {
234
240
  * must be able to read the status and body to decide what to do next. Only
235
241
  * transport-level failures throw.
236
242
  */
237
- declare function executeToolCall(spec: Document, toolName: string, args: Record<string, unknown> | undefined, context?: ExecutionContext): Promise<ToolCallResult>;
243
+ declare function executeToolCall(spec: Oas32Document, toolName: string, args: Record<string, unknown> | undefined, context?: ExecutionContext): Promise<ToolCallResult>;
238
244
 
239
245
  /** A parameter or argument that was deliberately not sent, with the reason. */
240
246
  interface DroppedArgument {
@@ -262,7 +268,7 @@ interface BuiltRequest {
262
268
  declare function buildRequest(baseUrl: string, templatePath: string, pathItem: PathItemObject, operation: OperationObject, args: Record<string, unknown>, binding?: ToolBinding): BuiltRequest;
263
269
 
264
270
  /** Returns the active document, or null when no service is running. */
265
- type SpecProvider = () => Document | null;
271
+ type SpecProvider = () => Oas32Document | null;
266
272
  /** Returns the upstream execution context for the current call. */
267
273
  type ContextProvider = () => ExecutionContext;
268
274
  interface BuildMcpServerOptions {
@@ -344,7 +350,7 @@ interface StartStdioServerOptions {
344
350
  * admin surface able to swap it, and a stdio client holds exactly one session
345
351
  * whose tool list it caches after `initialize`.
346
352
  */
347
- declare function startStdioServer(spec: Document, context?: ExecutionContext, options?: StartStdioServerOptions): Promise<StdioServerHandle>;
353
+ declare function startStdioServer(spec: Oas32Document, context?: ExecutionContext, options?: StartStdioServerOptions): Promise<StdioServerHandle>;
348
354
 
349
355
  /**
350
356
  * Backwards-compatible alias for the previous export name.
@@ -371,4 +377,24 @@ declare function attachSseRoutes(app: express.Express, specProvider: SpecProvide
371
377
  */
372
378
  declare function createAuthMiddleware(apiKey?: string): RequestHandler;
373
379
 
374
- export { BodyEncoding, type ContextProvider, type DuplicateOperationId, ExecutionContext, GeneratedPrompt, GeneratedResource, type GeneratedTool as GeneratedToolWithBinding, type OperationEntry, ParameterLocation, ProtocolHint, ResourceContentItem, type SpecProvider, type ToolBinding, assertUniqueOperationIds, attachSseRoutes, buildBindingIndex, buildMcpServer, buildRequest, collectOperationParameters, createAuthMiddleware, effectiveExplode, effectiveStyle, ensureUniqueName, executeToolCall, extractPathTemplateVariables, findDuplicateOperationIds, findOperationById, generatePrompts, generateResources, generateTools, generateToolsDetailed, iterateOperations, loadOpenApiSpec, normalizeParameter, parseSpecContent, readResource, resolvePrompt, startStdioServer, synthesizeOperationId };
380
+ /**
381
+ * Node throws DOMException on AbortSignal and Error subclasses elsewhere, and
382
+ * axios reports its own CanceledError. Matching on `name` covers all three
383
+ * without importing axios internals.
384
+ */
385
+ declare function isAbortError(error: unknown): boolean;
386
+ declare function newId(): string;
387
+
388
+ declare class ServiceRegistry {
389
+ private readonly records;
390
+ upsert(record: ManagedServiceRecord): void;
391
+ list(): ManagedServiceRecord[];
392
+ get(id: string): ManagedServiceRecord | undefined;
393
+ remove(id: string): boolean;
394
+ clear(): void;
395
+ start(id: string): ManagedServiceRecord | undefined;
396
+ stop(id: string): ManagedServiceRecord | undefined;
397
+ fail(id: string, message: string): ManagedServiceRecord | undefined;
398
+ }
399
+
400
+ export { BodyEncoding, type ContextProvider, type DuplicateOperationId, ExecutionContext, GeneratedPrompt, GeneratedResource, type GeneratedTool as GeneratedToolWithBinding, ManagedServiceRecord, type OperationEntry, ParameterLocation, ProtocolHint, ResourceContentItem, ServiceRegistry, type SpecProvider, type ToolBinding, assertUniqueOperationIds, attachSseRoutes, buildBindingIndex, buildMcpServer, buildRequest, collectOperationParameters, createAuthMiddleware, effectiveExplode, effectiveStyle, ensureUniqueName, executeToolCall, extractPathTemplateVariables, findDuplicateOperationIds, findOperationById, generatePrompts, generateResources, generateTools, generateToolsDetailed, isAbortError, isPlainObject, iterateOperations, loadOpenApiSpec, newId, normalizeParameter, parseSpecContent, readResource, resolvePrompt, startStdioServer, synthesizeOperationId, truncateGeneratedName };
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { Document, ParameterObject, OperationObject, PathItemObject } from '@scalar/openapi-types/3.2';
1
+ import { Oas32Document, ParameterObject, OperationObject, PathItemObject } from '@powerduck/openapi-parser';
2
2
  import { Tool, GetPromptResult } from '@modelcontextprotocol/sdk/types.js';
3
- import { P as ParameterLocation, B as BodyEncoding, G as GeneratedPrompt, a as GeneratedResource, R as ResourceContentItem, E as ExecutionContext, b as ProtocolHint } from './admin-server-B4fQWUnc.js';
4
- export { A as AdminStatus, c as AppState, d as BODY_ENCODINGS, e as GeneratedTool, L as LOG_DIRECTIONS, f as LOG_LEVELS, g as LogDirection, h as LogLevel, i as LogQueryOptions, j as LogQueryResult, k as LoggedQuery, M as ManagedServiceRecord, l as PARAMETER_LOCATIONS, m as PROTOCOL_HINTS, n as PersistedState, o as PromptMessageShape, p as RequestLogEntry, q as ResolvedPrompt, S as SERVICE_STATUSES, r as SPEC_SOURCES, s as SecurityContext, t as ServerConfig, u as ServiceEndpointInfo, v as ServiceStatus, w as SpecIssue, x as SpecSource, T as TRANSPORT_MODES, y as TransportMode, z as isBodyEncoding, C as isParameterLocation, D as isPlainRecord, F as isProtocolHint, H as isServiceStatus, I as isSpecSource, J as startAdminServer } from './admin-server-B4fQWUnc.js';
3
+ import { P as ParameterLocation, B as BodyEncoding, G as GeneratedPrompt, a as GeneratedResource, R as ResourceContentItem, E as ExecutionContext, b as ProtocolHint, M as ManagedServiceRecord } from './admin-server-dcPWB2yO.js';
4
+ export { A as AdminStatus, c as AppState, d as BODY_ENCODINGS, e as GeneratedTool, L as LOG_DIRECTIONS, f as LOG_LEVELS, g as LogDirection, h as LogLevel, i as LogQueryOptions, j as LogQueryResult, k as LoggedQuery, l as PARAMETER_LOCATIONS, m as PROTOCOL_HINTS, n as PersistedState, o as PromptMessageShape, p as RequestLogEntry, q as ResolvedPrompt, S as SERVICE_STATUSES, r as SPEC_SOURCES, s as SecurityContext, t as ServerConfig, u as ServiceEndpointInfo, v as ServiceStatus, w as SpecIssue, x as SpecSource, T as TRANSPORT_MODES, y as TransportMode, z as isBodyEncoding, C as isParameterLocation, D as isPlainRecord, F as isProtocolHint, H as isServiceStatus, I as isSpecSource, J as startAdminServer } from './admin-server-dcPWB2yO.js';
5
5
  import { Server } from '@modelcontextprotocol/sdk/server/index.js';
6
6
  import express, { RequestHandler } from 'express';
7
7
  import 'node:http';
8
8
 
9
- declare function loadOpenApiSpec(filePath: string): Promise<Document>;
10
- declare function parseSpecContent(rawText: string, isYaml: boolean): Promise<Document>;
9
+ declare function loadOpenApiSpec(filePath: string): Promise<Oas32Document>;
10
+ declare function parseSpecContent(rawText: string, isYaml: boolean): Promise<Oas32Document>;
11
11
 
12
12
  /**
13
13
  * A parameter validated to carry the fields this library relies on.
@@ -68,6 +68,12 @@ interface SpecWalkIssue {
68
68
  code: SpecWalkIssueCode;
69
69
  message: string;
70
70
  }
71
+ declare function isPlainObject(value: unknown): value is Record<string, unknown>;
72
+ /**
73
+ * Shortens an identifier to {@link MAX_GENERATED_NAME_LENGTH} while preserving
74
+ * uniqueness by appending a hash of the original value.
75
+ */
76
+ declare function truncateGeneratedName(name: string, limit?: number): string;
71
77
  /**
72
78
  * Extracts the `{name}` template variables from a path template.
73
79
  * Duplicates are collapsed; order follows first appearance.
@@ -122,7 +128,7 @@ declare function ensureUniqueName(candidate: string, taken: Set<string>): string
122
128
  *
123
129
  * Non-fatal problems are appended to `issues` when the caller supplies an array.
124
130
  */
125
- declare function iterateOperations(spec: Document | null | undefined, issues?: SpecWalkIssue[]): Generator<ResolvedOperation>;
131
+ declare function iterateOperations(spec: Oas32Document | null | undefined, issues?: SpecWalkIssue[]): Generator<ResolvedOperation>;
126
132
  /**
127
133
  * Locates an operation by id, in O(1) after the first call.
128
134
  *
@@ -135,7 +141,7 @@ declare function iterateOperations(spec: Document | null | undefined, issues?: S
135
141
  * Returns null instead of throwing: an unknown id is a caller-level condition
136
142
  * (bad tool name), not a malformed document.
137
143
  */
138
- declare function findOperationById(spec: Document | null | undefined, operationId: string): OperationEntry | null;
144
+ declare function findOperationById(spec: Oas32Document | null | undefined, operationId: string): OperationEntry | null;
139
145
  /** Describes one operationId claimed by more than one operation. */
140
146
  interface DuplicateOperationId {
141
147
  operationId: string;
@@ -154,13 +160,13 @@ interface DuplicateOperationId {
154
160
  * degrades the tool names rather than breaking the server. Use it to warn the
155
161
  * operator.
156
162
  */
157
- declare function findDuplicateOperationIds(spec: Document | null | undefined): DuplicateOperationId[];
163
+ declare function findDuplicateOperationIds(spec: Oas32Document | null | undefined): DuplicateOperationId[];
158
164
  /**
159
165
  * Throws when the document declares the same operationId twice. Kept as a
160
166
  * separate strict entry point so library consumers can choose between failing
161
167
  * fast at load time and merely surfacing a warning.
162
168
  */
163
- declare function assertUniqueOperationIds(spec: Document | null | undefined): void;
169
+ declare function assertUniqueOperationIds(spec: Oas32Document | null | undefined): void;
164
170
 
165
171
  interface ArgumentBinding {
166
172
  key: string;
@@ -199,21 +205,21 @@ interface GenerateToolsResult {
199
205
  bindings: ToolBinding[];
200
206
  issues: SpecWalkIssue[];
201
207
  }
202
- declare function generateToolsDetailed(spec: Document | null | undefined): GenerateToolsResult;
203
- declare function generateTools(spec: Document | null | undefined): Tool[];
204
- declare function getBindingIndex(spec: Document | null | undefined): Map<string, ToolBinding>;
208
+ declare function generateToolsDetailed(spec: Oas32Document | null | undefined): GenerateToolsResult;
209
+ declare function generateTools(spec: Oas32Document | null | undefined): Tool[];
210
+ declare function getBindingIndex(spec: Oas32Document | null | undefined): Map<string, ToolBinding>;
205
211
  declare const buildBindingIndex: typeof getBindingIndex;
206
212
 
207
213
  /** List every prompt exposed for the given specification. */
208
- declare function generatePrompts(spec: Document): GeneratedPrompt[];
214
+ declare function generatePrompts(spec: Oas32Document): GeneratedPrompt[];
209
215
  /**
210
216
  * Resolve a prompt by name. Returns null when the prompt is unknown so the
211
217
  * transport layer can answer with the correct JSON-RPC error.
212
218
  */
213
- declare function resolvePrompt(spec: Document, name: string, args?: Record<string, unknown>): GetPromptResult | null;
219
+ declare function resolvePrompt(spec: Oas32Document, name: string, args?: Record<string, unknown>): GetPromptResult | null;
214
220
 
215
- declare function generateResources(spec: Document): GeneratedResource[];
216
- declare function readResource(spec: Document, uri: string): ResourceContentItem | null;
221
+ declare function generateResources(spec: Oas32Document): GeneratedResource[];
222
+ declare function readResource(spec: Oas32Document, uri: string): ResourceContentItem | null;
217
223
 
218
224
  interface ToolCallResult {
219
225
  status: number;
@@ -234,7 +240,7 @@ interface ToolCallResult {
234
240
  * must be able to read the status and body to decide what to do next. Only
235
241
  * transport-level failures throw.
236
242
  */
237
- declare function executeToolCall(spec: Document, toolName: string, args: Record<string, unknown> | undefined, context?: ExecutionContext): Promise<ToolCallResult>;
243
+ declare function executeToolCall(spec: Oas32Document, toolName: string, args: Record<string, unknown> | undefined, context?: ExecutionContext): Promise<ToolCallResult>;
238
244
 
239
245
  /** A parameter or argument that was deliberately not sent, with the reason. */
240
246
  interface DroppedArgument {
@@ -262,7 +268,7 @@ interface BuiltRequest {
262
268
  declare function buildRequest(baseUrl: string, templatePath: string, pathItem: PathItemObject, operation: OperationObject, args: Record<string, unknown>, binding?: ToolBinding): BuiltRequest;
263
269
 
264
270
  /** Returns the active document, or null when no service is running. */
265
- type SpecProvider = () => Document | null;
271
+ type SpecProvider = () => Oas32Document | null;
266
272
  /** Returns the upstream execution context for the current call. */
267
273
  type ContextProvider = () => ExecutionContext;
268
274
  interface BuildMcpServerOptions {
@@ -344,7 +350,7 @@ interface StartStdioServerOptions {
344
350
  * admin surface able to swap it, and a stdio client holds exactly one session
345
351
  * whose tool list it caches after `initialize`.
346
352
  */
347
- declare function startStdioServer(spec: Document, context?: ExecutionContext, options?: StartStdioServerOptions): Promise<StdioServerHandle>;
353
+ declare function startStdioServer(spec: Oas32Document, context?: ExecutionContext, options?: StartStdioServerOptions): Promise<StdioServerHandle>;
348
354
 
349
355
  /**
350
356
  * Backwards-compatible alias for the previous export name.
@@ -371,4 +377,24 @@ declare function attachSseRoutes(app: express.Express, specProvider: SpecProvide
371
377
  */
372
378
  declare function createAuthMiddleware(apiKey?: string): RequestHandler;
373
379
 
374
- export { BodyEncoding, type ContextProvider, type DuplicateOperationId, ExecutionContext, GeneratedPrompt, GeneratedResource, type GeneratedTool as GeneratedToolWithBinding, type OperationEntry, ParameterLocation, ProtocolHint, ResourceContentItem, type SpecProvider, type ToolBinding, assertUniqueOperationIds, attachSseRoutes, buildBindingIndex, buildMcpServer, buildRequest, collectOperationParameters, createAuthMiddleware, effectiveExplode, effectiveStyle, ensureUniqueName, executeToolCall, extractPathTemplateVariables, findDuplicateOperationIds, findOperationById, generatePrompts, generateResources, generateTools, generateToolsDetailed, iterateOperations, loadOpenApiSpec, normalizeParameter, parseSpecContent, readResource, resolvePrompt, startStdioServer, synthesizeOperationId };
380
+ /**
381
+ * Node throws DOMException on AbortSignal and Error subclasses elsewhere, and
382
+ * axios reports its own CanceledError. Matching on `name` covers all three
383
+ * without importing axios internals.
384
+ */
385
+ declare function isAbortError(error: unknown): boolean;
386
+ declare function newId(): string;
387
+
388
+ declare class ServiceRegistry {
389
+ private readonly records;
390
+ upsert(record: ManagedServiceRecord): void;
391
+ list(): ManagedServiceRecord[];
392
+ get(id: string): ManagedServiceRecord | undefined;
393
+ remove(id: string): boolean;
394
+ clear(): void;
395
+ start(id: string): ManagedServiceRecord | undefined;
396
+ stop(id: string): ManagedServiceRecord | undefined;
397
+ fail(id: string, message: string): ManagedServiceRecord | undefined;
398
+ }
399
+
400
+ export { BodyEncoding, type ContextProvider, type DuplicateOperationId, ExecutionContext, GeneratedPrompt, GeneratedResource, type GeneratedTool as GeneratedToolWithBinding, ManagedServiceRecord, type OperationEntry, ParameterLocation, ProtocolHint, ResourceContentItem, ServiceRegistry, type SpecProvider, type ToolBinding, assertUniqueOperationIds, attachSseRoutes, buildBindingIndex, buildMcpServer, buildRequest, collectOperationParameters, createAuthMiddleware, effectiveExplode, effectiveStyle, ensureUniqueName, executeToolCall, extractPathTemplateVariables, findDuplicateOperationIds, findOperationById, generatePrompts, generateResources, generateTools, generateToolsDetailed, isAbortError, isPlainObject, iterateOperations, loadOpenApiSpec, newId, normalizeParameter, parseSpecContent, readResource, resolvePrompt, startStdioServer, synthesizeOperationId, truncateGeneratedName };