feat(mcp): .mcp.json with context7 and svelte on request

This commit is contained in:
hh committed 2026-10-01 02:02:05 +02:00
1 parent 279fffb2ce
commit 6ee1f706e0
3 files changed
+22

No files matched your search

+2
View File
@@ -11,6 +11,8 @@ A part is a directory with:
Application services carry the `services` profile, databases and other infrastructure carry `external`.
`mcp_servers` writes `.mcp.json` with the Context7 and Svelte docs servers.
The root also gets a `renovate.jsonc` that is nothing but an `extends` on the
shared preset in `templates/renovate`. It does not subscribe the repo to
anything on its own: the bot walks an explicit list, so a new repo still has to
+9
View File
@@ -32,6 +32,15 @@ parts:
frontend: frontend
default: []
mcp_servers:
type: str
multiselect: true
help: MCP servers in .mcp.json
choices:
Context7 (library docs): context7
Svelte docs: svelte
default: []
init_git:
type: bool
help: git init and install pre-commit hooks
@@ -0,0 +1,11 @@
{%- set urls = {'context7': 'https://mcp.context7.com/mcp', 'svelte': 'https://mcp.svelte.dev/mcp'} -%}
{
"mcpServers": {
{%- for server in mcp_servers %}
"{{ server }}": {
"type": "http",
"url": "{{ urls[server] }}"
}{{ "," if not loop.last }}
{%- endfor %}
}
}