1. Conduid
  2. Search
  3. Narnia
MCP server · Search

Narnia

An MCP server and Blazor web UI for looking at Copilot CLI's Chronicle to search and view your session data with Copilot!

Unclaimed search
34Low

Scored 6 months ago · breakdown

About Narnia

Narnia is an MCP server published by ncosentino in the Search category: an MCP server and Blazor web UI for looking at Copilot CLI's Chronicle to search and view your session data with Copilot!.

The repository has 1 stars and 0 forks, with the last commit 19 days ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/ncosentino/narnia

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (28)

build_schedule_packagePackage definitions reconstructed from non-Narnia tasks

Parameters not published.

create_scheduleCreate a scheduled job and (by default) register its task

Parameters not published.

delete_local_sessionsPermanently delete validated local session data through Copilot SDK

Parameters not published.

delete_scheduleRemove a scheduled job's task, wrapper, and catalog entry

Parameters not published.

export_schedule_packageExport selected jobs as a transfer package or share template

Parameters not published.

get_scheduleA single scheduled job's full catalog entry by id

Parameters not published.

get_schedule_logRead the latest run log and whether the job is still running

Parameters not published.

get_session_checkpointsAll checkpoints with structured content

Parameters not published.

get_session_detailsFull session metadata and statistics

Parameters not published.

get_session_recovery_packetRead archived recovery context in bounded chunks

Parameters not published.

Show all 28 tools
get_session_storage_overviewCached local storage totals and largest sessions

Parameters not published.

get_session_turnsConversation turns (paginated)

Parameters not published.

get_session_workspaceGit root and session artifact files from the filesystem

Parameters not published.

get_session_worktreesList a session's Git worktrees and flag branch-override mismatches

Parameters not published.

import_schedule_packageImport an accepted preview as new disabled jobs

Parameters not published.

list_recent_sessionsMost recently updated sessions

Parameters not published.

list_schedulesAll cataloged scheduled jobs joined to live task status

Parameters not published.

list_sessions_by_cwdFilter sessions by working directory

Parameters not published.

list_sessions_by_repositoryFilter sessions by git repository

Parameters not published.

migrate_broken_sessionReseed a broken session in its existing folder and ID

Parameters not published.

preview_local_session_cleanupDry-run local cleanup safety and reclaim estimates

Parameters not published.

preview_schedule_packageInspect destination bindings, dependencies, conflicts, and timezone

Parameters not published.

preview_session_migrationInspect resume compatibility and recoverable history

Parameters not published.

run_schedule_nowStart a scheduled job's task immediately

Parameters not published.

scan_session_storageQueue a background metadata-only storage scan

Parameters not published.

search_sessionsSearch Copilot session names, Narnia aliases, turns, checkpoints, and workspace artifacts

Parameters not published.

set_schedule_enabledEnable/disable a scheduled job's task

Parameters not published.

update_scheduleReplace a scheduled job's definition and re-register it

Parameters not published.

Ask AI

✦

Ask AI about Narnia

Powered by Claude · Grounded in docs

I know everything about Narnia. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

Narnia

Narnia is a hybrid MCP server + Blazor web UI for browsing and searching GitHub Copilot CLI session history.

If you use Copilot CLI heavily, you know the pain: a Windows update reboots your machine and every active session terminal is gone. Narnia makes it easy to find and resume sessions — either by asking a new Copilot session to search for you (via MCP), or by browsing a local web interface.


Features

  • MCP Server — exposes tools that any MCP-compatible client (including Copilot CLI) can call to search and browse your session history
  • Web UI — Blazor-based local web interface for browsing, searching, and reading session details, checkpoints, and conversation turns
  • Session workspace — reads supplemental metadata from ~/.copilot/session-state/ including git root and session artifact files

Prerequisites

  • .NET 10 SDK
  • Copilot CLI with an existing ~/.copilot/session-store.db

Running the MCP Server

The MCP server uses stdio transport and is designed to be launched by an MCP host.

Build

dotnet build src/NexusLabs.Narnia.McpServer

Configure in Copilot CLI

Add the following to your ~/.copilot/mcp-config.json:

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

After publishing as a NativeAOT binary (dotnet publish src/NexusLabs.Narnia.McpServer -c Release):

{
  "mcpServers": {
    "narnia": {
      "command": "C:/path/to/NexusLabs.Narnia.McpServer.exe",
      "args": [],
      "env": {}
    }
  }
}

Available MCP Tools

