Skip to content
VS Code

Symfony Agent MCP for VS Code

io.github.shakaran/symfony-agent-mcp

Read-only Symfony introspection: routes, services, entities, Doctrine, security, Twig and more.

client:VS Code transport:stdio runtime:npm

Install Symfony Agent MCP in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "symfony-mcp-dynamic-tools",
      "description": "SYMFONY_MCP_DYNAMIC_TOOLS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "symfony-mcp-token-budget",
      "description": "SYMFONY_MCP_TOKEN_BUDGET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "symfony-mcp-allowed-paths",
      "description": "SYMFONY_MCP_ALLOWED_PATHS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "symfony-mcp-session-secret",
      "description": "SYMFONY_MCP_SESSION_SECRET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "symfony-mcp-session-token",
      "description": "SYMFONY_MCP_SESSION_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "symfony-mcp-audit",
      "description": "SYMFONY_MCP_AUDIT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "symfony-mcp-dlp",
      "description": "SYMFONY_MCP_DLP",
      "password": true
    }
  ],
  "servers": {
    "symfony-agent-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@shakaran/symfony-agent-mcp"
      ],
      "env": {
        "SYMFONY_MCP_DYNAMIC_TOOLS": "${input:symfony-mcp-dynamic-tools}",
        "SYMFONY_MCP_TOKEN_BUDGET": "${input:symfony-mcp-token-budget}",
        "SYMFONY_MCP_ALLOWED_PATHS": "${input:symfony-mcp-allowed-paths}",
        "SYMFONY_MCP_SESSION_SECRET": "${input:symfony-mcp-session-secret}",
        "SYMFONY_MCP_SESSION_TOKEN": "${input:symfony-mcp-session-token}",
        "SYMFONY_MCP_AUDIT": "${input:symfony-mcp-audit}",
        "SYMFONY_MCP_DLP": "${input:symfony-mcp-dlp}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Symfony Agent MCP in other clients