Repository navigation
mcp permissions
Status: Implemented
Last Updated: 2026-11-13
Audience: Developers and coding agents
Last verified: 2026-11-13 against b1688a8de (permission values, --allow-changes list and --allow-ui-effects messages read in the source; the Writes list was extracted by script)
Code: src/Martlet.Mcp.Protocol/Tools/McpTool.cs, src/Martlet.Mcp.Protocol/McpServer.Discovery.cs, src/Martlet.Mcp.Protocol/AutomationPolicy.Rules.cs, src/Martlet.Mcp.Protocol/DesktopAutomation.cs, src/Martlet.Mcp/Program.cs
Part of MCP in Martlet. This page answers one question: which
tools need --allow-changes or --allow-ui-effects, and what each flag
never allows. The start page tells how to set the flags.
Each tool has a ToolPermission when it is registered with McpServer.Tool(...).
| Value | Meaning |
|---|---|
None |
The tool only reads. It needs no flag. |
Changes |
The tool always saves something. It needs --allow-changes. |
ChangesUnlessPreview |
The tool checks the flag itself. A preview is free. A real change needs --allow-changes. |
UiEffects |
The tool acts on the desktop window. DesktopAutomation checks --allow-ui-effects. |
Some tools have a Writes rule: a test of the arguments of one call. When
the test is true, the call needs --allow-changes. The server refuses the
call and says to add the flag or run scripts\Register-MartletMcp.ps1.
character_create, character_update, character_use, character_delete,
settings_set, skill_directory_add, preferences_add,
preferences_update, preferences_remove, game_state_correct,
game_state_delete, logs_export.
| Tool | Needs --allow-changes when |
|---|---|
memory_forget, memory_where
|
The call is not a preview. |
character_eyes |
save or forget is given. |
character_picture |
outputPath is given. |
character_reaction_changes |
save is given. |
character_touch_zones |
save is given. |
discord_companion_check |
requestFrom is given. |
kept_motions_check |
dataDirectory is given. |
thinking_fallback_timing |
seed is given. |
thinking_speed_check |
seedSlow is given. |
character_animation, character_mouth, character_stroke,
character_touch, ui_click, ui_move, ui_select, ui_set_range,
ui_set_text, ui_toggle, ui_tray and ui_type.
Without the flag, ui_click presses only the controls in AutomationPolicy
SafeClicks and SafeClickPrefixes. ui_toggle changes only
MemoryShowHistory and SettingsShowAdvanced. ui_snapshot returns the
text only of SafeValues controls. It also replaces an e-mail address with
[email] and a file path with [path]. ui_scroll and the read-only
character tools (look, zones, breath, face) need no flag.
- An output file must not be on a network path (UNC or network drive).
It must not replace a file that exists (
RequireLocalNewFile). - A tool that saves a fixture refuses Martlet's own data folder,
%LOCALAPPDATA%\Martlet. Only an absolutedataDirectorythat differs from it counts as disposable (DisposableDataDirectory). -
dataDirectorydefaults to%LOCALAPPDATA%\Martletand must be absolute.
--allow-ui-effects is for verification on a disposable data directory with
no real credentials. It never authorizes spending, real provider requests,
credential handling, audio capture or playback, or disclosure of data. Stop
at those steps. The rule comes from the repository agent instructions in
AGENTS.md.
None.
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