Add coding-agent MCP bootstrap
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user