Skip to content

Commit 1a81ae0

Browse files
test(mcp-hosts): keep mistral vibe in shared adapter coverage
Extend the canonical fixture registry and generated filtering matrix so future MCP host changes exercise Mistral Vibe through the same shared coverage paths as the other supported hosts.
1 parent 0e801d0 commit 1a81ae0

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

tests/regression/mcp/test_field_filtering_v2.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ def regression_test(func):
5757
"oauth_redirectUri": "http://localhost:3000/callback",
5858
"oauth_tokenParamName": "access_token",
5959
"bearer_token_env_var": "BEARER_TOKEN",
60+
"prompt": "Be concise.",
61+
"api_key_env": "MISTRAL_API_KEY",
62+
"api_key_header": "Authorization",
63+
"api_key_format": "Bearer {api_key}",
64+
"transport": "streamable-http",
6065
# Integer fields
6166
"timeout": 30000,
6267
"startup_timeout_sec": 10,
@@ -66,6 +71,7 @@ def regression_test(func):
6671
"oauth_enabled": False,
6772
"disabled": False,
6873
"enabled": True,
74+
"sampling_enabled": True,
6975
# List[str] fields
7076
"args": ["--test"],
7177
"includeTools": ["tool1"],

tests/test_data/mcp_adapters/canonical_configs.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,21 @@
7575
"enabled_tools": ["tool1", "tool2"],
7676
"disabled_tools": ["tool3"]
7777
},
78+
"mistral-vibe": {
79+
"command": null,
80+
"args": null,
81+
"env": null,
82+
"url": "https://example.com/mcp",
83+
"headers": {"Authorization": "Bearer test-token"},
84+
"transport": "streamable-http",
85+
"prompt": "Use concise answers.",
86+
"startup_timeout_sec": 15,
87+
"tool_timeout_sec": 90,
88+
"sampling_enabled": true,
89+
"api_key_env": "MISTRAL_API_KEY",
90+
"api_key_header": "Authorization",
91+
"api_key_format": "Bearer {api_key}"
92+
},
7893
"augment": {
7994
"command": "python",
8095
"args": ["-m", "mcp_server"],

tests/test_data/mcp_adapters/host_registry.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
from hatch.mcp_host_config.adapters.gemini import GeminiAdapter
2828
from hatch.mcp_host_config.adapters.kiro import KiroAdapter
2929
from hatch.mcp_host_config.adapters.lmstudio import LMStudioAdapter
30+
from hatch.mcp_host_config.adapters.mistral_vibe import MistralVibeAdapter
3031
from hatch.mcp_host_config.adapters.opencode import OpenCodeAdapter
3132
from hatch.mcp_host_config.adapters.vscode import VSCodeAdapter
3233
from hatch.mcp_host_config.fields import (
@@ -39,6 +40,7 @@
3940
GEMINI_FIELDS,
4041
KIRO_FIELDS,
4142
LMSTUDIO_FIELDS,
43+
MISTRAL_VIBE_FIELDS,
4244
OPENCODE_FIELDS,
4345
TYPE_SUPPORTING_HOSTS,
4446
VSCODE_FIELDS,
@@ -59,6 +61,7 @@
5961
"gemini": GEMINI_FIELDS,
6062
"kiro": KIRO_FIELDS,
6163
"codex": CODEX_FIELDS,
64+
"mistral-vibe": MISTRAL_VIBE_FIELDS,
6265
"opencode": OPENCODE_FIELDS,
6366
"augment": AUGMENT_FIELDS,
6467
}
@@ -99,6 +102,7 @@ def get_adapter(self) -> BaseAdapter:
99102
"gemini": GeminiAdapter,
100103
"kiro": KiroAdapter,
101104
"codex": CodexAdapter,
105+
"mistral-vibe": MistralVibeAdapter,
102106
"opencode": OpenCodeAdapter,
103107
"augment": AugmentAdapter,
104108
}
@@ -358,6 +362,7 @@ def generate_unsupported_field_test_cases(
358362
| GEMINI_FIELDS
359363
| KIRO_FIELDS
360364
| CODEX_FIELDS
365+
| MISTRAL_VIBE_FIELDS
361366
| OPENCODE_FIELDS
362367
| AUGMENT_FIELDS
363368
)

0 commit comments

Comments
 (0)