You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/types.ts
+38-37Lines changed: 38 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -27,30 +27,28 @@ const RequestMetaSchema = z
27
27
})
28
28
.passthrough();
29
29
30
-
constBaseRequestParamsSchema=z
31
-
.object({
32
-
_meta: z.optional(RequestMetaSchema)
33
-
})
34
-
.passthrough();
30
+
constBaseRequestParamsSchema=z.object({
31
+
_meta: z.optional(RequestMetaSchema)
32
+
});
35
33
36
34
exportconstRequestSchema=z.object({
37
35
method: z.string(),
38
-
params: z.optional(BaseRequestParamsSchema)
36
+
params: z.optional(z.record(z.any()))
39
37
});
40
38
41
-
constBaseNotificationParamsSchema=z
42
-
.object({
43
-
/**
44
-
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
exportconstisInitializedNotification=(value: unknown): value is InitializedNotification=>
@@ -406,26 +405,25 @@ export const isInitializedNotification = (value: unknown): value is InitializedN
406
405
* A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected.
* An optional notification from the server to the client, informing it that the list of resources it can read from has changed. This may be issued by servers without any previous subscription from the client.
* An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This may be issued by servers without any previous subscription from the client.
* An optional notification from the server to the client, informing it that the list of tools it offers has changed. This may be issued by servers without any previous subscription from the client.
0 commit comments