Miko.McpServer 0.0.42

dotnet add package Miko.McpServer --version 0.0.42
                    
NuGet\Install-Package Miko.McpServer -Version 0.0.42
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Miko.McpServer" Version="0.0.42" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Miko.McpServer" Version="0.0.42" />
                    
Directory.Packages.props
<PackageReference Include="Miko.McpServer" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Miko.McpServer --version 0.0.42
                    
#r "nuget: Miko.McpServer, 0.0.42"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Miko.McpServer@0.0.42
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Miko.McpServer&version=0.0.42
                    
Install as a Cake Addin
#tool nuget:?package=Miko.McpServer&version=0.0.42
                    
Install as a Cake Tool

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

Simulatorsimulator_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.

DevToolsdevtools_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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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