Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cursor-plugin/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"mcp"
],
"skills": "./skills/",
"mcpServers": "./mcp.json"
"mcpServers": "./.mcp.json"
}
3 changes: 2 additions & 1 deletion mcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",
"mcpServers": {
"polymorfa-docs": {
"url": "https://docs.polymorfa.com/mcp"
"url": "https://docs.polymorfa.com/mcp",
"type": "streamable-http"
}
}
}
11 changes: 11 additions & 0 deletions scripts/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,14 @@
for filename in ("plugin.json", ".claude-plugin/plugin.json", ".cursor-plugin/plugin.json", "gemini-extension.json"):
assert json.loads((root / filename).read_text())["version"] == "0.1.0", filename
print("Manifests and skills validated")
for filename, transport in [("mcp.json", "streamable-http"), (".mcp.json", "http")]:
servers = json.loads((root / filename).read_text())["mcpServers"]
assert servers == {"polymorfa-docs": {"type": transport, "url": "https://docs.polymorfa.com/mcp"}}, filename
for filename in (".claude-plugin/plugin.json", ".cursor-plugin/plugin.json"):
manifest = json.loads((root / filename).read_text())
for field, kind in (("mcpServers", "file"), ("skills", "directory")):
relative = Path(manifest[field])
assert not relative.is_absolute() and ".." not in relative.parts, (filename, field)
target = (root / relative).resolve()
assert target.is_relative_to(root), (filename, field)
assert target.is_file() if kind == "file" else target.is_dir(), (filename, field)
Loading