feat: generate schemas from types, improve type definitions #2859
main.yml
on: pull_request
Matrix: test
build
20s
publish
0s
Annotations
19 errors
|
build
Process completed with exit code 1.
|
|
build:
src/types.ts#L395
'AssertObjectSchema' is assigned a value but never used
|
|
build:
src/types.ts#L79
'RequestParamsSchema' is defined but never used
|
|
build:
src/shared/protocol.ts#L23
'JSONRPCResponse' is defined but never used
|
|
build:
src/generated/sdk.types.ts#L1203
An interface declaring no members is equivalent to its supertype
|
|
test (24)
Process completed with exit code 1.
|
|
test/server/stdio.test.ts > should read multiple messages:
test/server/stdio.test.ts#L68
Error: Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
❯ test/server/stdio.test.ts:68:1
|
|
test/server/elicitation.test.ts > Elicitation Flow > with CfWorker validator > CfWorker: should default missing fields from schema defaults:
src/types.ts#L730
McpError: MCP error -32603: expected { type: 'object', …(2) } to deeply equal { type: 'object', …(2) }
❯ McpError.fromError src/types.ts:730:16
❯ Server._onresponse src/shared/protocol.ts:903:36
❯ InMemoryTransport._transport.onmessage src/shared/protocol.ts:623:22
❯ InMemoryTransport.send src/inMemory.ts:58:34
❯ src/shared/protocol.ts:819:50
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: -32603, data: undefined }
|
|
test/server/elicitation.test.ts > Elicitation Flow > with AJV validator > AJV: should default missing fields from schema defaults:
src/types.ts#L730
McpError: MCP error -32603: expected { type: 'object', …(2) } to deeply equal { type: 'object', …(2) }
❯ McpError.fromError src/types.ts:730:16
❯ Server._onresponse src/shared/protocol.ts:903:36
❯ InMemoryTransport._transport.onmessage src/shared/protocol.ts:623:22
❯ InMemoryTransport.send src/inMemory.ts:58:34
❯ src/shared/protocol.ts:819:50
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: -32603, data: undefined }
|
|
test/client/stdio.test.ts > should read messages:
test/client/stdio.test.ts#L32
Error: Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
❯ test/client/stdio.test.ts:32:1
|
|
test/client/index.test.ts > callToolStream() should yield error with additional properties when not allowed:
test/client/index.test.ts#L3898
AssertionError: expected 'result' to be 'error' // Object.is equality
Expected: "error"
Received: "result"
❯ test/client/index.test.ts:3898:30
|
|
test/client/index.test.ts > outputSchema validation > should fail validation with additional properties when not allowed:
test/client/index.test.ts#L2274
AssertionError: promise resolved "{ content: [], …(1) }" instead of rejecting
- Expected
+ Received
- Error {
- "message": "rejected promise",
+ {
+ "content": [],
+ "structuredContent": {
+ "extraField": "not allowed",
+ "name": "John",
+ },
}
❯ test/client/index.test.ts:2274:62
|
|
test (18)
Process completed with exit code 1.
|
|
test/server/stdio.test.ts > should read multiple messages:
test/server/stdio.test.ts#L68
Error: Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
❯ test/server/stdio.test.ts:68:1
|
|
test/server/elicitation.test.ts > Elicitation Flow > with CfWorker validator > CfWorker: should default missing fields from schema defaults:
src/types.ts#L730
McpError: MCP error -32603: expected { type: 'object', …(2) } to deeply equal { type: 'object', …(2) }
❯ Function.fromError src/types.ts:730:16
❯ Server._onresponse src/shared/protocol.ts:903:36
❯ InMemoryTransport._transport.onmessage src/shared/protocol.ts:623:22
❯ InMemoryTransport.send src/inMemory.ts:58:34
❯ src/shared/protocol.ts:819:50
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: -32603, data: undefined }
|
|
test/server/elicitation.test.ts > Elicitation Flow > with AJV validator > AJV: should default missing fields from schema defaults:
src/types.ts#L730
McpError: MCP error -32603: expected { type: 'object', …(2) } to deeply equal { type: 'object', …(2) }
❯ Function.fromError src/types.ts:730:16
❯ Server._onresponse src/shared/protocol.ts:903:36
❯ InMemoryTransport._transport.onmessage src/shared/protocol.ts:623:22
❯ InMemoryTransport.send src/inMemory.ts:58:34
❯ src/shared/protocol.ts:819:50
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: -32603, data: undefined }
|
|
test/client/stdio.test.ts > should read messages:
test/client/stdio.test.ts#L32
Error: Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
❯ test/client/stdio.test.ts:32:1
|
|
test/client/index.test.ts > callToolStream() should yield error with additional properties when not allowed:
test/client/index.test.ts#L3898
AssertionError: expected 'result' to be 'error' // Object.is equality
Expected: "error"
Received: "result"
❯ test/client/index.test.ts:3898:30
|
|
test/client/index.test.ts > outputSchema validation > should fail validation with additional properties when not allowed:
test/client/index.test.ts#L2274
AssertionError: promise resolved "{ content: [], …(1) }" instead of rejecting
- Expected
+ Received
- Error {
- "message": "rejected promise",
+ {
+ "content": [],
+ "structuredContent": {
+ "extraField": "not allowed",
+ "name": "John",
+ },
}
❯ test/client/index.test.ts:2274:62
|