|
| 1 | +# Recipes - the MCP servers of the engines' page "Tools from MCP servers" (RFC-0013, step 5), one |
| 2 | +# entry per server, ready to copy into mcp-servers.yml. The binding does not read this file by |
| 3 | +# default, and nothing here is served until a function binds a tool of it: a bind line in |
| 4 | +# mcp_binding.py (or in an application that imports it), a preload function on a route of your own, |
| 5 | +# a catalog row on the graph and an Event-over-HTTP entry on the engine. |
| 6 | +# |
| 7 | +# Everything environment-specific is a ${NAME:default} reference, resolved from this process's |
| 8 | +# environment at boot. A credential has no default, so a missing one stops the boot by name, and a |
| 9 | +# resolved value is never logged. The package versions are the ones the page's digests were read |
| 10 | +# from (2026-11-18): bump one, run describe, review the schema and re-pin the digest next to the |
| 11 | +# function that binds the tool. |
| 12 | +# |
| 13 | +# The gated test tests/test_mcp_recipes.py loads this file on every run and, with MCP_RECIPES_LIVE=1, |
| 14 | +# starts each server with uvx or npx through the binding's own probe and checks the digests pinned |
| 15 | +# in tests/vectors/mcp-recipes.json (the Neo4j server also wants NEO4J_PASSWORD and a database, for |
| 16 | +# example the one extensions/agent-tools/dev/graph-up.sh starts). |
| 17 | +servers: |
| 18 | + # Git (reference server, Python). The history and state of one repository; --repository confines |
| 19 | + # every tool to it, and the function that binds a tool adds repo_path from configuration, so no |
| 20 | + # graph names a path. The reads are git_status, git_diff_unstaged, git_diff_staged, git_diff, |
| 21 | + # git_log, git_show, git_branch and git_remote; git_add, git_commit, git_reset, git_create_branch, |
| 22 | + # git_checkout and git_merge are write: true on the graph. |
| 23 | + git: |
| 24 | + transport: stdio |
| 25 | + command: uvx |
| 26 | + args: ['mcp-server-git==2026.11.11', '--repository', '${MCP_GIT_REPOSITORY:/srv/repository}'] |
| 27 | + # Time (reference server, Python). The alternative to the built-in time.now when a use case |
| 28 | + # converts between zones or reasons about relative times; --local-timezone fixes the server's |
| 29 | + # default zone. All three tools read. |
| 30 | + time: |
| 31 | + transport: stdio |
| 32 | + command: uvx |
| 33 | + args: ['mcp-server-time==2026.11.11', '--local-timezone', '${MCP_TIME_ZONE:UTC}'] |
| 34 | + # Fetch (reference server, Python). The alternative to the built-in web.fetch: one tool, Markdown |
| 35 | + # out, robots.txt honoured, private addresses refused by default, and --allowed-hosts as the |
| 36 | + # allowlist (repeat the option for more hosts). The built-in web.crawl has no counterpart here. |
| 37 | + fetch: |
| 38 | + transport: stdio |
| 39 | + command: uvx |
| 40 | + args: ['mcp-server-fetch==2026.11.11', '--allowed-hosts', '${MCP_FETCH_ALLOWED_HOST:docs.example.com}'] |
| 41 | + # Filesystem (reference server, Node.js). The alternative to the built-in file.* tools, started in |
| 42 | + # read-only mode: the ten tools that read and list. Without --read-only the server also offers |
| 43 | + # write_file, edit_file, create_directory, move_file and copy_file, each write: true on the graph. |
| 44 | + # The directories named are the sandbox; a path outside them is refused by the server. |
| 45 | + filesystem: |
| 46 | + transport: stdio |
| 47 | + command: npx |
| 48 | + args: ['-y', '@modelcontextprotocol/server-filesystem@2.3.0', '--read-only', '${MCP_FILESYSTEM_ROOT:/srv/documents}'] |
| 49 | + # Neo4j's Cypher server (vendor server, Python). The alternative to graph.schema, graph.query and |
| 50 | + # graph.write over the vendor's own server: get_neo4j_schema (needs the APOC plugin in the |
| 51 | + # database), read_neo4j_cypher and write_neo4j_cypher (write: true on the graph; add --read-only to |
| 52 | + # leave it out of the listing). graph.ingest has no counterpart - the model would write the MERGE |
| 53 | + # statements itself. |
| 54 | + neo4j: |
| 55 | + transport: stdio |
| 56 | + command: uvx |
| 57 | + args: ['mcp-neo4j-cypher==0.6.0'] |
| 58 | + env: |
| 59 | + NEO4J_URI: '${NEO4J_URI:bolt://127.0.0.1:7687}' |
| 60 | + NEO4J_USERNAME: '${NEO4J_USERNAME:neo4j}' |
| 61 | + NEO4J_PASSWORD: '${NEO4J_PASSWORD}' |
| 62 | + NEO4J_DATABASE: '${NEO4J_DATABASE:neo4j}' |
| 63 | + # GitHub's server (vendor server). The hosted endpoint over streamable HTTP with a fine-grained |
| 64 | + # personal access token of least privilege (or the deployment's GitHub App token); the toolsets |
| 65 | + # header selects the tool families, the read-only header hides every write. The listing needs the |
| 66 | + # credential, so its digests are not pinned on the page: run describe with the token and pin what it |
| 67 | + # prints. A self-hosted alternative is the vendor's container image over stdio. |
| 68 | + github: |
| 69 | + transport: http |
| 70 | + url: 'https://api.githubcopilot.com/mcp/' |
| 71 | + headers: |
| 72 | + Authorization: 'Bearer ${GITHUB_MCP_TOKEN}' |
| 73 | + X-MCP-Toolsets: '${GITHUB_MCP_TOOLSETS:repos,issues,pull_requests}' |
| 74 | + X-MCP-Readonly: '${GITHUB_MCP_READONLY:true}' |
| 75 | + timeout_ms: 30000 |
| 76 | + # Playwright's server (vendor server, Node.js). A headless browser with an in-memory profile; |
| 77 | + # --allowed-origins is the allowlist of sites the browser may request. The reads are the snapshot, |
| 78 | + # the screenshot, find, the console and network listings and navigation; the actions (click, type, |
| 79 | + # fill_form, select_option, press_key, drag, file_upload, handle_dialog) are write: true on the |
| 80 | + # graph; browser_evaluate and browser_run_code_unsafe are never bound. |
| 81 | + playwright: |
| 82 | + transport: stdio |
| 83 | + command: npx |
| 84 | + args: ['-y', '@playwright/mcp@0.0.85', '--headless', '--isolated', '--allowed-origins', '${MCP_PLAYWRIGHT_ORIGINS:https://docs.example.com}'] |
| 85 | + timeout_ms: 60000 |
0 commit comments