Skip to content

Commit 16c7990

Browse files
author
LittleCoinCoin
committed
fix(workaround): relax Pydantic data model constraint
All hosts have minimal differences in the fields they use for customizing running the mcp servers. - No good scalable solution to define per-host data models for now. - Allow all extra field to make sure we are not canceling existing customized MCP configuration in hosts.
1 parent 1eb86e4 commit 16c7990

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hatch/mcp_host_config/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class MCPHostType(str, Enum):
2929
class MCPServerConfig(BaseModel):
3030
"""Consolidated MCP server configuration supporting local and remote servers."""
3131

32-
model_config = ConfigDict(extra="forbid")
32+
model_config = ConfigDict(extra="allow")
3333

3434
# Server identification
3535
name: Optional[str] = Field(None, description="Server name for identification")

0 commit comments

Comments
 (0)