
ASP.NET Core Debugger — MCP Server for AI Agents
io.github.magna-nz由 GitHub 帳號 magna-nz 發布v1.4.0更新於 Oct 24, 2026
MCP server giving AI agents interactive .NET / ASP.NET Core debugging via netcoredbg + DAP.
發布方自己的服務:core.blue
概覽
讓 AI 助理啟動、附加並互動式偵錯 .NET 與 ASP.NET Core 行程,讀取執行時期的值並修改狀態。
- 可以做什麼
- 這是一個本機 MCP 伺服器,透過 Debug Adapter Protocol 把 AI 用戶端連接到 netcoredbg,提供 27 個工具。涵蓋工作階段控制(啟動、附加、中斷連線)、執行步進、行、函式、例外與資料中斷點,以及執行緒、堆疊、變數與運算式的檢查,包括設定變數值。組合工具把多個偵錯請求合併為一次呼叫:exception_autopsy、stack_explore、用於死鎖分類的 hang_analyze,以及用於請求追蹤的 trace_start/trace_get/trace_stop。
- 適用情境
- 當助理需要診斷正在執行的 .NET 或 ASP.NET Core 應用程式,而不是憑原始碼猜測時適用:查詢傳回空結果、驗證失敗、請求卡住、死鎖或端點變慢。適合希望助理暫停程式碼、讀取真實執行時期的值,並透過修改變數驗證修正方案後再改程式碼的開發者。
- 執行需求
- 以本機行程方式透過 stdio 執行。主機需安裝 .NET 10 SDK;套件已內建適用於 linux-x64、linux-arm64、win-x64、osx-x64 與 osx-arm64 的 netcoredbg。以 .NET 全域工具安裝,並依命令名稱註冊到 MCP 用戶端。未宣告任何驗證、環境變數或標頭。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 ASP.NET Core Debugger — MCP Server for AI Agents,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
ASP.NET Core Debugging MCP Server
The cross-platform .NET debugging MCP — runs on Linux, macOS, and Windows.
[CI] [NuGet] [.NET] [MCP] [Platforms] [License: MIT] [Glama Quality]
An MIT-licensed MCP server that lets an AI agent (Claude, etc.) debug your .NET / ASP.NET Core app — netcoredbg bundled for every platform, nothing extra to install.
Instead of "I think the bug is around line 42, try this", the agent runs your code, pauses it, reads the actual runtime values, mutates state to test a fix, and answers grounded in what it actually saw.
Contents
- See it in action — 5 conversations showing the agent at work
- How it works — architecture diagram
- Use it in 3 steps — install + register with Claude
- Platforms — supported OS / architecture matrix
- Tools (27) — full tool surface grouped by purpose
- How this compares — vs. other .NET / DAP MCPs
- Docs — install, examples, tool reference, limits
- License
See it in action
Why is my EF Core query returning empty?
You
GET /users/activereturns[], but I know there are active users in the DB. What's the query actually doing?
Claude
I'll pause inside
UserRepository.GetActiveAsyncand read what EF Core actually sent.The SQL is correct; the parameter is wrong.
TenantId = 0, but your tenants start at 1.ICurrentUser.TenantIdis being read in the repository constructor — before the request scope resolves it. Fix: read the tenant inside the query (or apply it viaHasQueryFilterwithIHttpContextAccessor) instead of capturing it at construction.
Why is my JWT auth returning 401?
You
/admin/usersis 401-ing for Anna, but her token looks valid to me. What does the auth handler actually see?
Claude
I'll break inside
JwtBearerHandler.HandleAuthenticateAsyncafter her request lands.The token validates fine — but the claim is
role=User. Your endpoint is[Authorize(Roles="Admin")]. So the 401 is correct: Anna isn't actually an admin yet upstream. Either her IdP record needs updating, or this policy is wrong.
Test a fix without restarting
You
I think capping
discountat 100 fixes the bug. Test that hypothesis without me touching the code.
Claude
I'll pause inside
ApplyDiscounton the next checkout and mutatediscountin place.Capping at 100 unblocks the flow downstream. Hypothesis confirmed — time to make the edit for real and decide where the cap belongs (
ApplyDiscountitself, or upstream inPromoEngine).
My app is hung — what's actually blocking?
You
/reportshangs forever in staging. Attach and tell me why.
Claude
Attached. Ran
hang_analyze.Classic sync-over-async deadlock. Thread 12 calls
.Wait()on a task that itself needs to open anotherSqlConnectionfrom a fully-held pool. The connection it's holding can't be released until the task completes; the task can't proceed until a connection frees up. Fix:awaitall the way down inReportService, or don't hold a connection across the awaited call.
Where is a slow request actually spending its time?
You
GET /order/42takes 800ms. I don't want to set breakpoints all over — just show me where the time is going.
Claude
I'll auto-instrument your order pipeline and fire the request. Each entry logs the timestamp + arguments, then resumes — the code runs near-normal speed.
Time is in the CRM enrichment HTTP call — 500ms inside
HttpClient.PostAsync. DB itself was 5ms. Worth cachingEnrichmentService.Enrichor moving it off the request path.
How it works
A protocol bridge with agent-friendly composites on top — exception_autopsy, stack_explore,
hang_analyze, and the trace tools — that bundle multiple DAP requests into a single tool call.
Use it in 3 steps
- Install the tool — needs the .NET 10 SDK.
The package bundles prebuilt
netcoredbgforlinux-x64,linux-arm64,win-x64,osx-x64, andosx-arm64— no separate install needed. - Register with Claude — either the quick CLI command:
…or edit
.mcp.json(project-scoped) /~/.claude.json(global) /claude_desktop_config.json(Claude Desktop) directly: - Just chat with Claude.
/mcpconfirms it's connected. From there, describe what you want — "why does this endpoint return null" — and the agent picks the right tools.
Full install + troubleshooting →
Platforms
Bundled netcoredbg binary is selected at runtime — no per-platform install dance.
Requires the .NET 10 SDK on the host. The MCP server itself is a cross-platform .NET global tool — same install command everywhere.
Tools (27)
Full tool reference with parameters →
How this compares
Different sweet spots: this project is the MIT, cross-platform option, with ASP.NET-flavoured composites on top of a DAP. debug-mcp goes deeper into runtime internals via ICorDebug but is Linux-only and AGPL today.
Docs
- Install & configure — 3 steps, both Claude Code & Desktop, troubleshooting
- What you can do with it — 7 things you can ask Claude to do for you
- Full tool reference — every parameter on every tool
- Known limits — when not to use this tool, adapter & tracing limits
- macOS Apple Silicon — building netcoredbg
- Contributing — repo layout, tests, dev loop
License
MIT — see LICENSE. Built on netcoredbg (MIT) and the ModelContextProtocol SDK (MIT).
來源:README.md,提交 bad2872
工具
0版本歷史
1- v1.4.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Core 整合
core.blue
blue.core官方發布者
core.blue 的遠端 MCP 端點,提供每位客戶獨立的私有代理記憶「house」:可讀手冊、試用沙盒、查價格與建議,並申請 house。

Brevio Core
由 GitHub 帳號 Brevio-Ventures 發布
本機 MCP 伺服器,讓編碼代理掃描程式碼中反覆出現的代理式錯誤、解釋規則、列出規則,並把一次修正固化成守衛。

brain-core
由 GitHub 帳號 xy-claude 發布
本機 MCP 伺服器,為 Claude Code 代理提供跨工作階段的長期記憶,以 markdown 檔案加上本機 SQLite 與向量索引保存。

Scovant Core
由 GitHub 帳號 Scovant 發布
對網站進行被動式AI代理就緒掃描:robots、llms.txt、JSON-LD、MCP發現、安全性。AI 翻譯

ProofCore
由 GitHub 帳號 ProofCore-Protocol 發布
面向AI代理的TON區塊鏈零認證加密公證與證據層。AI 翻譯