code.run
Runs allowlisted build and test commands inside a sandboxed workspace, enabling AI agents to validate code changes while restricting execution to approved commands.
Instructions
Run an allowlisted build/test command inside the workspace (requires NOVAFORGE_MCP_ALLOW_EXEC=1).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "<command>"
},
"name": "code.run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Full command line, first token must be allowlisted. | |
| timeout | No |