told amp to make my tests better (#14)
Co-authored-by: Glen Maddern <gmaddern@gmaddern.c.groq-143208.internal>
This commit is contained in:
parent
0ea0bc48c6
commit
d80a7e68b0
1 changed files with 513 additions and 412 deletions
48
test/integration/server-configs.ts
Normal file
48
test/integration/server-configs.ts
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
import { join, dirname } from 'path'
|
||||
import { fileURLToPath } from 'url'
|
||||
import { ServerConfig } from './test-utils.js'
|
||||
|
||||
const __dirname = dirname(fileURLToPath(import.meta.url))
|
||||
const rootDir = join(__dirname, '../..')
|
||||
|
||||
/**
|
||||
* Configuration for all MCP servers to test
|
||||
*/
|
||||
export const SERVER_CONFIGS: ServerConfig[] = [
|
||||
{
|
||||
name: 'hono-mcp',
|
||||
directory: join(rootDir, 'examples/servers/hono-mcp'),
|
||||
portKey: 'honoPort',
|
||||
endpoints: [
|
||||
{
|
||||
path: '/mcp',
|
||||
transportTypes: ['auto', 'http'],
|
||||
},
|
||||
],
|
||||
expectedTools: 1,
|
||||
},
|
||||
{
|
||||
name: 'cf-agents',
|
||||
directory: join(rootDir, 'examples/servers/cf-agents'),
|
||||
portKey: 'cfAgentsPort',
|
||||
endpoints: [
|
||||
{
|
||||
path: '/mcp',
|
||||
transportTypes: ['auto', 'http'],
|
||||
},
|
||||
{
|
||||
path: '/sse',
|
||||
transportTypes: ['auto', 'sse'],
|
||||
},
|
||||
{
|
||||
path: '/public/mcp',
|
||||
transportTypes: ['auto', 'http'],
|
||||
},
|
||||
{
|
||||
path: '/public/sse',
|
||||
transportTypes: ['auto', 'sse'],
|
||||
},
|
||||
],
|
||||
expectedTools: 1,
|
||||
},
|
||||
]
|
||||
Loading…
Reference in a new issue