@@ -30,11 +30,21 @@ function getMCPServers() {
3030 } ,
3131 {
3232 name : 'cf-agents' ,
33- url : `http://localhost:${ state . cfAgentsPort } /mcp` ,
33+ url : `http://localhost:${ state . cfAgentsPort } /public/ mcp` ,
3434 expectedTools : 1 , // Minimum expected tools count
3535 } ,
3636 {
3737 name : 'cf-agents-sse' ,
38+ url : `http://localhost:${ state . cfAgentsPort } /public/sse` ,
39+ expectedTools : 1 , // Minimum expected tools count
40+ } ,
41+ {
42+ name : 'cf-agents-auth' ,
43+ url : `http://localhost:${ state . cfAgentsPort } /mcp` ,
44+ expectedTools : 1 , // Minimum expected tools count
45+ } ,
46+ {
47+ name : 'cf-agents-auth-sse' ,
3848 url : `http://localhost:${ state . cfAgentsPort } /sse` ,
3949 expectedTools : 1 , // Minimum expected tools count
4050 } ,
@@ -216,23 +226,25 @@ describe('MCP Connection Integration Tests', () => {
216226 } )
217227
218228 const testScenarios = [
219- // Working examples with auto transport (should pass )
229+ // Hono examples (MCP only )
220230 { serverName : 'hono-mcp' , transportType : 'auto' as const } ,
221- { serverName : 'cf-agents' , transportType : 'auto' as const } ,
222-
223- // SSE endpoint with SSE transport (should pass)
224- { serverName : 'cf-agents-sse' , transportType : 'sse' as const } ,
225-
226- // Additional test cases for HTTP transport
227231 { serverName : 'hono-mcp' , transportType : 'http' as const } ,
228- { serverName : 'cf-agents' , transportType : 'http' as const } ,
229232
230- // Failing case: SSE endpoint with auto transport (should fail)
233+ // Agents, no auth
234+ { serverName : 'cf-agents' , transportType : 'auto' as const } ,
235+ { serverName : 'cf-agents' , transportType : 'http' as const } ,
236+ { serverName : 'cf-agents-sse' , transportType : 'sse' as const } ,
231237 { serverName : 'cf-agents-sse' , transportType : 'auto' as const } ,
238+
239+ // Agents, with auth
240+ { serverName : 'cf-agents-auth' , transportType : 'auto' as const } ,
241+ { serverName : 'cf-agents-auth' , transportType : 'http' as const } ,
242+ { serverName : 'cf-agents-auth-sse' , transportType : 'sse' as const } ,
243+ { serverName : 'cf-agents-auth-sse' , transportType : 'auto' as const } ,
232244 ]
233245
234246 test . each ( testScenarios ) (
235- 'should connect to $serverName with $transportType transport (expect: $shouldPass) ' ,
247+ 'should connect to $serverName with $transportType transport' ,
236248 async ( { serverName, transportType } ) => {
237249 const servers = getMCPServers ( )
238250 const server = servers . find ( ( s ) => s . name === serverName )
0 commit comments