Skip to content

Commit a1e3c21

Browse files
author
LittleCoinCoin
committed
test: add CLI integration tests for MCP host configuration
- Add 27 regression and integration tests for CLI integration - Create test data directory with mock MCP host config files - Test CLI argument parsing to Omni model creation - Test model integration with HOST_MODEL_REGISTRY - Test reporting integration in CLI commands - Test host-specific argument handling - Test error handling and validation - Test backward compatibility - Verify readiness for Phase 4 CLI integration implementation All tests passing (27/27, 100% success rate)
1 parent d8076e2 commit a1e3c21

9 files changed

+723
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"mcpServers": {}
3+
}
4+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"mcpServers": {
3+
"existing-server": {
4+
"command": "python",
5+
"args": ["server.py"],
6+
"env": {
7+
"API_KEY": "secret"
8+
}
9+
}
10+
}
11+
}
12+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"mcpServers": {}
3+
}
4+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"mcpServers": {
3+
"existing-server": {
4+
"command": "node",
5+
"args": ["server.js"],
6+
"env": {
7+
"NODE_ENV": "production"
8+
}
9+
}
10+
}
11+
}
12+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"mcpServers": {}
3+
}
4+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"mcpServers": {
3+
"existing-server": {
4+
"command": "python",
5+
"args": ["server.py"],
6+
"env": {
7+
"API_KEY": "secret"
8+
},
9+
"timeout": 30,
10+
"trust": true,
11+
"cwd": "/path/to/server"
12+
}
13+
}
14+
}
15+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"mcpServers": {}
3+
}
4+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"mcpServers": {
3+
"existing-server": {
4+
"command": "python",
5+
"args": ["-m", "server"],
6+
"env": {
7+
"DEBUG": "true"
8+
},
9+
"envFile": ".env"
10+
}
11+
}
12+
}
13+

0 commit comments

Comments
 (0)