alepha 0.20.3 → 0.20.4
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/api/audits/index.d.ts.map +1 -1
- package/dist/api/files/index.d.ts.map +1 -1
- package/dist/api/jobs/index.d.ts +14 -14
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/keys/index.d.ts +4 -4
- package/dist/api/organizations/index.d.ts.map +1 -1
- package/dist/api/parameters/index.d.ts +8 -3
- package/dist/api/parameters/index.d.ts.map +1 -1
- package/dist/api/parameters/index.js +20 -4
- package/dist/api/parameters/index.js.map +1 -1
- package/dist/api/payments/index.d.ts.map +1 -1
- package/dist/api/users/index.browser.js +6 -0
- package/dist/api/users/index.browser.js.map +1 -1
- package/dist/api/users/index.d.ts +5037 -139
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +58 -10
- package/dist/api/users/index.js.map +1 -1
- package/dist/bucket/index.d.ts +77 -107
- package/dist/bucket/index.d.ts.map +1 -1
- package/dist/bucket/index.js +148 -4
- package/dist/bucket/index.js.map +1 -1
- package/dist/bucket/index.workerd.js +7 -1
- package/dist/bucket/index.workerd.js.map +1 -1
- package/dist/cache/core/index.d.ts +26 -0
- package/dist/cache/core/index.d.ts.map +1 -1
- package/dist/cache/core/index.js +11 -1
- package/dist/cache/core/index.js.map +1 -1
- package/dist/cache/core/index.workerd.js +11 -1
- package/dist/cache/core/index.workerd.js.map +1 -1
- package/dist/cli/config/index.d.ts +7 -5
- package/dist/cli/config/index.d.ts.map +1 -1
- package/dist/cli/config/index.js +2 -3
- package/dist/cli/config/index.js.map +1 -1
- package/dist/cli/core/index.d.ts +420 -13
- package/dist/cli/core/index.d.ts.map +1 -1
- package/dist/cli/core/index.js +22 -511
- package/dist/cli/core/index.js.map +1 -1
- package/dist/cli/devtools/index.d.ts +4 -8
- package/dist/cli/devtools/index.d.ts.map +1 -1
- package/dist/cli/devtools/index.js +13 -15
- package/dist/cli/devtools/index.js.map +1 -1
- package/dist/cli/platform/index.d.ts +10 -13
- package/dist/cli/platform/index.d.ts.map +1 -1
- package/dist/cli/platform/index.js +18 -15
- package/dist/cli/platform/index.js.map +1 -1
- package/dist/cli/vendor/index.d.ts +10 -13
- package/dist/cli/vendor/index.d.ts.map +1 -1
- package/dist/cli/vendor/index.js +16 -13
- package/dist/cli/vendor/index.js.map +1 -1
- package/dist/core/index.browser.js +27 -3
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +6 -3
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +27 -3
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +27 -3
- package/dist/core/index.native.js.map +1 -1
- package/dist/core/index.workerd.js +27 -3
- package/dist/core/index.workerd.js.map +1 -1
- package/dist/datetime/index.d.ts +69 -10
- package/dist/datetime/index.d.ts.map +1 -1
- package/dist/datetime/index.js +135 -13
- package/dist/datetime/index.js.map +1 -1
- package/dist/email/smtp/index.js +10636 -2
- package/dist/email/smtp/index.js.map +1 -1
- package/dist/fake/index.d.ts +8085 -4
- package/dist/fake/index.d.ts.map +1 -1
- package/dist/fake/index.js +33554 -3
- package/dist/fake/index.js.map +1 -1
- package/dist/lock/core/index.d.ts +30 -2
- package/dist/lock/core/index.d.ts.map +1 -1
- package/dist/lock/core/index.js +35 -12
- package/dist/lock/core/index.js.map +1 -1
- package/dist/mcp/index.d.ts +238 -31
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +198 -71
- package/dist/mcp/index.js.map +1 -1
- package/dist/orm/core/index.browser.js +1 -1
- package/dist/orm/core/index.browser.js.map +1 -1
- package/dist/orm/core/index.bun.js +4 -3
- package/dist/orm/core/index.bun.js.map +1 -1
- package/dist/orm/core/index.d.ts +4877 -9
- package/dist/orm/core/index.d.ts.map +1 -1
- package/dist/orm/core/index.js +4 -3
- package/dist/orm/core/index.js.map +1 -1
- package/dist/orm/postgres/index.d.ts +608 -1
- package/dist/orm/postgres/index.d.ts.map +1 -1
- package/dist/react/core/index.d.ts +102 -1
- package/dist/react/core/index.d.ts.map +1 -1
- package/dist/react/core/index.js +65 -1
- package/dist/react/core/index.js.map +1 -1
- package/dist/react/form/index.d.ts +6 -0
- package/dist/react/form/index.d.ts.map +1 -1
- package/dist/react/form/index.js +7 -7
- package/dist/react/form/index.js.map +1 -1
- package/dist/react/i18n/index.d.ts +7 -1
- package/dist/react/i18n/index.d.ts.map +1 -1
- package/dist/react/i18n/index.js +6 -0
- package/dist/react/i18n/index.js.map +1 -1
- package/dist/react/router/index.browser.js +20 -2
- package/dist/react/router/index.browser.js.map +1 -1
- package/dist/react/router/index.d.ts +36 -4
- package/dist/react/router/index.d.ts.map +1 -1
- package/dist/react/router/index.js +20 -2
- package/dist/react/router/index.js.map +1 -1
- package/dist/react/testing/chunk-6Ep1yQYe.js +16 -0
- package/dist/react/testing/index.d.ts +411 -1
- package/dist/react/testing/index.d.ts.map +1 -1
- package/dist/react/testing/index.js +12293 -13
- package/dist/react/testing/index.js.map +1 -1
- package/dist/react/ui/index.d.ts +195 -1
- package/dist/react/ui/index.d.ts.map +1 -1
- package/dist/react/ui/index.js +61 -1
- package/dist/react/ui/index.js.map +1 -1
- package/dist/scheduler/index.d.ts +84 -3
- package/dist/scheduler/index.d.ts.map +1 -1
- package/dist/scheduler/index.js +390 -1
- package/dist/scheduler/index.js.map +1 -1
- package/dist/scheduler/index.workerd.js +390 -1
- package/dist/scheduler/index.workerd.js.map +1 -1
- package/dist/security/index.d.ts +325 -2
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js +1361 -2
- package/dist/security/index.js.map +1 -1
- package/dist/server/auth/index.d.ts +1054 -1
- package/dist/server/auth/index.d.ts.map +1 -1
- package/dist/server/auth/index.js +1223 -1
- package/dist/server/auth/index.js.map +1 -1
- package/dist/server/core/index.browser.js +10 -3
- package/dist/server/core/index.browser.js.map +1 -1
- package/dist/server/core/index.d.ts.map +1 -1
- package/dist/server/core/index.js +28 -5
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/metrics/index.d.ts +514 -1
- package/dist/server/metrics/index.d.ts.map +1 -1
- package/dist/server/metrics/index.js +4374 -4
- package/dist/server/metrics/index.js.map +1 -1
- package/dist/server/swagger/index.d.ts.map +1 -1
- package/dist/server/swagger/index.js +3 -4
- package/dist/server/swagger/index.js.map +1 -1
- package/dist/websocket/index.browser.js +11 -5
- package/dist/websocket/index.browser.js.map +1 -1
- package/dist/websocket/index.d.ts +3 -1
- package/dist/websocket/index.d.ts.map +1 -1
- package/dist/websocket/index.js +21 -6
- package/dist/websocket/index.js.map +1 -1
- package/package.json +671 -263
- package/src/api/parameters/services/ParameterProvider.ts +21 -4
- package/src/api/users/__tests__/SessionService.spec.ts +99 -0
- package/src/api/users/__tests__/UserJobs.spec.ts +67 -0
- package/src/api/users/atoms/realmAuthSettingsAtom.ts +15 -0
- package/src/api/users/entities/sessions.ts +6 -0
- package/src/api/users/jobs/UserJobs.ts +44 -17
- package/src/api/users/providers/RealmProvider.ts +4 -0
- package/src/api/users/services/SessionService.ts +27 -0
- package/src/bucket/__tests__/NodeS3BucketProvider.spec.ts +74 -0
- package/src/bucket/index.ts +19 -2
- package/src/bucket/primitives/$bucket.ts +9 -1
- package/src/bucket/providers/CloudflareR2Provider.ts +2 -137
- package/src/bucket/providers/NodeS3BucketProvider.ts +218 -0
- package/src/cache/core/index.ts +29 -0
- package/src/cache/core/primitives/$cache.ts +14 -1
- package/src/cli/config/defineConfig.ts +13 -15
- package/src/cli/core/__tests__/init.spec.ts +6 -7
- package/src/cli/core/services/ProjectScaffolder.ts +18 -14
- package/src/cli/core/tasks/BuildCloudflareTask.ts +5 -0
- package/src/cli/core/templates/agentMd.ts +2 -10
- package/src/cli/core/templates/saasAdminLayoutTsx.ts +3 -3
- package/src/cli/devtools/index.ts +12 -26
- package/src/cli/platform/index.ts +15 -24
- package/src/cli/vendor/atoms/vendorOptions.ts +1 -1
- package/src/cli/vendor/index.ts +14 -23
- package/src/core/Alepha.ts +11 -1
- package/src/core/helpers/ref.ts +18 -0
- package/src/core/index.shared.ts +1 -0
- package/src/core/providers/SchemaValidator.ts +9 -1
- package/src/core/providers/TypeProvider.ts +1 -2
- package/src/datetime/REFACTORING.md +118 -0
- package/src/datetime/providers/DateTimeProvider.ts +203 -24
- package/src/lock/core/index.ts +31 -0
- package/src/lock/core/primitives/$lock.ts +14 -1
- package/src/mcp/__tests__/jsonrpc.spec.ts +1 -1
- package/src/mcp/helpers/jsonrpc.ts +26 -1
- package/src/mcp/index.ts +10 -5
- package/src/mcp/interfaces/McpTypes.ts +83 -6
- package/src/mcp/primitives/$prompt.ts +18 -1
- package/src/mcp/primitives/$resource.ts +18 -1
- package/src/mcp/primitives/$tool.ts +83 -7
- package/src/mcp/providers/McpServerProvider.ts +74 -16
- package/src/mcp/transports/StreamableHttpMcpTransport.ts +226 -0
- package/src/orm/REFACTORING.md +330 -0
- package/src/orm/core/primitives/$transactional.ts +11 -0
- package/src/orm/core/schemas/updateSchema.ts +1 -1
- package/src/orm/core/services/PgRelationManager.ts +4 -2
- package/src/react/core/__tests__/useQuery.browser.spec.tsx +86 -0
- package/src/react/core/hooks/useQuery.ts +153 -0
- package/src/react/core/index.ts +1 -0
- package/src/react/form/services/FormModel.ts +15 -6
- package/src/react/form/services/parseField.ts +8 -0
- package/src/react/i18n/providers/I18nProvider.ts +8 -2
- package/src/react/router/__tests__/$page.spec.tsx +0 -16
- package/src/react/router/__tests__/ssr.spec.tsx +339 -0
- package/src/react/router/primitives/$page.ts +28 -4
- package/src/react/router/providers/ReactPageProvider.ts +27 -9
- package/src/react/ui/atoms/uiThemeListAtom.ts +36 -0
- package/src/react/ui/index.ts +6 -0
- package/src/react/ui/services/SchemaControl.ts +209 -0
- package/src/security/primitives/$issuer.ts +6 -3
- package/src/server/core/__tests__/ServerRouterProvider-serializationError.spec.ts +75 -0
- package/src/server/core/__tests__/ServerRouterProvider-validationError.spec.ts +306 -0
- package/src/server/core/errors/ValidationError.ts +13 -1
- package/src/server/core/primitives/$action.ts +16 -5
- package/src/server/core/providers/ServerRouterProvider.ts +26 -4
- package/src/server/swagger/providers/ServerSwaggerProvider.ts +5 -7
- package/src/websocket/providers/NodeWebSocketServerProvider.ts +10 -4
- package/src/websocket/services/WebSocketClient.ts +11 -5
- package/src/mcp/transports/SseMcpTransport.ts +0 -182
package/dist/mcp/index.d.ts
CHANGED
|
@@ -76,13 +76,45 @@ interface McpCapabilities {
|
|
|
76
76
|
resources?: Record<string, never>;
|
|
77
77
|
prompts?: Record<string, never>;
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Spec 2025-11-25: optional `description` aligns with the MCP registry's
|
|
81
|
+
* `server.json` format and provides human-readable context during init.
|
|
82
|
+
*/
|
|
79
83
|
interface McpServerInfo {
|
|
80
84
|
name: string;
|
|
81
85
|
version: string;
|
|
86
|
+
description?: string;
|
|
82
87
|
}
|
|
83
88
|
interface McpClientInfo {
|
|
84
89
|
name: string;
|
|
85
90
|
version: string;
|
|
91
|
+
description?: string;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Icon descriptor (spec 2025-11-25 / SEP-973). Mirrors web app manifest
|
|
95
|
+
* icon shape — clients render these in tool palettes / picker UIs.
|
|
96
|
+
*/
|
|
97
|
+
interface McpIcon {
|
|
98
|
+
src: string;
|
|
99
|
+
mimeType?: string;
|
|
100
|
+
sizes?: string;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Tool annotations (spec 2025-03-26+). Hints to the client about how to
|
|
104
|
+
* present and gate the tool. None are guarantees — the client uses these
|
|
105
|
+
* heuristically (e.g. to show a confirmation prompt for destructive tools).
|
|
106
|
+
*/
|
|
107
|
+
interface McpToolAnnotations {
|
|
108
|
+
/** Human-friendly display title (distinct from `name`, the programmatic id). */
|
|
109
|
+
title?: string;
|
|
110
|
+
/** Tool reads only; safe to auto-approve. */
|
|
111
|
+
readOnlyHint?: boolean;
|
|
112
|
+
/** Tool may delete or overwrite data; client should require confirmation. */
|
|
113
|
+
destructiveHint?: boolean;
|
|
114
|
+
/** Calling the tool with the same args twice yields the same end state. */
|
|
115
|
+
idempotentHint?: boolean;
|
|
116
|
+
/** Tool interacts with the open world (network, etc.) vs. a closed system. */
|
|
117
|
+
openWorldHint?: boolean;
|
|
86
118
|
}
|
|
87
119
|
interface McpInitializeParams {
|
|
88
120
|
protocolVersion: string;
|
|
@@ -96,13 +128,26 @@ interface McpInitializeResult {
|
|
|
96
128
|
}
|
|
97
129
|
interface McpToolDescriptor {
|
|
98
130
|
name: string;
|
|
131
|
+
/** Human-friendly display label (spec 2025-11-25). Distinct from `name`. */
|
|
132
|
+
title?: string;
|
|
99
133
|
description: string;
|
|
100
134
|
inputSchema: McpJsonSchema;
|
|
135
|
+
/** Output schema enabling `structuredContent` on call results (spec 2025-06-18). */
|
|
136
|
+
outputSchema?: McpJsonSchema;
|
|
137
|
+
/** Behavior hints (spec 2025-03-26+). */
|
|
138
|
+
annotations?: McpToolAnnotations;
|
|
139
|
+
/** Optional icons (spec 2025-11-25 / SEP-973). */
|
|
140
|
+
icons?: McpIcon[];
|
|
141
|
+
/** Arbitrary metadata passthrough (spec 2025-06-18+). */
|
|
142
|
+
_meta?: Record<string, unknown>;
|
|
101
143
|
}
|
|
102
144
|
interface McpJsonSchema {
|
|
103
145
|
type: string;
|
|
104
146
|
properties?: Record<string, unknown>;
|
|
105
147
|
required?: string[];
|
|
148
|
+
/** JSON Schema dialect (spec 2025-11-25 / SEP-1613 — defaults to 2020-12). */
|
|
149
|
+
$schema?: string;
|
|
150
|
+
[key: string]: unknown;
|
|
106
151
|
}
|
|
107
152
|
interface McpToolCallParams {
|
|
108
153
|
name: string;
|
|
@@ -110,19 +155,52 @@ interface McpToolCallParams {
|
|
|
110
155
|
}
|
|
111
156
|
interface McpToolCallResult {
|
|
112
157
|
content: McpContent[];
|
|
158
|
+
/**
|
|
159
|
+
* Structured tool output (spec 2025-06-18). When the tool declares an
|
|
160
|
+
* `outputSchema`, the server MUST populate `structuredContent`; the
|
|
161
|
+
* `content` array carrying a JSON-stringified text block is kept as
|
|
162
|
+
* a back-compat fallback for older clients.
|
|
163
|
+
*/
|
|
164
|
+
structuredContent?: unknown;
|
|
113
165
|
isError?: boolean;
|
|
166
|
+
_meta?: Record<string, unknown>;
|
|
114
167
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
168
|
+
/**
|
|
169
|
+
* Discriminated content union covering text, image, audio (added 2025-03-26),
|
|
170
|
+
* inlined resources, and resource links (added 2025-06-18).
|
|
171
|
+
*/
|
|
172
|
+
type McpContent = {
|
|
173
|
+
type: "text";
|
|
174
|
+
text: string;
|
|
175
|
+
} | {
|
|
176
|
+
type: "image";
|
|
177
|
+
data: string;
|
|
178
|
+
mimeType: string;
|
|
179
|
+
} | {
|
|
180
|
+
type: "audio";
|
|
181
|
+
data: string;
|
|
182
|
+
mimeType: string;
|
|
183
|
+
} | {
|
|
184
|
+
type: "resource";
|
|
185
|
+
resource: McpResourceContent;
|
|
186
|
+
} | {
|
|
187
|
+
type: "resource_link";
|
|
188
|
+
uri: string;
|
|
189
|
+
name: string;
|
|
190
|
+
description?: string;
|
|
119
191
|
mimeType?: string;
|
|
120
|
-
}
|
|
192
|
+
};
|
|
121
193
|
interface McpResourceDescriptor {
|
|
122
194
|
uri: string;
|
|
123
195
|
name: string;
|
|
196
|
+
/** Human-friendly display label (spec 2025-11-25). Distinct from `name`. */
|
|
197
|
+
title?: string;
|
|
124
198
|
description?: string;
|
|
125
199
|
mimeType?: string;
|
|
200
|
+
/** Optional icons (spec 2025-11-25 / SEP-973). */
|
|
201
|
+
icons?: McpIcon[];
|
|
202
|
+
/** Arbitrary metadata passthrough (spec 2025-06-18+). */
|
|
203
|
+
_meta?: Record<string, unknown>;
|
|
126
204
|
}
|
|
127
205
|
interface McpResourceReadParams {
|
|
128
206
|
uri: string;
|
|
@@ -138,8 +216,14 @@ interface McpResourceContent {
|
|
|
138
216
|
}
|
|
139
217
|
interface McpPromptDescriptor {
|
|
140
218
|
name: string;
|
|
219
|
+
/** Human-friendly display label (spec 2025-11-25). Distinct from `name`. */
|
|
220
|
+
title?: string;
|
|
141
221
|
description?: string;
|
|
142
222
|
arguments?: McpPromptArgument[];
|
|
223
|
+
/** Optional icons (spec 2025-11-25 / SEP-973). */
|
|
224
|
+
icons?: McpIcon[];
|
|
225
|
+
/** Arbitrary metadata passthrough (spec 2025-06-18+). */
|
|
226
|
+
_meta?: Record<string, unknown>;
|
|
143
227
|
}
|
|
144
228
|
interface McpPromptArgument {
|
|
145
229
|
name: string;
|
|
@@ -211,7 +295,19 @@ interface PromptMessage {
|
|
|
211
295
|
//#endregion
|
|
212
296
|
//#region ../../src/mcp/helpers/jsonrpc.d.ts
|
|
213
297
|
declare const JSONRPC_VERSION: "2.0";
|
|
214
|
-
|
|
298
|
+
/**
|
|
299
|
+
* The latest MCP protocol revision Alepha targets.
|
|
300
|
+
* See {@link SUPPORTED_PROTOCOL_VERSIONS} for the full negotiation list.
|
|
301
|
+
*/
|
|
302
|
+
declare const MCP_PROTOCOL_VERSION: "2025-11-25";
|
|
303
|
+
/**
|
|
304
|
+
* Protocol versions Alepha will accept during `initialize` negotiation,
|
|
305
|
+
* highest preference first. The server echoes back whichever version the
|
|
306
|
+
* client requested if it appears here, otherwise picks the first entry.
|
|
307
|
+
*/
|
|
308
|
+
declare const SUPPORTED_PROTOCOL_VERSIONS: readonly ["2025-11-25", "2025-06-18", "2025-03-26", "2024-11-05"];
|
|
309
|
+
type SupportedProtocolVersion = (typeof SUPPORTED_PROTOCOL_VERSIONS)[number];
|
|
310
|
+
declare const isSupportedProtocolVersion: (v: unknown) => v is SupportedProtocolVersion;
|
|
215
311
|
declare const JsonRpcErrorCodes: {
|
|
216
312
|
readonly PARSE_ERROR: -32700;
|
|
217
313
|
readonly INVALID_REQUEST: -32600;
|
|
@@ -298,6 +394,15 @@ interface ResourcePrimitiveOptions {
|
|
|
298
394
|
* @example "User Profile"
|
|
299
395
|
*/
|
|
300
396
|
name?: string;
|
|
397
|
+
/**
|
|
398
|
+
* Human-friendly display title (spec 2025-11-25). Distinct from `name`,
|
|
399
|
+
* which remains the programmatic identifier.
|
|
400
|
+
*/
|
|
401
|
+
title?: string;
|
|
402
|
+
/**
|
|
403
|
+
* Optional icons surfaced in client UIs (spec 2025-11-25 / SEP-973).
|
|
404
|
+
*/
|
|
405
|
+
icons?: McpIcon[];
|
|
301
406
|
/**
|
|
302
407
|
* Description of what this resource contains.
|
|
303
408
|
*
|
|
@@ -417,6 +522,14 @@ interface ToolPrimitiveOptions<T extends ToolPrimitiveSchema> {
|
|
|
417
522
|
* @example "get_weather"
|
|
418
523
|
*/
|
|
419
524
|
name?: string;
|
|
525
|
+
/**
|
|
526
|
+
* Human-friendly display title (spec 2025-11-25). Distinct from `name`,
|
|
527
|
+
* which remains the programmatic identifier. Clients use `title` in
|
|
528
|
+
* tool palettes / picker UIs.
|
|
529
|
+
*
|
|
530
|
+
* @example "Search Lore"
|
|
531
|
+
*/
|
|
532
|
+
title?: string;
|
|
420
533
|
/**
|
|
421
534
|
* A human-readable description of what the tool does.
|
|
422
535
|
*
|
|
@@ -427,6 +540,16 @@ interface ToolPrimitiveOptions<T extends ToolPrimitiveSchema> {
|
|
|
427
540
|
* @example "Retrieve current weather data for a given location"
|
|
428
541
|
*/
|
|
429
542
|
description: string;
|
|
543
|
+
/**
|
|
544
|
+
* Behavior hints (spec 2025-03-26+). Clients use these to gate UI prompts
|
|
545
|
+
* (e.g. require confirmation before a tool with `destructiveHint: true`).
|
|
546
|
+
* None are guarantees — they are heuristics for the client, not the model.
|
|
547
|
+
*/
|
|
548
|
+
annotations?: McpToolAnnotations;
|
|
549
|
+
/**
|
|
550
|
+
* Icons surfaced in client tool palettes / picker UIs (spec 2025-11-25).
|
|
551
|
+
*/
|
|
552
|
+
icons?: McpIcon[];
|
|
430
553
|
/**
|
|
431
554
|
* TypeBox schema defining the tool's parameters and result type.
|
|
432
555
|
*
|
|
@@ -460,6 +583,12 @@ declare class ToolPrimitive<T extends ToolPrimitiveSchema> extends Primitive<Too
|
|
|
460
583
|
* Returns the description of the tool.
|
|
461
584
|
*/
|
|
462
585
|
get description(): string;
|
|
586
|
+
/**
|
|
587
|
+
* Whether the tool declared a result schema. When true, `tools/call`
|
|
588
|
+
* responses include `structuredContent` populated with the validated
|
|
589
|
+
* result (spec 2025-06-18).
|
|
590
|
+
*/
|
|
591
|
+
hasOutputSchema(): boolean;
|
|
463
592
|
protected onInit(): void;
|
|
464
593
|
/**
|
|
465
594
|
* Execute the tool with the given parameters.
|
|
@@ -471,12 +600,23 @@ declare class ToolPrimitive<T extends ToolPrimitiveSchema> extends Primitive<Too
|
|
|
471
600
|
execute(params: unknown, context?: McpContext): Promise<ToolHandlerResult<T>>;
|
|
472
601
|
/**
|
|
473
602
|
* Convert the tool to an MCP tool descriptor for protocol messages.
|
|
603
|
+
*
|
|
604
|
+
* Emits the spec 2025-11-25 surface: `title`, `annotations`, `icons`,
|
|
605
|
+
* and (when `schema.result` is defined) `outputSchema` so the server
|
|
606
|
+
* can populate `structuredContent` on call results.
|
|
474
607
|
*/
|
|
475
608
|
toDescriptor(): McpToolDescriptor;
|
|
476
609
|
/**
|
|
477
610
|
* Convert a TypeBox schema to JSON Schema format.
|
|
611
|
+
*
|
|
612
|
+
* Emits the 2020-12 dialect annotation at the root (spec 2025-11-25 /
|
|
613
|
+
* SEP-1613 — JSON Schema 2020-12 is the default dialect for MCP).
|
|
614
|
+
* The TypeBox shapes Alepha emits today are already 2020-12-compatible;
|
|
615
|
+
* this is just the dialect declaration.
|
|
478
616
|
*/
|
|
479
|
-
protected schemaToJsonSchema(schema: TObject
|
|
617
|
+
protected schemaToJsonSchema(schema: TObject, options?: {
|
|
618
|
+
root?: boolean;
|
|
619
|
+
}): McpJsonSchema;
|
|
480
620
|
/**
|
|
481
621
|
* Convert a single property schema to JSON Schema format.
|
|
482
622
|
*/
|
|
@@ -500,7 +640,19 @@ declare class McpServerProvider {
|
|
|
500
640
|
protected readonly resources: Map<string, ResourcePrimitive>;
|
|
501
641
|
protected readonly prompts: Map<string, PromptPrimitive<any>>;
|
|
502
642
|
protected initialized: boolean;
|
|
503
|
-
|
|
643
|
+
/**
|
|
644
|
+
* Protocol version negotiated with the client during `initialize`.
|
|
645
|
+
* Used by transports to validate the `MCP-Protocol-Version` header on
|
|
646
|
+
* subsequent HTTP requests (per spec 2025-06-18+).
|
|
647
|
+
*/
|
|
648
|
+
negotiatedVersion: string;
|
|
649
|
+
/**
|
|
650
|
+
* Server identity returned during `initialize`. Consumers may override
|
|
651
|
+
* fields directly (e.g. `mcpServer.serverInfo = { name: "roadmap-mcp",
|
|
652
|
+
* version: "0.20.3", description: "..." }`) — the `description` field
|
|
653
|
+
* is supported per spec 2025-11-25 (minor change #2).
|
|
654
|
+
*/
|
|
655
|
+
serverInfo: McpServerInfo;
|
|
504
656
|
/**
|
|
505
657
|
* Register a tool with the MCP server.
|
|
506
658
|
*/
|
|
@@ -630,6 +782,11 @@ interface PromptPrimitiveOptions<T extends TObject> {
|
|
|
630
782
|
* @example "code-review"
|
|
631
783
|
*/
|
|
632
784
|
name?: string;
|
|
785
|
+
/**
|
|
786
|
+
* Human-friendly display title (spec 2025-11-25). Distinct from `name`,
|
|
787
|
+
* which remains the programmatic identifier.
|
|
788
|
+
*/
|
|
789
|
+
title?: string;
|
|
633
790
|
/**
|
|
634
791
|
* Description of what this prompt does.
|
|
635
792
|
*
|
|
@@ -638,6 +795,10 @@ interface PromptPrimitiveOptions<T extends TObject> {
|
|
|
638
795
|
* @example "Generate a personalized greeting message"
|
|
639
796
|
*/
|
|
640
797
|
description?: string;
|
|
798
|
+
/**
|
|
799
|
+
* Optional icons surfaced in client UIs (spec 2025-11-25 / SEP-973).
|
|
800
|
+
*/
|
|
801
|
+
icons?: McpIcon[];
|
|
641
802
|
/**
|
|
642
803
|
* TypeBox schema defining the prompt arguments.
|
|
643
804
|
*
|
|
@@ -684,28 +845,68 @@ declare class PromptPrimitive<T extends TObject> extends Primitive<PromptPrimiti
|
|
|
684
845
|
protected schemaToArguments(schema: TObject): McpPromptArgument[];
|
|
685
846
|
}
|
|
686
847
|
//#endregion
|
|
687
|
-
//#region ../../src/mcp/transports/
|
|
848
|
+
//#region ../../src/mcp/transports/StreamableHttpMcpTransport.d.ts
|
|
849
|
+
declare const mcpStreamableHttpOptions: _$alepha.Atom<_$alepha.TObject<{
|
|
850
|
+
/**
|
|
851
|
+
* Path for the MCP endpoint. Single endpoint for both requests and
|
|
852
|
+
* (optional) server-streamed responses, per spec 2025-03-26+.
|
|
853
|
+
*/
|
|
854
|
+
path: _$alepha.TString;
|
|
855
|
+
/**
|
|
856
|
+
* Allow-list of `Origin` header values accepted on incoming requests.
|
|
857
|
+
* Empty array (default) means "allow any". When set, browser-originated
|
|
858
|
+
* requests with a non-matching `Origin` are rejected with 403 Forbidden,
|
|
859
|
+
* blocking DNS-rebinding attacks against localhost MCP servers.
|
|
860
|
+
*
|
|
861
|
+
* Server-to-server callers (no `Origin` header) are always allowed.
|
|
862
|
+
*
|
|
863
|
+
* Spec 2025-11-25, PR #1439.
|
|
864
|
+
*/
|
|
865
|
+
allowedOrigins: _$alepha.TArray<_$alepha.TString>;
|
|
866
|
+
}>, "alepha.mcp.streamableHttp.options">;
|
|
688
867
|
declare const mcpSseOptions: _$alepha.Atom<_$alepha.TObject<{
|
|
689
868
|
/**
|
|
690
|
-
* Path for the MCP
|
|
869
|
+
* Path for the MCP endpoint. Single endpoint for both requests and
|
|
870
|
+
* (optional) server-streamed responses, per spec 2025-03-26+.
|
|
691
871
|
*/
|
|
692
872
|
path: _$alepha.TString;
|
|
693
|
-
|
|
873
|
+
/**
|
|
874
|
+
* Allow-list of `Origin` header values accepted on incoming requests.
|
|
875
|
+
* Empty array (default) means "allow any". When set, browser-originated
|
|
876
|
+
* requests with a non-matching `Origin` are rejected with 403 Forbidden,
|
|
877
|
+
* blocking DNS-rebinding attacks against localhost MCP servers.
|
|
878
|
+
*
|
|
879
|
+
* Server-to-server callers (no `Origin` header) are always allowed.
|
|
880
|
+
*
|
|
881
|
+
* Spec 2025-11-25, PR #1439.
|
|
882
|
+
*/
|
|
883
|
+
allowedOrigins: _$alepha.TArray<_$alepha.TString>;
|
|
884
|
+
}>, "alepha.mcp.streamableHttp.options">;
|
|
694
885
|
/**
|
|
695
|
-
*
|
|
886
|
+
* Streamable HTTP transport for MCP communication.
|
|
696
887
|
*
|
|
697
|
-
*
|
|
698
|
-
*
|
|
888
|
+
* Implements the 2025-03-26+ Streamable HTTP transport: a single `/mcp`
|
|
889
|
+
* endpoint that accepts JSON-RPC over POST and returns either
|
|
890
|
+
* `application/json` (single response, the default) or
|
|
891
|
+
* `text/event-stream` (when the server wants to stream multiple messages).
|
|
699
892
|
*
|
|
700
|
-
*
|
|
701
|
-
* - GET
|
|
702
|
-
*
|
|
893
|
+
* Designed for serverless deployment (Cloudflare Workers, etc.) — there is
|
|
894
|
+
* no long-lived GET stream. GET on the endpoint returns 405 Method Not
|
|
895
|
+
* Allowed; clients that want server-initiated push must rely on the POST
|
|
896
|
+
* response stream when the server upgrades to SSE for that particular call.
|
|
897
|
+
*
|
|
898
|
+
* Spec compliance:
|
|
899
|
+
* - 2025-06-18: validates `MCP-Protocol-Version` header on every request
|
|
900
|
+
* after `initialize` against the version negotiated and stored on
|
|
901
|
+
* `McpServerProvider`.
|
|
902
|
+
* - 2025-11-25: rejects requests with a non-allow-listed `Origin` header
|
|
903
|
+
* (PR #1439). See {@link mcpStreamableHttpOptions.allowedOrigins}.
|
|
703
904
|
*
|
|
704
905
|
* @example
|
|
705
906
|
* ```ts
|
|
706
907
|
* import { Alepha, run } from "alepha";
|
|
707
908
|
* import { AlephaServer } from "alepha/server";
|
|
708
|
-
* import { AlephaMcp,
|
|
909
|
+
* import { AlephaMcp, StreamableHttpMcpTransport } from "alepha/mcp";
|
|
709
910
|
*
|
|
710
911
|
* class MyTools {
|
|
711
912
|
* // ... tool definitions
|
|
@@ -715,35 +916,41 @@ declare const mcpSseOptions: _$alepha.Atom<_$alepha.TObject<{
|
|
|
715
916
|
* Alepha.create()
|
|
716
917
|
* .with(AlephaServer)
|
|
717
918
|
* .with(AlephaMcp)
|
|
718
|
-
* .with(
|
|
919
|
+
* .with(StreamableHttpMcpTransport)
|
|
719
920
|
* .with(MyTools)
|
|
720
921
|
* );
|
|
721
922
|
* ```
|
|
722
923
|
*/
|
|
723
|
-
declare class
|
|
924
|
+
declare class StreamableHttpMcpTransport {
|
|
724
925
|
protected readonly log: _$alepha_logger0.Logger;
|
|
725
926
|
protected readonly options: Readonly<{
|
|
726
927
|
path: string;
|
|
928
|
+
allowedOrigins: string[];
|
|
727
929
|
}>;
|
|
728
930
|
protected readonly mcpServer: McpServerProvider;
|
|
729
931
|
/**
|
|
730
|
-
*
|
|
731
|
-
*
|
|
732
|
-
*
|
|
733
|
-
*
|
|
932
|
+
* GET on the MCP endpoint is not supported in this transport. Returning
|
|
933
|
+
* 405 (rather than serving the legacy two-endpoint SSE pattern) is the
|
|
934
|
+
* spec-allowed response for servers that don't offer server-initiated
|
|
935
|
+
* push outside of an active POST.
|
|
734
936
|
*/
|
|
735
|
-
|
|
937
|
+
notAllowed: _$alepha_server0.RoutePrimitive<_$alepha_server0.RequestConfigSchema>;
|
|
736
938
|
/**
|
|
737
939
|
* POST endpoint for client-to-server JSON-RPC messages.
|
|
940
|
+
* Returns `application/json` for single responses; tools that need to
|
|
941
|
+
* stream progress would upgrade to `text/event-stream` (deferred until a
|
|
942
|
+
* concrete need exists).
|
|
738
943
|
*/
|
|
739
944
|
message: _$alepha_server0.RoutePrimitive<{
|
|
740
945
|
body: _$alepha.TRecord<string, _$alepha.TAny>;
|
|
741
946
|
}>;
|
|
742
|
-
/**
|
|
743
|
-
* Format a message as an SSE event.
|
|
744
|
-
*/
|
|
745
|
-
protected formatSseEvent(event: string, data: string): string;
|
|
746
947
|
}
|
|
948
|
+
/**
|
|
949
|
+
* @deprecated Use {@link StreamableHttpMcpTransport}. The 2024-11-05
|
|
950
|
+
* two-endpoint HTTP+SSE pattern was replaced by Streamable HTTP in spec
|
|
951
|
+
* 2025-03-26. This alias is preserved for one release to ease migration.
|
|
952
|
+
*/
|
|
953
|
+
declare const SseMcpTransport: typeof StreamableHttpMcpTransport;
|
|
747
954
|
//#endregion
|
|
748
955
|
//#region ../../src/mcp/index.d.ts
|
|
749
956
|
/**
|
|
@@ -754,11 +961,11 @@ declare class SseMcpTransport {
|
|
|
754
961
|
* - MCP tool definitions
|
|
755
962
|
* - MCP prompt definitions
|
|
756
963
|
* - JSON-RPC protocol
|
|
757
|
-
* -
|
|
964
|
+
* - Streamable HTTP transport (spec 2025-03-26+)
|
|
758
965
|
*
|
|
759
966
|
* @module alepha.mcp
|
|
760
967
|
*/
|
|
761
968
|
declare const AlephaMcp: _$alepha.Service<_$alepha.Module>;
|
|
762
969
|
//#endregion
|
|
763
|
-
export { $prompt, $resource, $tool, AlephaMcp, JSONRPC_VERSION, type JsonRpcError, JsonRpcErrorCodes, type JsonRpcNotification, JsonRpcParseError, type JsonRpcRequest, type JsonRpcResponse, MCP_PROTOCOL_VERSION, type McpCapabilities, type McpClientInfo, type McpContent, type McpContext, McpError, McpErrorCodes, McpForbiddenError, type McpInitializeParams, type McpInitializeResult, McpInvalidParamsError, type McpJsonSchema, McpMethodNotFoundError, type McpPromptArgument, type McpPromptContent, type McpPromptDescriptor, type McpPromptGetParams, type McpPromptGetResult, type McpPromptMessage, McpPromptNotFoundError, type McpResourceContent, type McpResourceDescriptor, McpResourceNotFoundError, type McpResourceReadParams, type McpResourceReadResult, type McpServerInfo, McpServerProvider, type McpToolCallParams, type McpToolCallResult, type McpToolDescriptor, McpToolNotFoundError, McpUnauthorizedError, type PromptHandler, type PromptHandlerArgs, type PromptMessage, PromptPrimitive, type PromptPrimitiveOptions, type ResourceContent, type ResourceHandler, type ResourceHandlerArgs, ResourcePrimitive, type ResourcePrimitiveOptions, SseMcpTransport, type ToolHandler, type ToolHandlerArgs, type ToolHandlerResult, ToolPrimitive, type ToolPrimitiveOptions, type ToolPrimitiveSchema, createErrorResponse, createInternalError, createInvalidParamsError, createInvalidRequestError, createMethodNotFoundError, createNotification, createParseError, createResponse, isNotification, isValidJsonRpcRequest, mcpSseOptions, parseMessage };
|
|
970
|
+
export { $prompt, $resource, $tool, AlephaMcp, JSONRPC_VERSION, type JsonRpcError, JsonRpcErrorCodes, type JsonRpcNotification, JsonRpcParseError, type JsonRpcRequest, type JsonRpcResponse, MCP_PROTOCOL_VERSION, type McpCapabilities, type McpClientInfo, type McpContent, type McpContext, McpError, McpErrorCodes, McpForbiddenError, type McpInitializeParams, type McpInitializeResult, McpInvalidParamsError, type McpJsonSchema, McpMethodNotFoundError, type McpPromptArgument, type McpPromptContent, type McpPromptDescriptor, type McpPromptGetParams, type McpPromptGetResult, type McpPromptMessage, McpPromptNotFoundError, type McpResourceContent, type McpResourceDescriptor, McpResourceNotFoundError, type McpResourceReadParams, type McpResourceReadResult, type McpServerInfo, McpServerProvider, type McpToolCallParams, type McpToolCallResult, type McpToolDescriptor, McpToolNotFoundError, McpUnauthorizedError, type PromptHandler, type PromptHandlerArgs, type PromptMessage, PromptPrimitive, type PromptPrimitiveOptions, type ResourceContent, type ResourceHandler, type ResourceHandlerArgs, ResourcePrimitive, type ResourcePrimitiveOptions, SUPPORTED_PROTOCOL_VERSIONS, SseMcpTransport, StreamableHttpMcpTransport, type SupportedProtocolVersion, type ToolHandler, type ToolHandlerArgs, type ToolHandlerResult, ToolPrimitive, type ToolPrimitiveOptions, type ToolPrimitiveSchema, createErrorResponse, createInternalError, createInvalidParamsError, createInvalidRequestError, createMethodNotFoundError, createNotification, createParseError, createResponse, isNotification, isSupportedProtocolVersion, isValidJsonRpcRequest, mcpSseOptions, mcpStreamableHttpOptions, parseMessage };
|
|
764
971
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/mcp/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/mcp/errors/McpError.ts","../../src/mcp/interfaces/McpTypes.ts","../../src/mcp/helpers/jsonrpc.ts","../../src/mcp/primitives/$resource.ts","../../src/mcp/primitives/$tool.ts","../../src/mcp/providers/McpServerProvider.ts","../../src/mcp/primitives/$prompt.ts","../../src/mcp/transports/
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/mcp/errors/McpError.ts","../../src/mcp/interfaces/McpTypes.ts","../../src/mcp/helpers/jsonrpc.ts","../../src/mcp/primitives/$resource.ts","../../src/mcp/primitives/$tool.ts","../../src/mcp/providers/McpServerProvider.ts","../../src/mcp/primitives/$prompt.ts","../../src/mcp/transports/StreamableHttpMcpTransport.ts","../../src/mcp/index.ts"],"mappings":";;;;;;;;;cAOa,aAAA;EAAA,SAGH,YAAA;EAAA,SAAA,SAAA;AAAA;AAAA,cAIG,QAAA,SAAiB,KAAA;EAC5B,IAAA;EACA,IAAA;cAGE,OAAA,UACA,IAAA;AAAA;AAAA,cASS,sBAAA,SAA+B,QAAA;EAC1C,IAAA;cAEY,MAAA;AAAA;AAAA,cAOD,oBAAA,SAA6B,QAAA;EACxC,IAAA;EACA,IAAA;cAEY,IAAA;AAAA;AAAA,cAQD,wBAAA,SAAiC,QAAA;EAC5C,IAAA;EACA,GAAA;cAEY,GAAA;AAAA;AAAA,cAQD,sBAAA,SAA+B,QAAA;EAC1C,IAAA;EACA,MAAA;cAEY,MAAA;AAAA;AAAA,cAQD,qBAAA,SAA8B,QAAA;EACzC,IAAA;cAEY,OAAA;AAAA;AAAA,cAOD,oBAAA,SAA6B,QAAA;EACxC,IAAA;cAEY,OAAA;AAAA;AAAA,cAOD,iBAAA,SAA0B,QAAA;EACrC,IAAA;cAEY,OAAA;AAAA;;;UC5FG,cAAA;EACf,OAAA;EACA,EAAA;EACA,MAAA;EACA,MAAA,GAAS,MAAA;AAAA;AAAA,UAGM,eAAA;EACf,OAAA;EACA,EAAA;EAC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