Skip to content

Commit f62c6c7

Browse files
committed
fix: correct cmcp command syntax for MCP server compile methods
1 parent 9a0e181 commit f62c6c7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,15 @@ 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 http://localhost:3000 tools/call rust-compiler compile
120-
119+
}' | cmcp tools/call http://localhost:3000 rust-compiler compile
120+
121121
echo "Testing MCP server compileAndFix method..."
122122
echo '{
123123
"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}",
124124
"description": "A simple hello world program",
125125
"max_attempts": 3
126-
}' | cmcp http://localhost:3000 tools/call rust-compiler compileAndFix
126+
}' | cmcp tools/call http://localhost:3000 rust-compiler compileAndFix
127+
127128
128129
- name: Check Docker logs on failure
129130
if: failure()

0 commit comments

Comments
 (0)