| name | skill-with-mcp-json-conflict |
| description | A test skill with BOTH frontmatter mcp-servers AND a companion mcp.json (tests mcp.json precedence) |
| mcp-servers | {"frontmatter-server":{"command":"python","args":["-m","http.server","8080"]}} |
Skill with mcp.json Conflict
This skill has both mcp-servers in frontmatter and a companion mcp.json file.
The mcp.json companion takes precedence when keys collide.
Expected Behavior
| Source | Server Name | Command |
|---|
| Frontmatter | frontmatter-server | python ... |
| mcp.json | mcp-json-server | npx playwright |
| Result | Only mcp-json-server | (full override) |
Verification
skill = Skill.from_skill_dir(UPath("skill_with_mcp_json_conflict"))
assert "mcp-json-server" in skill.mcp_servers
assert "frontmatter-server" not in skill.mcp_servers
Usage
Use this skill when testing mcp.json precedence over frontmatter mcp-servers.