diff --git a/apps/e2e/src/fixtures.ts b/apps/e2e/src/fixtures.ts index 14630ddf..52fef201 100644 --- a/apps/e2e/src/fixtures.ts +++ b/apps/e2e/src/fixtures.ts @@ -49,7 +49,7 @@ export type E2ETestFixtureSuite = { debug?: boolean } -// const now = Date.now() +const now = Date.now() export const fixtureSuites: E2ETestFixtureSuite[] = [ { @@ -382,27 +382,27 @@ export const fixtureSuites: E2ETestFixtureSuite[] = [ } } ] + }, + { + title: 'Basic MCP origin "echo" tool call success', + only: true, + debug: true, + fixtures: [ + { + path: '@dev/test-basic-mcp/echo', + request: { + method: 'POST', + json: { + nala: 'kitten', + now + } + }, + response: { + body: [ + { type: 'text', text: JSON.stringify({ nala: 'kitten', now }) } + ] + } + } + ] } - // { - // title: 'Basic MCP origin "echo" tool call success', - // only: true, - // // debug: true, - // fixtures: [ - // { - // path: '@dev/test-basic-mcp/echo', - // request: { - // method: 'POST', - // json: { - // nala: 'kitten', - // now - // } - // }, - // response: { - // body: [ - // { type: 'text', text: JSON.stringify({ nala: 'kitten', now }) } - // ] - // } - // } - // ] - // } ] diff --git a/packages/fixtures/valid/basic-mcp/src/index.ts b/packages/fixtures/valid/basic-mcp/src/index.ts index aa853003..3921d035 100644 --- a/packages/fixtures/valid/basic-mcp/src/index.ts +++ b/packages/fixtures/valid/basic-mcp/src/index.ts @@ -25,7 +25,7 @@ server.addTool({ server.addTool({ name: 'echo', description: 'Echos back the input parameters.', - parameters: z.any(), + parameters: z.record(z.string(), z.any()), execute: async (args) => { return JSON.stringify(args) }