Skip to content

Commit 0421573

Browse files
committed
fix: update cmcp command syntax for MCP server compile methods
1 parent ea92d7d commit 0421573

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.github/workflows/test-mcp-server.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -116,25 +116,22 @@ jobs:
116116
echo "Testing MCP server compile method..."
117117
echo '{
118118
"code": "[filename: Cargo.toml]\n[package]\nname = \"hello_world\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n\n[filename: src/main.rs]\nfn main() {\n println!(\"Hello, World!\");\n}"
119-
}' | cmcp call http://localhost:3000 rust-compiler compile || {
120-
echo "CMCP call failed. Debug information:";
121-
docker ps;
122-
exit 1;
123-
}
119+
}' | cmcp tools/call http://localhost:3000 rust-compiler.compile
124120
125121
echo "Testing MCP server compileAndFix method..."
126122
echo '{
127123
"code": "[filename: Cargo.toml]\n[package]\nname = \"hello_world\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n\n[filename: src/main.rs]\nfn main() {\n println!(\"Hello, World!\" // Missing closing parenthesis\n}",
128124
"description": "A simple hello world program",
129125
"max_attempts": 3
130-
}' | cmcp call http://localhost:3000 rust-compiler compileAndFix || {
131-
echo "CMCP call failed. Debug information:";
132-
docker ps;
133-
exit 1;
134-
}
126+
}' | cmcp tools/call http://localhost:3000 rust-compiler.compileAndFix
135127
136128
- name: Check Docker logs on failure
137129
if: failure()
138130
run: |
139131
echo "Checking Docker logs for troubleshooting..."
140-
docker compose logs || echo "Failed to get logs"
132+
docker compose logs || echo "Failed to get logs"
133+
134+
- name: Check MCP proxy logs
135+
run: |
136+
echo "MCP proxy logs:"
137+
docker logs $(docker ps -a -q --filter name=mcp-proxy) || echo "Failed to get MCP proxy logs"

0 commit comments

Comments
 (0)