Skip to content
VS Code

dir mcp for VS Code

io.github.agntcy/dir-mcp

MCP server for working with OASF agent records in the Agntcy Directory.

client:VS Code transport:stdio runtime:oci

Install dir mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "oasf-api-validation-schema-url",
      "description": "OASF_API_VALIDATION_SCHEMA_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "directory-client-server-address",
      "description": "DIRECTORY_CLIENT_SERVER_ADDRESS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "directory-client-auth-mode",
      "description": "DIRECTORY_CLIENT_AUTH_MODE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "directory-client-auth-token",
      "description": "DIRECTORY_CLIENT_AUTH_TOKEN",
      "password": true
    }
  ],
  "servers": {
    "dir-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/agntcy/dir-mcp:1.3.4"
      ],
      "env": {
        "OASF_API_VALIDATION_SCHEMA_URL": "${input:oasf-api-validation-schema-url}",
        "DIRECTORY_CLIENT_SERVER_ADDRESS": "${input:directory-client-server-address}",
        "DIRECTORY_CLIENT_AUTH_MODE": "${input:directory-client-auth-mode}",
        "DIRECTORY_CLIENT_AUTH_TOKEN": "${input:directory-client-auth-token}"
      }
    }
  }
}

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

dir mcp in other clients