pull/715/head
Travis Fischer 2025-06-07 02:32:09 +07:00
rodzic 77be33c482
commit 8cb6dca4ee
2 zmienionych plików z 24 dodań i 24 usunięć

Wyświetl plik

@ -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 }) }
// ]
// }
// }
// ]
// }
]

Wyświetl plik

@ -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)
}