Repository navigation
Martlet MCP Server
Status: Implemented
Last Updated: 2026-11-13
Audience: Developers and coding agents
Last verified: 2026-11-13 against b1688a8de
Code: src/Martlet.Mcp, src/Martlet.Mcp.Protocol, scripts/Invoke-MartletMcp.ps1, scripts/Register-MartletMcp.ps1
Martlet's Model Context Protocol (MCP) server lets an assistant manage characters, read settings, use desktop controls and run diagnostics. It is separate from the MCP client that gives Martlet tools during a conversation.
The server is a Windows program. It uses standard input and output for MCP messages. A tool can do more than the server's startup: for example, the character search tools contact websites.
Run scripts/Register-MartletMcp.ps1 from a checkout. It builds and copies the server, then registers it with assistants whose settings folders exist. If none exist, it selects Copilot. It backs up existing configuration files.
By default, registration enables changes. Use -ReadOnly to disable them. Use -Client to choose assistants, -Unregister to remove the entry, and -NoBuild to use an existing build. Restart the assistant after registration. See Connect an assistant for details.
-
--allow-changesenables writes by character, settings and other tools that require it. -
--allow-ui-effectsallows UI actions that change things. Without it, the UI tools navigate and read. -
--all-toolslists all tools. Unlisted tools still work by name or throughmartlet_call.
Start with martlet_guide. The default list includes character, settings, Doctor, log and UI tools. The server uses the current user's Martlet data folder unless a tool receives dataDirectory. The settings tools do not change provider routes or API keys; those need consent in the app.
scripts/Invoke-MartletMcp.ps1 runs tool calls against this checkout. By default it supplies a disposable data directory to tools that accept one. -Build builds the server. -Desktop also builds and starts the desktop when used with -Build. The UI needs an interactive Windows desktop.
Use -AllowChanges only for intended writes. Use -AllowUiEffects only with disposable data and no real credentials. It does not authorize paid requests, audio capture, playback or data disclosure. Check the returned outcome, not only whether the call succeeded.
The verification guide gives call examples and options. The extension guide explains how to expose new controls and status.
Martlet: download · repository · changelog · issues
These pages come from docs/wiki in the repository. To suggest a change, open an issue or a pull request there.
- Home
- Accounts and households
- Accounts and Household
- Android phones and tablets: what it takes, and the plan
- Martlet's API for other apps and scripts
- App Guides
- App Settings and Updates
- App guides: game and app knowledge from the web
- Architecture
- Bounded PCM playback
- Audio dependency inventory and notices
- Avatar guide: Live2D, VRM and speech animation
- V01a explicit microphone capture
- Chatterbox voice engines
- Cleaning up disk space
- One Martlet on all your computers
- Companion controls and behavior requirements
- Components, jobs and placement (design)
- Live conversation
- Creations
- Decision map: which file owns each decision
- Deep research: web search and long research jobs
- The desktop app: updates, notification area, exiting and appearance
- Linux and macOS desktop companion: research, decision and plan
- Developer Guide
- Dia voice engine
- Diagnostics
- Discord
- Architecture and provider contracts
- Discord
- Memory (P03a/P03b/P03c)
- Singing
- Desktop troubleshooting and local support
- Recognizing people by voice, and Parakeet
- Echo cancellation
- ElevenLabs voice: your cloned voice with tones
- F5 worker and reference-voice foundation
- FAQ
- First Steps
- Game state plan: implementation history
- Glossary: one name for each concept
- GPT-SoVITS voice
- Hosted Thinking: cloud models when Thinking can't run on this PC
- Installation and support
- Installing Martlet
- iOS and iPadOS: what it takes, and the plan
- Repository instructions for coding agents
- Repository knowledge base
- Knowledge base maintenance
- GitHub Wiki mirror
- Linux and Mac
- Listening and Voice ID
- Local model apps
- Lorebooks
- macOS: what it takes, and the plan
- Martlet MCP Server
- MCP in Martlet
- MCP: The app's window
- MCP: Apps, home and memory
- MCP: Characters
- MCP: Diagnostics and logs
- MCP: Computers, network and accounts
- MCP: Other
- MCP: Tool permissions
- MCP pages
- MCP: Server and protocol internals
- MCP: Settings
- MCP: Start here
- MCP: Thinking and models
- MCP: Voice and listening
- Memory
- Messaging apps
- Model catalog: sources, conflicts and design
- Motion host role
- Multiple Computers
- Your Martlet network
- OCR host role
- Share your language models: the OpenAI-compatible endpoint
- Packaging
- Perception worker contracts
- Personality and Characters
- Picture making
- Pictures and Creations
- Picture making host role
- Platforms: what each device can do
- Prerequisites: what Martlet bundles, installs for you, or needs from you
- Privacy and Safety
- Reading the text on your screen
- Wiki source
- Recommendation design: ask three questions, plan for three situations
- Recommended setups: one machine to unlimited budget
- Releasing
- Repository Layout
- Research and provenance ledger
- Resource footprints
- Roadmap
- Watch my screen: screen-aware commentary
- Search engine
- Image and audio models: who sees, who hears, who answers
- Setting Up a Host
- Setup, Windows credentials and local audio
- Sharing with Friends
- Singing
- Smart Home
- Smart home and cameras
- Source Projects
- Talking to Martlet
- Telegram and WhatsApp
- The Character
- Thinking
- Tools and MCP
- Troubleshooting
- Martlet desktop UI design
- User stories and target flows
- Voice activity detection
- Validating changes
- Validation and Testing
- Vision
- Voice latency: from you stopping talking to Martlet's voice
- Voice recognition host role
- Multi-engine voice setup and comparison
- Voices
- The welcome wizard
- XTTS-v2 voice engine