Add coding-agent MCP bootstrap

This commit is contained in:
rob
2026-07-20 18:05:56 -03:00
parent 06a1606370
commit c289e812fb
8 changed files with 550 additions and 1 deletions
+22
View File
@@ -34,6 +34,28 @@ class TestCLIBasics:
assert exc_info.value.code == 0
def test_mcp_configure_dispatches_host_options(self):
with (
patch(
"cmdforge.agent_setup.configure_agent_host",
return_value=0,
) as configure,
patch("sys.argv", [
"cmdforge", "mcp", "configure", "claude-code",
"--scope", "project", "--dry-run",
]),
):
assert main() == 0
configure.assert_called_once_with(
"claude-code",
server_name="cmdforge",
scope="project",
install_policy=True,
dry_run=True,
force=False,
)
class TestListCommand:
"""Tests for 'cmdforge list' command."""