Tool Description
list_recent_sessions Most recently updated sessions
search_sessions FTS5 full-text search across summaries, turns, and checkpoints
get_session_details Full session metadata and statistics
get_session_checkpoints All checkpoints with structured content
get_session_turns Conversation turns (paginated)
get_session_workspace Git root and session artifact files from the filesystem
list_sessions_by_repository Filter sessions by git repository
list_sessions_by_cwd Filter sessions by working directory

Skills (Plugin System)

Narnia ships with agentic skills that can be loaded by Copilot CLI or Claude Code via their plugin systems. Skills let the LLM manage the web UI lifecycle directly — with full visibility into build output and adaptive error handling.

Available Skills

Skill Description
narnia-web-server Start, stop, restart, and check status of the Narnia web UI

Installing as a Plugin

Narnia follows the standard plugin layout with plugin.json at the repo root.

Option A: Direct Install

Copilot CLI:

copilot plugin install ncosentino/narnia

Claude Code:

claude plugin install ncosentino/narnia

Option B: Via Marketplace

Register Narnia as a marketplace first, then install from it. This is useful if you want to browse available plugins before installing.

Copilot CLI (from inside a session):

/plugin marketplace add ncosentino/narnia
/plugin install narnia@narnia

Claude Code:

/plugin marketplace add ncosentino/narnia
/plugin install narnia@narnia

From a Local Clone

copilot plugin install ./path/to/narnia

Managing the Plugin

copilot plugin list              # List installed plugins
copilot plugin update narnia     # Update to latest
copilot plugin uninstall narnia  # Remove the plugin

Once installed, skills are automatically available. Just ask the LLM to perform the task (e.g., "start the Narnia web server").


Running the Web UI

dotnet run --project src/NexusLabs.Narnia.Web

Then open http://localhost:5000 in your browser.


Configuration

Both the MCP server and web UI read configuration from environment variables:

Variable Description Default
NARNIA__DatabasePath Path to session-store.db ~/.copilot/session-store.db
NARNIA__SessionStatePath Path to session state directory ~/.copilot/session-state

Building from Source

git clone https://github.com/nexus-labs/narnia
cd narnia
dotnet build
dotnet test

Publish MCP server as NativeAOT

dotnet publish src/NexusLabs.Narnia.McpServer -c Release

Architecture

narnia/
  skills/
    narnia-web-server/            # Agentic skill for web UI lifecycle management
  src/
    NexusLabs.Narnia.Core/        # Shared library — trim-safe, AOT-compatible
    NexusLabs.Narnia.McpServer/   # MCP server — NativeAOT, stdio transport
    NexusLabs.Narnia.Web/         # Blazor Static SSR web interface
  tests/
    NexusLabs.Narnia.Core.Tests/  # xUnit v3 test suite

The Core library is the only place where data access logic lives. Both the MCP server and Web app are thin entry points that register Core services and expose them to their respective transports.

Data sources

  • session-store.db — SQLite with FTS5 full-text search (opened read-only)
  • session-state/{guid}/workspace.yaml — flat key:value YAML with filesystem metadata (e.g. git_root)
  • session-state/{guid}/files/ — session artifact files (plan.md, context files, etc.)

Related Projects

  • google-search-console-mcp -- Google Search Console MCP server: query clicks, impressions, CTR, and ranking position from your Search Console properties
  • google-keyword-planner-mcp -- Google Ads Keyword Planner MCP server: keyword ideas, search volume, competition, and CPC data
  • google-psi-mcp -- Zero-dependency MCP server for Google PageSpeed Insights Core Web Vitals

About

Nick Cosentino -- Dev Leader

This tool was built by Nick Cosentino, a software engineer and content creator known as Dev Leader. Nick creates practical .NET, C#, ASP.NET Core, Blazor, and software engineering content for intermediate to advanced developers -- covering everything from performance optimization and clean architecture to real-world career advice.

Narnia was born out of a real frustration: Windows forcing a restart and wiping every active Copilot CLI session with no easy way to recover. It serves as a practical example of building NativeAOT C# MCP servers and Blazor Static SSR apps following modern .NET standards.

Find Nick online:

BrandGhost

BrandGhost is a social media automation platform built by Nick that lets content creators cross-post and schedule content across all social platforms in one click. If you create content and want to spend less time on distribution and more time creating, check it out.


Contributing

Contributions are welcome! Please:

  1. Open an issue describing the bug or feature request before submitting a PR
  2. Run dotnet build with zero warnings before submitting
  3. Run dotnet test -- all tests must pass

License

MIT License -- see LICENSE for details.

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Narnia

How do I install Narnia?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Narnia safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Narnia still maintained?

Yes — the last commit was 19 days ago. The repository has 1 stars and 0 forks.