Skip to content

Connect Visual Studio’s MCP support to the Aembit MCP Server to query audit logs and events directly from your IDE.

  1. Create the configuration file.

    In your project root (or user config directory), create a file named .mcp.json:

    {
    "servers": {
    "aembit": {
    "url": "https://<tenantId>.mcp.useast2.aembit.io/mcp",
    "headers": {
    "Authorization": "Bearer <apiToken>"
    }
    }
    }
    }

    Replace:

    • <tenantId> with your tenant identifier from the Aembit Admin UI
    • <apiToken> with your API Token

    Add .mcp.json to your .gitignore file to prevent committing it to version control.

  2. (Optional) Scope to a resource set.

    Add the X-Aembit-ResourceSet header to query a specific resource set:

    {
    "servers": {
    "aembit": {
    "url": "https://<tenantId>.mcp.useast2.aembit.io/mcp",
    "headers": {
    "Authorization": "Bearer <apiToken>",
    "X-Aembit-ResourceSet": "<resourceSetId>"
    }
    }
    }
    }
  3. Restart Visual Studio to load the configuration.

Visual Studio may prompt for permission when MCP tools are first invoked. Select Allow to enable Aembit queries.

Test the connection by asking about available tools or requesting recent audit logs.

Keep these points in mind when using Visual Studio’s MCP support with the Aembit MCP Server.

  • The MCP Server expects structured JSON commands, not free-form natural language.
  • The MCP Server only supports read operations; you can’t modify Aembit data through this connection.
  • Queries operate on your default resource set unless you specify X-Aembit-ResourceSet.