feat(mcp): .mcp.json with context7 and svelte on request
This commit is contained in:
1 parent
279fffb2ce
commit
6ee1f706e0
3 files changed
+22
No files matched your search
@@ -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
|
||||
|
||||
@@ -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 %}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user