@@ -13,7 +13,7 @@ This document provides comprehensive steps to test the MACAE MCP Server deployed
1313
1414``` bash
1515# Navigate to MCP server directory
16- cd src/backend/v4/ mcp_server
16+ cd src/mcp_server
1717
1818# Build and run in one command
1919docker build -t macae-mcp-server . && docker run -d --name macae-mcp-server -p 9000:9000 macae-mcp-server python mcp_server.py --transport http --host 0.0.0.0 --port 9000
@@ -24,8 +24,8 @@ docker build -t macae-mcp-server . && docker run -d --name macae-mcp-server -p 9
2424### 1. Build the Docker Image
2525
2626``` bash
27- # Navigate to the MCP server directory
28- cd c: \w orkstation \M icrosoft \g ithub \M ACAE_ME \ s rc\b ackend \v 4 \ m cp_server
27+ # Navigate to the MCP server directory (from repo root)
28+ cd src/ mcp_server
2929
3030# Build the Docker image
3131docker build -t macae-mcp-server:latest .
@@ -78,7 +78,7 @@ docker logs macae-mcp-server
7878 📁 tech_support: [count] tools (TechSupportService)
7979 📁 general: [count] tools (GeneralService)
8080🤖 Starting FastMCP server with http transport
81- 🌐 Server will be available at: http://0.0.0.0:9000/mcp/
81+ 🌐 Server will be available at: http://0.0.0.0:9000/mcp
8282```
8383
8484## Testing Methods
@@ -99,10 +99,10 @@ Content-Type: application/json
9999
100100``` bash
101101# Test MCP endpoint availability
102- curl -i http://localhost:9000/mcp/
102+ curl -i http://localhost:9000/mcp
103103
104104# Check MCP capabilities
105- curl -X POST http://localhost:9000/mcp/ \
105+ curl -X POST http://localhost:9000/mcp \
106106 -H " Content-Type: application/json" \
107107 -d ' {"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"protocolVersion": "2024-11-05", "capabilities": {}, "clientInfo": {"name": "test-client", "version": "1.0.0"}}}'
108108```
@@ -111,7 +111,7 @@ curl -X POST http://localhost:9000/mcp/ \
111111
112112``` bash
113113# List available tools
114- curl -X POST http://localhost:9000/mcp/ \
114+ curl -X POST http://localhost:9000/mcp \
115115 -H " Content-Type: application/json" \
116116 -d ' {"jsonrpc": "2.0", "id": 2, "method": "tools/list", "params": {}}'
117117```
@@ -139,7 +139,7 @@ curl -X POST http://localhost:9000/mcp/ \
139139
140140``` bash
141141# Test a specific tool (example: HR service)
142- curl -X POST http://localhost:9000/mcp/ \
142+ curl -X POST http://localhost:9000/mcp \
143143 -H " Content-Type: application/json" \
144144 -d ' {
145145 "jsonrpc": "2.0",
@@ -251,7 +251,7 @@ async def test_mcp_client():
251251 }
252252
253253 response = await client.post(
254- " http://localhost:9000/mcp/ " ,
254+ " http://localhost:9000/mcp" ,
255255 json = init_request
256256 )
257257 print (" Initialize response:" , response.json())
@@ -265,7 +265,7 @@ async def test_mcp_client():
265265 }
266266
267267 response = await client.post(
268- " http://localhost:9000/mcp/ " ,
268+ " http://localhost:9000/mcp" ,
269269 json = tools_request
270270 )
271271 print (" Tools response:" , response.json())
@@ -350,7 +350,7 @@ services:
350350 echo 'Testing MCP Server...'
351351 curl -f http://mcp-server:9000/health || exit 1
352352 echo 'Health check passed!'
353- curl -X POST http://mcp-server:9000/mcp/ -H 'Content-Type: application/json' -d '{\"jsonrpc\": \"2.0\", \"id\": 1, \"method\": \"tools/list\", \"params\": {}}' || exit 1
353+ curl -X POST http://mcp-server:9000/mcp -H 'Content-Type: application/json' -d '{\"jsonrpc\": \"2.0\", \"id\": 1, \"method\": \"tools/list\", \"params\": {}}' || exit 1
354354 echo 'Tools list test passed!'
355355 echo 'All tests completed successfully!'
356356 "
0 commit comments