
mcp-digger
io.github.janeksmPublished by GitHub account janeksmv1.1.3Updated Oct 24, 2026
Progressive on-demand access to .NET NuGet package source for AI coding agents.
The publisher's own server: digger.fans
Overview
Lets an AI coding agent browse, search, and read private .NET / NuGet C# package source from configured Git repositories.
- What you can do
- mcp-digger indexes NuGet-style repositories containing .csproj packages and .cs sources, then exposes ten tools that escalate from broad to deep. Agents can check health and connectivity (dig_status), list repos and packages (dig_list), read repo and package overviews (dig_repo_overview, dig_package_overview, dig_package_files), search indexed symbols by name, interface implementation, or reference (dig_lookup), read stripped public API signatures (dig_signatures), and fetch full file source (dig_file). Operational tools rebuild caches (dig_refresh) and scaffold a starter config (dig_init).
- When to use it
- Useful when an assistant needs accurate context about internal or private C# libraries whose source code is the primary documentation, and you want it to gather that context autonomously instead of running clone, find, grep, and cat chains. It is scoped to .NET / C# only; other languages are out of scope.
- Requirements
- Runs locally over stdio via npx or a global npm install; needs Node.js 20+ and git on PATH. Requires a .NET / C# source repository with .csproj and .cs files, plus a .digger/config.json listing repos. Private repos may need a personal access token, supplied inline or through an environment variable named in the config; a workspace .env file is loaded automatically. Optional environment variables override the config path, managed clone directory, and cache directory.
Installation
In SourceWeft
- Open mcp-digger in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
mcp-digger
Code context for AI coding agents. Progressive, on-demand access to your internal .NET / NuGet package source — agents browse, search, and read private C# libraries autonomously, with zero workspace pollution.
⚠ Scope: .NET / C# only. mcp-digger indexes NuGet-style repos containing
.csprojpackages and.cssource files. It is not a general-purpose source indexer — other languages (TypeScript, Python, Java, Go, etc.) are out of scope.
✨ Why
Public NuGet packages have documentation ecosystems — API references, tutorials, community Q&A. Tools like context7 serve that well.
Internal .NET packages often have source code as their primary documentation. mcp-digger turns that source into structured, searchable, token-efficient context that any MCP-compatible agent can consume — bridging the documentation gap in private C# library ecosystems.
Without it:
- 🐢 Slow context gathering —
git clone+find+grep+catchains burn tokens on infrastructure before useful context is retrieved. - 🔍 No semantic search — file system tools find text, not API surfaces. "Every type implementing this interface" means writing extraction scripts on demand.
- 💸 Token waste — agents read whole files when a single method signature would do.
- 🖱 Permission click fatigue — dozens of shell-command approvals per session.
- 🧹 Workspace noise — referenced repos pollute file search, git status, and the agent's context window.
With it:
- ✅ Correct code on the first try — real signatures, generic constraints, interface contracts, base class patterns.
- ⚡ Self-service context — point the agent at your NuGet repos once; it browses, searches, and reads autonomously.
- 🪙 Progressive disclosure — 200-token overview before 5,000 tokens of source. Most questions resolve at L1 or L2.
- 🧼 Zero workspace pollution — managed clones live outside your project tree.
- 🌐 Any Git host — GitHub, GitLab, Azure DevOps, Bitbucket, self-hosted — HTTPS or SSH.
🛠 How it works
Ten purpose-built tools, escalating from broad to deep. The agent picks the cheapest tool that answers its question.
🧰 Tools (10)
Search modes for dig_lookup:
🚀 Quick start
Install
Requires Node.js 20+, git on PATH, and a .NET / C# source repo (NuGet packages with .csproj + .cs sources).
Minimal config
Create .digger/config.json in your workspace root:
Don't have a config yet? Start the server, then call dig_init to scaffold one.
Agent setup
Claude Code
Add to .claude/settings.json or project settings:
Codex CLI
Add to ~/.codex/config.toml (or .codex/config.toml for project-scoped):
Claude Desktop
Add to claude_desktop_config.json:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
VS Code
Add to .vscode/mcp.json (workspace) or your user mcp.json:
Cursor
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
Verify
Once connected, ask your agent to call dig_status — it reports config validation, per-repo connectivity, and index health.
⚙ Configuration
Repos & packages
A repos[] entry has three ways to declare packages:
sourceRoot defaults to "src" — set it to whichever directory holds your package folders. The walk is recursive, so nested layouts like src/Group/Foo/Foo.csproj are picked up.
Branch tracking
By default, managed clones use the repo's default branch. Pin to a specific one:
The branch is used for both initial clone and subsequent fetches. Only applies to managed clones — for local repos, you control the checked-out branch yourself.
Local repos (Mode B)
Skip managed cloning when the repo is already on disk. The local path is read-only — mcp-digger never fetches or modifies it.
Auth strategies
PATs can be inline ("PAT": "...") or via environment variable indirection ("PAT-EnvVarName": "MY_TOKEN"). The .env file in your workspace root is loaded automatically — values containing # should be quoted.
Environment variables
Secrets (PAT values) belong in .env or the real environment — never as env vars in this table.
🩺 Diagnostics & recovery
Debug log
Enable debug logging in your config:
Logs go to .digger/debug.log (capped at 5 MB, auto-truncated). Critical errors and crash output land in .digger/error.log.
💬 Feedback
Tried mcp-digger on your codebase? Share what worked, what broke, what's missing in GitHub Discussions. Bug reports go in Issues.
📜 License
MIT License — see LICENSE.
Source: README.md at commit ee966a2
Tools
0Version history
1- v1.1.3LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts