Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Real-time .NET proxy and dashboard for inspecting AI coding agent API calls (currently supports Claude Code)
Jump to setup instructionsNo tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Same catalog task: AI & machine learning.
.prompts, the home to all your AI prompts, everywhere you need them.
Same catalog task: AI & machine learning.
Real MCP server (stdio + @modelcontextprotocol/sdk) that exposes x402-paywalled HTTP endpoints as MCP tools. Drop into Claude Desktop, Cursor, or any MCP client.
Same catalog task: AI & machine learning.
Standalone MCP (Model Context Protocol) server - stdio/http/websocket transports, connection pooling, tool registry
Fetched from the repository for this visit.
A real-time .NET proxy and dashboard for inspecting Claude Code API calls. Intercept, visualize, and analyze every request and response between Claude Code and the Anthropic API.
With Coding Agent Explorer, you can:
You need the .NET 10 SDK. Then:
git clone https://github.com/tndata/CodingAgentExplorer.git
cd CodingAgentExplorer
dotnet run --project CodingAgentExplorer
In a second terminal, point Claude Code at the proxy (source EnableProxy.sh, or EnableProxy.bat / .\EnableProxy.ps1 on Windows) and start claude. Open https://localhost:5001: every request Claude Code makes shows up in the HTTP Inspector as it happens. The full steps are in Getting Started.
The blog posts walk through what the tool shows, with screenshots:
The dashboard offers three views for inspecting your coding agent's activity: HTTP Inspector, Conversation View, and MCP Observer.
Every API request and response is captured and displayed in a table with full headers, request and response bodies, streaming SSE events, token usage, and timing details.
The Conversation View renders the raw API traffic as a readable chat-style timeline, showing messages, tool calls, responses, and hook events in the order they occurred.
The MCP Observer acts as a proxy between Claude Code and any HTTP-based MCP server. Configure the destination URL and all MCP traffic is captured and displayed in real time. Read more in Visualizing Claude Code MCP Requests with Coding Agent Explorer.
Download and install the .NET 10 SDK if you do not already have it.
git clone https://github.com/tndata/CodingAgentExplorer.git
cd CodingAgentExplorer
dotnet build
dotnet run --project CodingAgentExplorer
This starts four endpoints:
For Claude Code, set the ANTHROPIC_BASE_URL environment variable to point at the proxy.
Linux / macOS / Git Bash:
Use source, so the variables are set in your current shell:
source EnableProxy.sh
Running the script instead (./EnableProxy.sh or bash EnableProxy.sh) sets the variables in a child shell that exits at once, so Claude Code would bypass the proxy. The script refuses to run that way and tells you to use source. To check that it worked:
echo $ANTHROPIC_BASE_URL
It should print http://localhost:8888. Run source DisableProxy.sh to clear it when you are done.
Windows (cmd):
EnableProxy.bat
Run DisableProxy.bat to clear it.
Windows (PowerShell):
# Enable
$env:ANTHROPIC_BASE_URL = "http://localhost:8888"
$env:CLAUDE_CODE_GATEWAY_HINT_HEADERS = "1"
# Disable
Remove-Item Env:ANTHROPIC_BASE_URL
Remove-Item Env:CLAUDE_CODE_GATEWAY_HINT_HEADERS
Or use the scripts: .\EnableProxy.ps1 and .\DisableProxy.ps1. If PowerShell says running scripts is disabled on this system, use the lines above, or allow scripts for this session with Set-ExecutionPolicy -Scope Process Bypass. If you downloaded the repository as a zip, run Unblock-File *.ps1 once. Note that EnableProxy.bat does not work from PowerShell: it runs in a separate cmd process, so the variables are gone when it ends.
The scripts also set CLAUDE_CODE_GATEWAY_HINT_HEADERS=1. Claude Code sends extra x-claude-code-* request headers (request class: main, subagent or auxiliary; agent type; prompt id; tool durations) when it talks to api.anthropic.com directly, but not through a custom ANTHROPIC_BASE_URL unless this variable is set. With it, the proxy sees the same headers as a direct session.
All scripts only affect the current terminal session. The variables are not persisted, so closing the terminal automatically clears them.
Then use Claude Code as you normally would.
Open https://localhost:5001 in your browser. The app does not open it for you, except when you start it from Visual Studio.
You will see three views and a settings page:
By default the proxy on port 8888 forwards to https://api.anthropic.com. You can point it at any other server that speaks the Anthropic Messages API, for example a local model in LM Studio, which has an Anthropic-compatible endpoint. The proxy forwards requests as they are and translates nothing, so an OpenAI-only server will not work.
The upstream is chosen in this order:
CODING_AGENT_EXPLORER_UPSTREAM_URL, set before you start the app:
$env:CODING_AGENT_EXPLORER_UPSTREAM_URL = "http://localhost:1234"
appsettings.json, the ApiUpstream:Url setting.https://api.anthropic.com.The console shows the upstream in use at startup, and the Settings page shows it at any time. An invalid URL in the variable or in appsettings.json stops the app at startup with an error, instead of silently falling back to Anthropic. A path in the URL is kept (https://gateway.example.com/anthropic sends /v1/messages to /anthropic/v1/messages).
The proxy passes on whatever credentials Claude Code sends, so the upstream receives your API key or login token. Only point it at servers you trust.
When Claude Code talks to a local model, start it with that model's name, for example claude --model qwen3-coder-30b-a3b-instruct-mlx. The configurable upstream was contributed by Marek Kacprzak.
The MCP Observer lets you intercept and inspect traffic between Claude Code and any Model Context Protocol (MCP) server that uses the HTTP transport. It acts as a transparent proxy on port 9999, sitting between Claude Code and the real MCP server.
HTTP transport only. MCP servers that run locally over stdio (added with
claude mcp add <name> -- <command>) talk to Claude Code through stdin and stdout, so their traffic never passes the proxy and the MCP Observer stays empty. To see their tool calls, use HookAgent: thePreToolUseandPostToolUseevents also fire for MCP tools (tool names likemcp__<server>__<tool>).
Claude Code --► MCP Observer (port 9999) --► Real MCP Server
|
▼
Dashboard (port 5000/5001)
initialize, tools/list, tools/call, etc.)tools/call, the specific tool name is shown inline, e.g. tools/call (query-docs)tools/list - one card per tool with name, description, and parametersinitialize - protocol version, server name, and capabilitiestools/call - the returned content rendered directlyStep 1: Open the MCP Observer at https://localhost:5001/mcp/index.html.
Step 2: Enter the URL of the real MCP server in the destination field and click Set.
Step 3: Register the proxy as an MCP server in Claude Code:
claude mcp add --transport http mcp_proxy http://localhost:9999
Claude Code will now route all MCP traffic through the observer. To remove it later:
claude mcp remove mcp_proxy
| Service | URL | Sample prompt |
|---|---|---|
| Microsoft Learn | https://learn.microsoft.com/api/mcp | "How do I create an Azure Container App using az cli?" |
| Context7 | https://mcp.context7.com/mcp | "How do I set up middleware in Next.js 15? use context7" |
Run the publish script from the repo root to build release artifacts into Published/ (gitignored). Each script builds both projects for the current platform.
Windows:
publish.bat
| Output | Description |
|---|---|
Published\CodingAgentExplorer\ | Proxy + dashboard (exe, wwwroot, appsettings.json) |
Published\HookAgent\HookAgent.exe | HookAgent (win-x64, single-file) |
macOS / Linux:
bash publish.sh
| Output | Description |
|---|---|
Published/CodingAgentExplorer/ | Proxy + dashboard (exe, wwwroot, appsettings.json) |
Published/HookAgent/HookAgent | HookAgent (current platform, single-file) |
All outputs require the .NET 10 runtime on the target machine. To use HookAgent as a Claude Code hook command, see HookAgent.
SetupDemoFolder.bat builds a ready-to-use demo folder in one step, so a demo or a talk starts from the same clean state every time. It:
publish.bat,C:\Conf (it must be missing or empty, nothing is ever deleted),EnableProxy.bat, HookAgent\HookAgent.exe and .pdb, the Windows sample .claude\settings.json, and the sample skill from DemoFolder\skills\Sweden\.SetupDemoFolder.bat
The folder is always C:\Conf. If it already exists and is not empty, the script stops and asks you to clear it first, so to run it again, empty or delete C:\Conf yourself.
Then open a command prompt in the demo folder, run EnableProxy.bat and start claude.
HookAgent is a small companion CLI tool that acts as a Claude Code hook command. It bridges Claude Code's hook system and the CodingAgentExplorer dashboard, letting you see every hook event (session start/end, tool calls, permission requests, notifications, and more) appear in the conversation view in real time.
Read more: Exploring Claude Code Hooks with the Coding Agent Explorer (.NET)
Claude Code invokes hook commands by writing a JSON payload to stdin and reading the exit code and stdout/stderr on completion. HookAgent:
CLAUDE_PROJECT_DIR, CLAUDE_ENV_FILE, etc.)http://localhost:5000/api/hook-eventexitCode, stdout, and stderr back to Claude CodeStep 1: Run publish.bat to build both projects.
Step 2: Put HookAgent.exe where Claude Code can run it. Pick one:
Published\HookAgent\ into the working directory where you run claude, as shown below. The sample settings already point to HookAgent/HookAgent.exe.Published\HookAgent\ once to a folder such as C:\Tools\HookAgent\, and change every command in .claude\settings.json to the full path, for example C:/Tools/HookAgent/HookAgent.exe. You then need no copy per project.C:\MyProject\
HookAgent\
HookAgent.exe
.claude\
settings.json
Step 3: Copy HookAgent\Sample-Settings-Windows\settings.json from the repo to .claude\settings.json in the working directory. This registers HookAgent for 31 of the 33 Claude Code hook events (see Hook events captured).
Step 4: Start CodingAgentExplorer, then run claude from the working directory. Hook events appear in the Conversation View alongside API requests.
Note: On Windows, Claude Code runs hook commands with Git Bash, or with PowerShell when Git Bash is not installed. Forward slashes in the command path work in both:
HookAgent/HookAgent.exe.
Step 1: Run bash publish.sh to build both projects for your platform.
Step 2: Put HookAgent where Claude Code can run it. Pick one:
Published/HookAgent/ into the working directory where you run claude, as shown below. The sample settings already point to HookAgent/HookAgent.Published/HookAgent/ once to a folder such as /opt/hookagent/, and change every command in .claude/settings.json to the full path, for example /opt/hookagent/HookAgent. You then need no copy per project.~/MyProject/
HookAgent/
HookAgent
.claude/
settings.json
Step 3: Copy HookAgent/Sample-Settings-LinuxMacOS/settings.json from the repo to .claude/settings.json in the working directory. This registers HookAgent for 31 of the 33 Claude Code hook events (see Hook events captured).
Step 4: Start CodingAgentExplorer, then run claude from the working directory. Hook events appear in the Conversation View alongside API requests.
The sample settings.json files assume the following. Change the file if your setup differs.
HookAgent/HookAgent.exe (HookAgent/HookAgent on macOS and Linux) is resolved from the folder where you start claude. Start it from another folder, or put HookAgent somewhere else, and the hooks silently do nothing until you use a full path.http://localhost:5000. That address is built into HookAgent. If the dashboard is not running, HookAgent exits silently with code 0 and Claude Code carries on."async": false), so Claude Code waits for HookAgent on each event. Only MessageDisplay is async, because it fires while text streams. Add "async": true to any entry if you only observe and do not need exact ordering."matcher": ".*"). Narrow the matcher to watch only some tools.WorktreeCreate and WorktreeRemove are left out because a hook for them replaces git's own worktree handling (Claude Code reads the hook's stdout as the worktree path, and HookAgent is an observer that prints nothing). FileChanged is registered for .env and .envrc; it only fires for the literal file names in its matcher, so change them to the files you want to watch. If your Claude Code version does not know an event, remove its entry.Test HookAgent manually before starting a Claude Code session:
echo '{"hook_event_name":"UserPromptSubmit","session_id":"test"}' | HookAgent/HookAgent.exe
If the dashboard is running, a UserPromptSubmit event appears in the Conversation View immediately. If the dashboard is not running, the command exits silently with code 0.
Hook events appear inline in the Conversation View, interleaved with API requests in chronological order. Each event shows the event type, timestamp, session, and any stdout returned by the dashboard.
| Event | When it fires |
|---|---|
SessionStart / SessionEnd | Claude Code session begins or resumes / terminates |
Setup | --init-only, or --init / --maintenance with -p |
UserPromptSubmit | User submits a prompt |
UserPromptExpansion | A typed command expands into a prompt |
PreToolUse | Before any tool call executes |
PermissionRequest / PermissionDenied | Claude Code asks for permission / auto mode denies a tool call |
PostToolUse / PostToolUseFailure | After a tool call succeeds / fails |
PostToolBatch | After a batch of parallel tool calls, before the next model call |
MessageDisplay | While assistant text is displayed (runs with async: true) |
Stop / StopFailure | Claude finishes responding / the turn ends on an API error |
SubagentStart / SubagentStop | A subagent is spawned or finishes |
TaskCreated / TaskCompleted / TeammateIdle | Task and agent team events |
Notification | Claude Code sends a notification |
FileChanged | A watched file (matcher: .env|.envrc) changes on disk |
PreCompact / PostCompact | Before / after context compaction |
PreModelSwitch / PostModelSwitch | Before / after the model changes |
InstructionsLoaded | A CLAUDE.md file or rule is loaded into context |
ConfigChange | A settings file changes during the session |
CwdChanged / DirectoryAdded | The working directory changes / /add-dir adds a directory |
Elicitation / ElicitationResult | An MCP server asks for user input / the user answered |
Three events are left out on purpose. WorktreeCreate and WorktreeRemove replace git's own worktree handling, so a hook that only observes would break worktree creation. FileChanged needs literal file names as matchers, so one catch-all entry makes no sense. The list matches Claude Code 2.1.318; if your version does not know an event, remove its entry from settings.json. All hooks run synchronously (async: false) so the order in the timeline is exact, except MessageDisplay, which fires while text streams and runs in the background. For pure observation you can set async: true on any entry.
Coding Agent ──► CodingAgentExplorer (port 8888) ──► LLM API
│
▼
Web Dashboard (port 5000/5001)
Real-time via SignalR
Yarp.ReverseProxy)├── publish.bat # Publishes both projects to Published/ (Windows, win-x64)
├── publish.sh # Publishes both projects to Published/ (all platforms)
├── SetupDemoFolder.bat # Creates a clean demo folder, C:\Conf (Windows)
├── DemoFolder/ # Sample skill copied into the demo folder
├── CodingAgentExplorer/
│ ├── Program.cs # App setup: YARP, SignalR, dual-port Kestrel
│ ├── Models/ # DTOs: ProxiedRequest, ClaudeRequestBody, SseEvent, HookEvent
│ ├── Services/RequestStore.cs # In-memory circular buffer (max 1000 requests)
│ ├── Services/HookEventStore.cs # In-memory store for hook events
│ ├── Services/McpRequestStore.cs # In-memory store for MCP requests
│ ├── Services/McpProxyConfig.cs # Holds the configured MCP destination URL
│ ├── Services/ApiUpstreamConfig.cs # Where port 8888 forwards to (startup value and Settings override)
│ ├── Services/DashboardRequestGuard.cs # Only the dashboard may change the settings endpoints
│ ├── Proxy/CaptureTransformProvider.cs # YARP ITransformProvider for request/response capture
│ ├── Proxy/DynamicProxyConfigProvider.cs # Dynamic YARP config for Claude (8888) and MCP (9999) routes
│ ├── Hubs/DashboardHub.cs # SignalR hub for real-time dashboard updates
│ └── wwwroot/ # Dashboard SPA (vanilla HTML/JS/CSS)
│ ├── index.html # Landing page with view selection
│ ├── inspector/ # HTTP Inspector view
│ ├── conversation/ # Conversation view
│ ├── mcp/ # MCP Observer view
│ ├── settings/ # Settings page (API upstream)
│ ├── css/ # Stylesheets
│ └── js/ # Dashboard and conversation scripts
└── HookAgent/ # Single-file CLI tool for Claude Code hooks
Coding Agent Explorer is a proxy, so it sees everything Claude Code sends and receives: your prompts, file contents, tool output, the model's replies and the request headers.
x-api-key and Authorization headers) are automatically redacted from stored request datalocalhost - it is not exposed to the networklocalhost Host header and, from a browser, only from the dashboard itself. This blocks other web pages, including DNS rebinding tricks, from changing themx-api-key and Authorization request headers are redacted. Request and response bodies, and any other headers (for example a custom token header for an MCP server), are kept as they are.Why there are no prebuilt downloads. This is on purpose. A tool that sits between you and the API and sees your keys and prompts is one you should build from source yourself, and read the code first if you want to.
Your responsibility. The software is provided as is, without warranty, under the MIT License. Use it on your own traffic, and treat what the dashboard shows as sensitive: it can include source code, secrets that appear in files or prompts, and personal data.
This tool was developed by Tore Nestenius, a Microsoft .NET MVP and independent consultant and trainer from Göteborg, Sweden, specializing in authentication, identity and security in .NET.
Coding Agent Explorer was built as a teaching tool for Tore Nestenius' talk How Coding Agents Actually Work: Tools, MCP, and the Agent Loop, which he has given more than ten times. It helps developers see what happens under the hood when an AI coding agent works.
Would you like the talk at your conference, user group or company? Get in touch. If you prefer to read first, start with the blog post Introducing the Coding Agent Explorer (.NET).
Coding Agent Explorer currently supports Claude Code with the Anthropic API. Support for additional coding agents may be added in the future.
This project is licensed under the MIT License.
Loading reviews...
GitHub checked 87h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.