Miko.McpServer
0.0.42
dotnet add package Miko.McpServer --version 0.0.42
NuGet\Install-Package Miko.McpServer -Version 0.0.42
<PackageReference Include="Miko.McpServer" Version="0.0.42" />
<PackageVersion Include="Miko.McpServer" Version="0.0.42" />
<PackageReference Include="Miko.McpServer" />
paket add Miko.McpServer --version 0.0.42
#r "nuget: Miko.McpServer, 0.0.42"
#:package Miko.McpServer@0.0.42
#addin nuget:?package=Miko.McpServer&version=0.0.42
#tool nuget:?package=Miko.McpServer&version=0.0.42
Miko.McpServer
MCP (Model Context Protocol) debug server for Miko.
Miko.McpServer exposes a running Miko app's Simulator and DevTools
capabilities over the standard Model Context Protocol
(Streamable HTTP), so AI agents such as Claude Code can inspect the DOM,
read computed styles, simulate clicks, switch devices, capture screenshots, and
more — while the app runs in the device simulator.
It is built on the official
ModelContextProtocol.AspNetCore
SDK, so the protocol (initialize handshake, tools/list, tools/call) is
implemented to spec.
Usage
In the simulator startup project, enable the server when building the app
context. It only starts when you call AddMikoMcpServer(), so production heads
that never call it pay nothing:
using Miko.McpServer;
using Miko.Simulator;
// Shared App.CreateContext takes an optional builder hook so only the
// simulator head references Miko.McpServer.
var context = App.CreateContext(builder => builder.AddMikoMcpServer());
context.RunSimulator();
Run the simulator; alongside the window it starts an MCP endpoint on
http://localhost:5800:
dotnet run --project MyApp.Simulator/MyApp.Simulator.csproj
Point an MCP client at it. For Claude Code, add .mcp.json at the repo root:
{
"mcpServers": {
"miko": {
"type": "http",
"url": "http://localhost:5800"
}
}
}
Tools
Simulator — simulator_get_current_device, simulator_list_devices,
simulator_select_device, simulator_get_orientation,
simulator_set_orientation, simulator_get_safe_area,
simulator_toggle_safe_area, simulator_screenshot.
DevTools — devtools_get_dom_tree, devtools_find_element,
devtools_query_elements, devtools_get_computed_style,
devtools_get_box_model, devtools_click_element, devtools_get_logs.
Options
AddMikoMcpServer(o => …) accepts MikoMcpOptions:
| Option | Default | Description |
|---|---|---|
Port |
5800 |
Local HTTP port the MCP endpoint listens on. |
LogBufferSize |
1000 |
Ring-buffer capacity for devtools_get_logs. |
See the documentation for the full guide.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Miko (>= 0.0.42)
- Miko.DevTools (>= 0.0.42)
- Miko.Simulator (>= 0.0.42)
- ModelContextProtocol.AspNetCore (>= 2.0.0-preview.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.42 | 32 | 7/24/2026 |
| 0.0.41 | 45 | 7/23/2026 |
| 0.0.40 | 39 | 7/22/2026 |
| 0.0.39 | 52 | 7/22/2026 |
| 0.0.38 | 40 | 7/21/2026 |
| 0.0.37 | 47 | 7/21/2026 |
| 0.0.36 | 45 | 7/20/2026 |
| 0.0.35 | 52 | 7/17/2026 |
| 0.0.34 | 53 | 7/17/2026 |
| 0.0.33 | 51 | 7/16/2026 |
| 0.0.32 | 50 | 7/16/2026 |
| 0.0.31 | 51 | 7/15/2026 |
| 0.0.30 | 51 | 7/14/2026 |
| 0.0.29 | 49 | 7/14/2026 |
| 0.0.28 | 54 | 7/13/2026 |
| 0.0.27 | 67 | 7/10/2026 |