Skip to content
VS Code

OpenSearch Dashboards logs for VS Code

io.github.mbaracz/mcp-opensearch-dashboards

Search logs in OpenSearch Dashboards and follow one trace across Kubernetes namespaces and apps.

client:VS Code transport:stdio runtime:npm

Install OpenSearch Dashboards logs in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "osd-mcp-sources",
      "description": "OSD_MCP_SOURCES",
      "password": true
    },
    {
      "type": "promptString",
      "id": "osd-mcp-user",
      "description": "OSD_MCP_USER",
      "password": true
    },
    {
      "type": "promptString",
      "id": "osd-mcp-password",
      "description": "OSD_MCP_PASSWORD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "osd-mcp-tenant",
      "description": "OSD_MCP_TENANT",
      "password": true
    }
  ],
  "servers": {
    "mcp-opensearch-dashboards": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-opensearch-dashboards"
      ],
      "env": {
        "OSD_MCP_SOURCES": "${input:osd-mcp-sources}",
        "OSD_MCP_USER": "${input:osd-mcp-user}",
        "OSD_MCP_PASSWORD": "${input:osd-mcp-password}",
        "OSD_MCP_TENANT": "${input:osd-mcp-tenant}"
      }
    }
  }
}

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

OpenSearch Dashboards logs in other clients