mcponce 0.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/README.md +1013 -0
- package/dist/cli/analytics.d.ts +5 -0
- package/dist/cli/analytics.d.ts.map +1 -0
- package/dist/cli/analytics.js +93 -0
- package/dist/cli/analytics.js.map +1 -0
- package/dist/cli/bin.d.ts +20 -0
- package/dist/cli/bin.d.ts.map +1 -0
- package/dist/cli/bin.js +510 -0
- package/dist/cli/bin.js.map +1 -0
- package/dist/cli/index.d.ts +9 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +196 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/info.d.ts +3 -0
- package/dist/cli/info.d.ts.map +1 -0
- package/dist/cli/info.js +42 -0
- package/dist/cli/info.js.map +1 -0
- package/dist/cli/installer.d.ts +64 -0
- package/dist/cli/installer.d.ts.map +1 -0
- package/dist/cli/installer.js +183 -0
- package/dist/cli/installer.js.map +1 -0
- package/dist/cli/logs.d.ts +3 -0
- package/dist/cli/logs.d.ts.map +1 -0
- package/dist/cli/logs.js +19 -0
- package/dist/cli/logs.js.map +1 -0
- package/dist/cli/tool-caller.d.ts +70 -0
- package/dist/cli/tool-caller.d.ts.map +1 -0
- package/dist/cli/tool-caller.js +404 -0
- package/dist/cli/tool-caller.js.map +1 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -0
- package/dist/logging/file-logger.d.ts +21 -0
- package/dist/logging/file-logger.d.ts.map +1 -0
- package/dist/logging/file-logger.js +96 -0
- package/dist/logging/file-logger.js.map +1 -0
- package/dist/logging/logger.d.ts +22 -0
- package/dist/logging/logger.d.ts.map +1 -0
- package/dist/logging/logger.js +57 -0
- package/dist/logging/logger.js.map +1 -0
- package/dist/logging/rotation.d.ts +6 -0
- package/dist/logging/rotation.d.ts.map +1 -0
- package/dist/logging/rotation.js +32 -0
- package/dist/logging/rotation.js.map +1 -0
- package/dist/registry/central.d.ts +54 -0
- package/dist/registry/central.d.ts.map +1 -0
- package/dist/registry/central.js +205 -0
- package/dist/registry/central.js.map +1 -0
- package/dist/registry/prompts.d.ts +9 -0
- package/dist/registry/prompts.d.ts.map +1 -0
- package/dist/registry/prompts.js +18 -0
- package/dist/registry/prompts.js.map +1 -0
- package/dist/registry/resources.d.ts +52 -0
- package/dist/registry/resources.d.ts.map +1 -0
- package/dist/registry/resources.js +102 -0
- package/dist/registry/resources.js.map +1 -0
- package/dist/registry/subscriptions.d.ts +44 -0
- package/dist/registry/subscriptions.d.ts.map +1 -0
- package/dist/registry/subscriptions.js +96 -0
- package/dist/registry/subscriptions.js.map +1 -0
- package/dist/registry/tools.d.ts +24 -0
- package/dist/registry/tools.d.ts.map +1 -0
- package/dist/registry/tools.js +120 -0
- package/dist/registry/tools.js.map +1 -0
- package/dist/runtime/config.d.ts +30 -0
- package/dist/runtime/config.d.ts.map +1 -0
- package/dist/runtime/config.js +79 -0
- package/dist/runtime/config.js.map +1 -0
- package/dist/runtime/health.d.ts +15 -0
- package/dist/runtime/health.d.ts.map +1 -0
- package/dist/runtime/health.js +63 -0
- package/dist/runtime/health.js.map +1 -0
- package/dist/runtime/instance.d.ts +33 -0
- package/dist/runtime/instance.d.ts.map +1 -0
- package/dist/runtime/instance.js +148 -0
- package/dist/runtime/instance.js.map +1 -0
- package/dist/runtime/lock.d.ts +33 -0
- package/dist/runtime/lock.d.ts.map +1 -0
- package/dist/runtime/lock.js +105 -0
- package/dist/runtime/lock.js.map +1 -0
- package/dist/runtime/paths.d.ts +16 -0
- package/dist/runtime/paths.d.ts.map +1 -0
- package/dist/runtime/paths.js +54 -0
- package/dist/runtime/paths.js.map +1 -0
- package/dist/runtime/state.d.ts +24 -0
- package/dist/runtime/state.d.ts.map +1 -0
- package/dist/runtime/state.js +71 -0
- package/dist/runtime/state.js.map +1 -0
- package/dist/runtime/unitup.d.ts +44 -0
- package/dist/runtime/unitup.d.ts.map +1 -0
- package/dist/runtime/unitup.js +134 -0
- package/dist/runtime/unitup.js.map +1 -0
- package/dist/server/analytics.d.ts +47 -0
- package/dist/server/analytics.d.ts.map +1 -0
- package/dist/server/analytics.js +327 -0
- package/dist/server/analytics.js.map +1 -0
- package/dist/server/app.d.ts +249 -0
- package/dist/server/app.d.ts.map +1 -0
- package/dist/server/app.js +1332 -0
- package/dist/server/app.js.map +1 -0
- package/dist/server/context.d.ts +12 -0
- package/dist/server/context.d.ts.map +1 -0
- package/dist/server/context.js +52 -0
- package/dist/server/context.js.map +1 -0
- package/dist/server/hono.d.ts +54 -0
- package/dist/server/hono.d.ts.map +1 -0
- package/dist/server/hono.js +423 -0
- package/dist/server/hono.js.map +1 -0
- package/dist/server/inspector.d.ts +21 -0
- package/dist/server/inspector.d.ts.map +1 -0
- package/dist/server/inspector.js +834 -0
- package/dist/server/inspector.js.map +1 -0
- package/dist/server/mcp.d.ts +41 -0
- package/dist/server/mcp.d.ts.map +1 -0
- package/dist/server/mcp.js +425 -0
- package/dist/server/mcp.js.map +1 -0
- package/dist/transport/http.d.ts +14 -0
- package/dist/transport/http.d.ts.map +1 -0
- package/dist/transport/http.js +48 -0
- package/dist/transport/http.js.map +1 -0
- package/dist/transport/proxy.d.ts +12 -0
- package/dist/transport/proxy.d.ts.map +1 -0
- package/dist/transport/proxy.js +115 -0
- package/dist/transport/proxy.js.map +1 -0
- package/dist/types.d.ts +602 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/browser.d.ts +6 -0
- package/dist/utils/browser.d.ts.map +1 -0
- package/dist/utils/browser.js +39 -0
- package/dist/utils/browser.js.map +1 -0
- package/dist/utils/cache.d.ts +43 -0
- package/dist/utils/cache.d.ts.map +1 -0
- package/dist/utils/cache.js +126 -0
- package/dist/utils/cache.js.map +1 -0
- package/dist/utils/coercion.d.ts +38 -0
- package/dist/utils/coercion.d.ts.map +1 -0
- package/dist/utils/coercion.js +175 -0
- package/dist/utils/coercion.js.map +1 -0
- package/dist/utils/completion.d.ts +30 -0
- package/dist/utils/completion.d.ts.map +1 -0
- package/dist/utils/completion.js +79 -0
- package/dist/utils/completion.js.map +1 -0
- package/dist/utils/media.d.ts +65 -0
- package/dist/utils/media.d.ts.map +1 -0
- package/dist/utils/media.js +305 -0
- package/dist/utils/media.js.map +1 -0
- package/dist/utils/middleware.d.ts +48 -0
- package/dist/utils/middleware.d.ts.map +1 -0
- package/dist/utils/middleware.js +133 -0
- package/dist/utils/middleware.js.map +1 -0
- package/dist/utils/openapi.d.ts +102 -0
- package/dist/utils/openapi.d.ts.map +1 -0
- package/dist/utils/openapi.js +368 -0
- package/dist/utils/openapi.js.map +1 -0
- package/dist/utils/progress.d.ts +26 -0
- package/dist/utils/progress.d.ts.map +1 -0
- package/dist/utils/progress.js +91 -0
- package/dist/utils/progress.js.map +1 -0
- package/dist/utils/queue.d.ts +51 -0
- package/dist/utils/queue.d.ts.map +1 -0
- package/dist/utils/queue.js +136 -0
- package/dist/utils/queue.js.map +1 -0
- package/dist/utils/retry.d.ts +26 -0
- package/dist/utils/retry.d.ts.map +1 -0
- package/dist/utils/retry.js +125 -0
- package/dist/utils/retry.js.map +1 -0
- package/dist/utils/roots.d.ts +21 -0
- package/dist/utils/roots.d.ts.map +1 -0
- package/dist/utils/roots.js +74 -0
- package/dist/utils/roots.js.map +1 -0
- package/dist/utils/sampling.d.ts +129 -0
- package/dist/utils/sampling.d.ts.map +1 -0
- package/dist/utils/sampling.js +177 -0
- package/dist/utils/sampling.js.map +1 -0
- package/dist/utils/security.d.ts +35 -0
- package/dist/utils/security.d.ts.map +1 -0
- package/dist/utils/security.js +113 -0
- package/dist/utils/security.js.map +1 -0
- package/dist/utils/validation.d.ts +52 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +176 -0
- package/dist/utils/validation.js.map +1 -0
- package/package.json +61 -0
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import type { McpServerConfigInput, StartOptions, StopOptions, RestartOptions, ToolDefinition, ToolCallResult, CallOptions, ResourceDefinition, ResourceTemplateDefinition, AnyResourceDefinition, ResourceMatchResult, ReadResourceResult, PromptDefinition, ServerStatus, StartResult, ServerAnalytics, CacheStats, ToolMiddlewareHandler, MiddlewareFilter, CompletionResult } from '../types.js';
|
|
2
|
+
import { AnalyticsCollector } from './analytics.js';
|
|
3
|
+
import { type ResolvedConfig } from '../runtime/config.js';
|
|
4
|
+
import { DefaultLogger } from '../logging/logger.js';
|
|
5
|
+
import { ToolRegistry, type RegisteredTool } from '../registry/tools.js';
|
|
6
|
+
import { ResourceRegistry } from '../registry/resources.js';
|
|
7
|
+
import { SubscriptionRegistry } from '../registry/subscriptions.js';
|
|
8
|
+
import { PromptRegistry } from '../registry/prompts.js';
|
|
9
|
+
import { ContextManager } from './context.js';
|
|
10
|
+
import { type SampleHandler, type ListRootsHandler, type Root, type SampleOptions, type SampleResult } from '../utils/sampling.js';
|
|
11
|
+
import { type OpenApiOptions } from '../utils/openapi.js';
|
|
12
|
+
import { QueueManager } from '../utils/queue.js';
|
|
13
|
+
import { ToolCacheManager } from '../utils/cache.js';
|
|
14
|
+
import { MiddlewareManager } from '../utils/middleware.js';
|
|
15
|
+
export declare class McpApp<TContext = unknown> {
|
|
16
|
+
readonly config: ResolvedConfig<TContext>;
|
|
17
|
+
readonly logger: DefaultLogger;
|
|
18
|
+
readonly toolRegistry: ToolRegistry<TContext>;
|
|
19
|
+
readonly resourceRegistry: ResourceRegistry<TContext>;
|
|
20
|
+
readonly subscriptionRegistry: SubscriptionRegistry;
|
|
21
|
+
readonly promptRegistry: PromptRegistry<TContext>;
|
|
22
|
+
readonly contextManager: ContextManager<TContext>;
|
|
23
|
+
readonly analytics: AnalyticsCollector;
|
|
24
|
+
readonly queueManager: QueueManager;
|
|
25
|
+
readonly cacheManager: ToolCacheManager;
|
|
26
|
+
readonly middlewareManager: MiddlewareManager<TContext>;
|
|
27
|
+
private resourceUpdateListeners;
|
|
28
|
+
private instanceCoordinator;
|
|
29
|
+
private stateManager;
|
|
30
|
+
private lockManager;
|
|
31
|
+
private centralRegistry;
|
|
32
|
+
private httpHandle?;
|
|
33
|
+
private stdioProxyHandle?;
|
|
34
|
+
private sessions;
|
|
35
|
+
private metrics;
|
|
36
|
+
private isOwner;
|
|
37
|
+
private sampleFallback?;
|
|
38
|
+
private listRootsFallback?;
|
|
39
|
+
private rootsListChangedListeners;
|
|
40
|
+
constructor(config: McpServerConfigInput<TContext>);
|
|
41
|
+
/**
|
|
42
|
+
* Registers a global tool middleware that intercepts all tool executions.
|
|
43
|
+
*/
|
|
44
|
+
use(handler: ToolMiddlewareHandler<TContext>): this;
|
|
45
|
+
/**
|
|
46
|
+
* Registers a filtered tool middleware that intercepts matching tools.
|
|
47
|
+
*/
|
|
48
|
+
use(filter: MiddlewareFilter, handler: ToolMiddlewareHandler<TContext>): this;
|
|
49
|
+
/**
|
|
50
|
+
* Registers a tool.
|
|
51
|
+
*/
|
|
52
|
+
tool<TInput = any>(definition: ToolDefinition<TInput, TContext>): this;
|
|
53
|
+
/**
|
|
54
|
+
* Automatically parses an OpenAPI v3 or Swagger v2 specification and registers all operations as MCP tools.
|
|
55
|
+
* Accepts an object, JSON string, file path, or remote URL.
|
|
56
|
+
*/
|
|
57
|
+
fromOpenApi(spec: Record<string, any> | string, options?: OpenApiOptions): Promise<ToolDefinition[]>;
|
|
58
|
+
/**
|
|
59
|
+
* Returns all registered tools.
|
|
60
|
+
*/
|
|
61
|
+
getTools(): RegisteredTool<TContext>[];
|
|
62
|
+
/**
|
|
63
|
+
* Returns a specific registered tool by name.
|
|
64
|
+
*/
|
|
65
|
+
getTool(name: string): RegisteredTool<TContext> | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Invokes a registered tool programmatically by name.
|
|
68
|
+
* Can be called from outside the server or from inside other tools.
|
|
69
|
+
* Includes parameter validation, cycle/recursion detection, timeouts, cancellation, and result auto-normalization.
|
|
70
|
+
*/
|
|
71
|
+
callTool<TResult = any>(name: string, args?: Record<string, any>, optionsOrStack?: CallOptions | string[], internalStack?: string[]): Promise<ToolCallResult<TResult>>;
|
|
72
|
+
/**
|
|
73
|
+
* Resolves the queue key and maxConcurrency for a tool invocation.
|
|
74
|
+
* Returns null if no concurrency limiting is requested.
|
|
75
|
+
*/
|
|
76
|
+
resolveQueueConfig(tool: ToolDefinition<any, TContext>, options?: CallOptions, isChildCall?: boolean): {
|
|
77
|
+
key: string;
|
|
78
|
+
maxConcurrency: number;
|
|
79
|
+
} | null;
|
|
80
|
+
/**
|
|
81
|
+
* Returns current concurrency queue statistics.
|
|
82
|
+
*/
|
|
83
|
+
getQueueStats(): Record<string, {
|
|
84
|
+
active: number;
|
|
85
|
+
pending: number;
|
|
86
|
+
maxConcurrency: number;
|
|
87
|
+
}>;
|
|
88
|
+
/**
|
|
89
|
+
* Clears in-memory cache entries.
|
|
90
|
+
* If toolName is provided, clears only that tool's cached responses.
|
|
91
|
+
* If omitted, clears all cached responses across all tools.
|
|
92
|
+
* Returns the count of evicted entries.
|
|
93
|
+
*/
|
|
94
|
+
clearCache(toolName?: string): number;
|
|
95
|
+
/**
|
|
96
|
+
* Returns current cache statistics (size, hits, misses, evictions).
|
|
97
|
+
*/
|
|
98
|
+
getCacheStats(): CacheStats;
|
|
99
|
+
/**
|
|
100
|
+
* Returns a complete snapshot of tool analytics, execution times, and inter-tool relationships.
|
|
101
|
+
*/
|
|
102
|
+
getAnalytics(): ServerAnalytics;
|
|
103
|
+
/**
|
|
104
|
+
* Returns standard Prometheus-formatted metrics text (exposition format 0.0.4) for scraping.
|
|
105
|
+
*/
|
|
106
|
+
getMetrics(): string;
|
|
107
|
+
/**
|
|
108
|
+
* Resets all recorded analytics counters and history.
|
|
109
|
+
*/
|
|
110
|
+
resetAnalytics(): void;
|
|
111
|
+
/**
|
|
112
|
+
* Registers a dynamic RFC 6570 resource template.
|
|
113
|
+
*/
|
|
114
|
+
resourceTemplate(definition: ResourceTemplateDefinition<TContext>): this;
|
|
115
|
+
/**
|
|
116
|
+
* Registers a static resource or dynamic resource template.
|
|
117
|
+
* If definition contains `uriTemplate` or its `uri` contains template variables `{...}`,
|
|
118
|
+
* it will automatically be registered as a dynamic resource template.
|
|
119
|
+
*/
|
|
120
|
+
resource(definition: AnyResourceDefinition<TContext>): this;
|
|
121
|
+
/**
|
|
122
|
+
* Registers a prompt.
|
|
123
|
+
*/
|
|
124
|
+
prompt<TArgs = any>(definition: PromptDefinition<TArgs, TContext>): this;
|
|
125
|
+
/**
|
|
126
|
+
* Retrieves a registered static resource definition by URI.
|
|
127
|
+
*/
|
|
128
|
+
getResource(uri: string): ResourceDefinition<TContext> | undefined;
|
|
129
|
+
/**
|
|
130
|
+
* Retrieves all registered static resource definitions.
|
|
131
|
+
*/
|
|
132
|
+
getResources(): ResourceDefinition<TContext>[];
|
|
133
|
+
/**
|
|
134
|
+
* Retrieves a registered resource template definition by URI template string or name.
|
|
135
|
+
*/
|
|
136
|
+
getResourceTemplate(nameOrUriTemplate: string): ResourceTemplateDefinition<TContext> | undefined;
|
|
137
|
+
/**
|
|
138
|
+
* Retrieves all registered resource template definitions.
|
|
139
|
+
*/
|
|
140
|
+
getResourceTemplates(): ResourceTemplateDefinition<TContext>[];
|
|
141
|
+
/**
|
|
142
|
+
* Matches a concrete URI against registered resource templates and returns extracted variables.
|
|
143
|
+
*/
|
|
144
|
+
matchResourceTemplate(uri: string): ResourceMatchResult<TContext> | undefined;
|
|
145
|
+
/**
|
|
146
|
+
* Programmatically reads a resource by static URI or template match.
|
|
147
|
+
* Useful for testing, inter-service reads, and direct execution without an MCP client.
|
|
148
|
+
*/
|
|
149
|
+
readResource(uri: string | URL, context?: TContext): Promise<ReadResourceResult>;
|
|
150
|
+
/**
|
|
151
|
+
* Notifies connected MCP clients subscribed to a resource URI that its contents have changed.
|
|
152
|
+
* Sends `notifications/resources/updated` with the updated URI.
|
|
153
|
+
* Returns the count of client sessions successfully notified.
|
|
154
|
+
*/
|
|
155
|
+
notifyResourceUpdated(uri: string | URL): Promise<number>;
|
|
156
|
+
/**
|
|
157
|
+
* Notifies connected MCP clients that the list of available resources has changed.
|
|
158
|
+
* Sends `notifications/resources/list_changed`.
|
|
159
|
+
* Returns the count of client sessions successfully notified.
|
|
160
|
+
*/
|
|
161
|
+
notifyResourceListChanged(): Promise<number>;
|
|
162
|
+
/**
|
|
163
|
+
* Subscribes a local event listener to resource update notifications.
|
|
164
|
+
* Returns an unsubscribe function.
|
|
165
|
+
*/
|
|
166
|
+
onResourceUpdated(listener: (uri: string) => void): () => void;
|
|
167
|
+
/**
|
|
168
|
+
* Returns all active subscribed resource URIs across all sessions or for a specific session.
|
|
169
|
+
*/
|
|
170
|
+
getSubscribedResources(sessionId?: string): string[];
|
|
171
|
+
/**
|
|
172
|
+
* Requests LLM completion/sampling back from the connected client via MCP sampling/createMessage.
|
|
173
|
+
* If running offline or in tests, delegates to any fallback handler configured with app.onSample().
|
|
174
|
+
*/
|
|
175
|
+
sample(input: string | SampleOptions, options?: Partial<SampleOptions>): Promise<SampleResult>;
|
|
176
|
+
/**
|
|
177
|
+
* Requests the list of root workspace directories from the connected client via MCP roots/list.
|
|
178
|
+
*/
|
|
179
|
+
listRoots(): Promise<Root[]>;
|
|
180
|
+
/**
|
|
181
|
+
* Registers a fallback/offline handler for sampling requests.
|
|
182
|
+
*/
|
|
183
|
+
onSample(handler: SampleHandler): this;
|
|
184
|
+
/**
|
|
185
|
+
* Registers a fallback/offline handler for workspace roots requests.
|
|
186
|
+
*/
|
|
187
|
+
onListRoots(handler: ListRootsHandler): this;
|
|
188
|
+
/**
|
|
189
|
+
* Listens for client roots/list_changed notifications.
|
|
190
|
+
* Returns an unbind function.
|
|
191
|
+
*/
|
|
192
|
+
onRootsListChanged(listener: (roots?: Root[]) => void): () => void;
|
|
193
|
+
/**
|
|
194
|
+
* Resolves argument autocompletions for prompts, resource templates, or tools.
|
|
195
|
+
*/
|
|
196
|
+
complete(ref: {
|
|
197
|
+
type: 'ref/prompt' | 'ref/resource' | 'ref/tool' | string;
|
|
198
|
+
name?: string;
|
|
199
|
+
uri?: string;
|
|
200
|
+
}, argument: {
|
|
201
|
+
name: string;
|
|
202
|
+
value: string;
|
|
203
|
+
}): Promise<CompletionResult>;
|
|
204
|
+
/**
|
|
205
|
+
* Returns the HTTP URL of the interactive Web Inspector for this server.
|
|
206
|
+
*/
|
|
207
|
+
getInspectorUrl(host?: string): string;
|
|
208
|
+
/**
|
|
209
|
+
* Retrieves a registered prompt definition by name.
|
|
210
|
+
*/
|
|
211
|
+
getPrompt(name: string): PromptDefinition<any, TContext> | undefined;
|
|
212
|
+
/**
|
|
213
|
+
* Returns the directory where log files are stored.
|
|
214
|
+
*/
|
|
215
|
+
getLogDirectory(): Promise<string>;
|
|
216
|
+
/**
|
|
217
|
+
* Reads recent log entries.
|
|
218
|
+
*/
|
|
219
|
+
readLogs(limit?: number): Promise<string[]>;
|
|
220
|
+
/**
|
|
221
|
+
* Returns the current status of the server.
|
|
222
|
+
*/
|
|
223
|
+
status(): Promise<ServerStatus>;
|
|
224
|
+
/**
|
|
225
|
+
* Starts the server programmatically. If a server is already running,
|
|
226
|
+
* reuses it and returns `{ reused: true, ... }`.
|
|
227
|
+
*/
|
|
228
|
+
start(options?: StartOptions): Promise<StartResult>;
|
|
229
|
+
/**
|
|
230
|
+
* Stops the server if running as owner, or shuts down the running instance.
|
|
231
|
+
*/
|
|
232
|
+
stop(options?: StopOptions): Promise<void>;
|
|
233
|
+
/**
|
|
234
|
+
* Restarts the server. If running in background mode, restarts the Unitup process
|
|
235
|
+
* and waits for /health.
|
|
236
|
+
*/
|
|
237
|
+
restart(options?: RestartOptions): Promise<StartResult>;
|
|
238
|
+
/**
|
|
239
|
+
* Primary entry point for running the executable.
|
|
240
|
+
* Handles CLI commands (info, logs, --dev, etc.) and runs the automatic
|
|
241
|
+
* single-instance MCP server and stdio bridge.
|
|
242
|
+
*/
|
|
243
|
+
run(): Promise<void>;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Creates an MCP server application.
|
|
247
|
+
*/
|
|
248
|
+
export declare function createMcpServer<TContext = unknown>(config: McpServerConfigInput<TContext>): McpApp<TContext>;
|
|
249
|
+
//# sourceMappingURL=app.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/server/app.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,oBAAoB,EACpB,YAAY,EACZ,WAAW,EACX,cAAc,EACd,cAAc,EACd,cAAc,EAEd,WAAW,EACX,kBAAkB,EAClB,0BAA0B,EAC1B,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,WAAW,EAEX,eAAe,EAEf,UAAU,EAEV,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAEjB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAK1E,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAwB,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAI9C,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,IAAI,EACT,KAAK,aAAa,EAClB,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAK9E,OAAO,EAAE,Y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