skedyul 0.2.143 → 0.2.144

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/.build-stamp CHANGED
@@ -1 +1 @@
1
- 1770546562450
1
+ 1770547343130
package/dist/server.js CHANGED
@@ -1070,6 +1070,16 @@ function createDedicatedServerInstance(config, tools, callTool, state, mcpServer
1070
1070
  if (pathname === '/mcp' && req.method === 'POST') {
1071
1071
  try {
1072
1072
  const body = await parseJSONBody(req);
1073
+ // Handle tools/list directly to include custom metadata (timeout, displayName, outputSchema)
1074
+ // The MCP SDK only returns standard fields, so we intercept and return the full metadata
1075
+ if (body?.method === 'tools/list') {
1076
+ sendJSON(res, 200, {
1077
+ jsonrpc: '2.0',
1078
+ id: body.id ?? null,
1079
+ result: { tools },
1080
+ });
1081
+ return;
1082
+ }
1073
1083
  // Handle webhooks/list before passing to MCP SDK transport
1074
1084
  if (body?.method === 'webhooks/list') {
1075
1085
  const webhooks = webhookRegistry
@@ -1087,7 +1097,7 @@ function createDedicatedServerInstance(config, tools, callTool, state, mcpServer
1087
1097
  });
1088
1098
  return;
1089
1099
  }
1090
- // Pass to MCP SDK transport for standard MCP methods
1100
+ // Pass to MCP SDK transport for standard MCP methods (tools/call, etc.)
1091
1101
  const transport = new streamableHttp_js_1.StreamableHTTPServerTransport({
1092
1102
  sessionIdGenerator: undefined,
1093
1103
  enableJsonResponse: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skedyul",
3
- "version": "0.2.143",
3
+ "version": "0.2.144",
4
4
  "description": "The Skedyul SDK for Node.js",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",