Skip to content

Setup by Tool

Narnia runs as a local stdio MCP server. No API key or authentication is required — it reads from your local ~/.copilot/ files only.

Replace the path in each snippet with the actual location of the Narnia binary or project on your machine.


GitHub Copilot CLI

Add to ~/.copilot/mcp-config.json:

{
  "mcpServers": {
    "narnia": {
      "type": "stdio",
      "command": "dotnet",
      "args": [
        "run",
        "--project",
        "C:\\path\\to\\narnia\\src\\NexusLabs.Narnia.McpServer"
      ]
    }
  }
}

Or if using a published binary:

{
  "mcpServers": {
    "narnia": {
      "type": "stdio",
      "command": "C:\\path\\to\\NexusLabs.Narnia.McpServer.exe",
      "args": []
    }
  }
}

Note

GitHub Copilot CLI requires "args": [] when "type": "stdio" is specified and no args are needed.


Claude Desktop

Add to claude_desktop_config.json (~/Library/Application Support/Claude/ on macOS, %APPDATA%\Claude\ on Windows):

{
  "mcpServers": {
    "narnia": {
      "command": "dotnet",
      "args": [
        "run",
        "--project",
        "/path/to/narnia/src/NexusLabs.Narnia.McpServer"
      ]
    }
  }
}

Cursor

Add to .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "narnia": {
      "command": "dotnet",
      "args": [
        "run",
        "--project",
        "/path/to/narnia/src/NexusLabs.Narnia.McpServer"
      ]
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "narnia": {
      "type": "stdio",
      "command": "dotnet",
      "args": [
        "run",
        "--project",
        "/path/to/narnia/src/NexusLabs.Narnia.McpServer"
      ]
    }
  }
}

Visual Studio

Add to the MCP configuration in Visual Studio's GitHub Copilot settings:

{
  "mcpServers": {
    "narnia": {
      "type": "stdio",
      "command": "dotnet",
      "args": [
        "run",
        "--project",
        "C:\\path\\to\\narnia\\src\\NexusLabs.Narnia.McpServer"
      ]
    }
  }
}

See Configuration for environment variable overrides to customize the database path and session state directory.