Configuration¶
Narnia reads configuration from environment variables. No API key is required — all data is local to your machine.
Environment Variables¶
| Variable | Default | Description |
|---|---|---|
NARNIA__DatabasePath |
~/.copilot/session-store.db |
Path to the Copilot CLI SQLite session database |
NARNIA__SessionStatePath |
~/.copilot/session-state/ |
Directory containing per-session state folders |
Setting Variables in mcp-config.json¶
Pass environment variables via the env block in your MCP client config:
{
"mcpServers": {
"narnia": {
"type": "stdio",
"command": "dotnet",
"args": ["run", "--project", "/path/to/narnia/src/NexusLabs.Narnia.McpServer"],
"env": {
"NARNIA__DatabasePath": "D:\\custom-path\\session-store.db",
"NARNIA__SessionStatePath": "D:\\custom-path\\session-state\\"
}
}
}
}
Default Paths¶
The defaults resolve to the standard Copilot CLI locations on all platforms:
- Windows:
C:\Users\{username}\.copilot\ - macOS / Linux:
~/.copilot/
If your Copilot CLI data is in the default location, no configuration is required.
Web UI Port¶
The web UI listens on http://localhost:5244 by default (configured in src/NexusLabs.Narnia.Web/Properties/launchSettings.json). To change the port, modify the applicationUrl in that file before building.