File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ describe("protocol tests", () => {
43
43
result : z . string ( ) ,
44
44
} ) ;
45
45
await protocol . request ( request , mockSchema , {
46
- timeout : 100 ,
47
- } ) ; // Short timeout for test
46
+ timeout : 0 ,
47
+ } ) ;
48
48
} catch ( error ) {
49
49
expect ( error ) . toBeInstanceOf ( McpError ) ;
50
50
if ( error instanceof McpError ) {
Original file line number Diff line number Diff line change @@ -100,13 +100,10 @@ export const JSONRPCResponseSchema = z
100
100
. strict ( ) ;
101
101
102
102
/**
103
- * @author : Sumitesh Naithani
104
- * @link : https://docs.trafficserver.apache.org/en/latest/developer-guide/jsonrpc/jsonrpc-node-errors.en.html#standard-errors
105
- * @description : An incomplete set of error codes that may appear in JSON-RPC responses.
106
- * @note : SDK-specific errors should use the server error range (-32000 to -32099), as per JSON-RPC 2.0 specification.
107
- */
103
+ * Error codes defined by the JSON-RPC specification.
104
+ */
108
105
export enum ErrorCode {
109
- // SDK error codes (using server error range)
106
+ // SDK error codes
110
107
ConnectionClosed = - 32000 ,
111
108
RequestTimeout = - 32001 ,
112
109
You can’t perform that action at this time.
0 commit comments