kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
pull/715/head
rodzic
77be33c482
commit
8cb6dca4ee
|
@ -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 }) }
|
||||
// ]
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
]
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue