mindraw_mcp
A project-scoped MCP server that opens a Mindraw canvas from the active Codex workspace, with local sidebar preview and desktop app handoff.
README
mindraw4agent
Mindraw for Codex agents: a project-scoped Codex plugin, skill, MCP server, and local sidebar preview service for opening a Mindraw canvas from the active Codex workspace.
- Repository: https://github.com/17lang/mindraw4agent
- Author and primary maintainer: 张军锋
- Copyright holder: 海南万幸科技有限公司
- License for this repository: MIT
- Companion app requirement: Mindraw
>= 1.2.4 - First public target: macOS Apple Silicon
Mindraw App source code is not included in this repository. The Mindraw desktop app, DMG, product name, marks, and binary distribution are governed by separate binary and brand terms from the MIT-licensed agent integration in this repository.
What This Plugin Does
mindraw4agent treats the current Codex workspace as a project root, prepares or inspects MindrawCanvas/, and exposes a project-scoped Mindraw canvas through:
- a Codex skill:
mindraw-open-canvas; - an MCP stdio server:
mindraw_mcp; - a local read-only sidebar preview service;
- an explicit handoff path to the Mindraw desktop app.
The plugin keeps project canvas selection local to the active workspace. It does not read or publish unrelated project folders, does not write .mindraw package internals, and does not implement arbitrary mindraw://...documentId...elementId... target-link entry in this release.
Compatibility
The first public source candidate is scoped to:
- Mindraw App
>= 1.2.4; - macOS on Apple Silicon;
- Codex plugin runtime with local plugin installation support;
- project-local canvas packages under
MindrawCanvas/.
Windows, Linux, Intel Mac, App Store distribution, automatic updates, and arbitrary target-link sidebar entry are outside this first release scope.
Install From A Local Clone
Clone the repository when it exists publicly:
git clone https://github.com/17lang/mindraw4agent.git
cd mindraw4agent
Install the local marketplace source and plugin:
./scripts/install-local.sh
The installer uses the current repository directory as a local Codex plugin marketplace source. It does not install or modify the Mindraw desktop app.
Uninstall
./scripts/uninstall-local.sh
This removes the Codex plugin installation and local marketplace entry for mindraw4agent. It does not remove Mindraw App or any project MindrawCanvas/ files.
Doctor
node scripts/doctor.mjs
node scripts/doctor.mjs --json
Doctor checks the current repository layout, Node runtime, Codex CLI availability, platform compatibility, and whether /Applications/Mindraw.app exists. It is read-only.
Use
In Codex, ask:
Open the Mindraw canvas for this project.
Useful explicit prompts:
Open Mindraw in sidebar for this project.
Open Mindraw app for this project.
Create a new Mindraw project canvas.
The default route starts a local sidebar preview service and prints a project-scoped URL:
http://127.0.0.1:<port>/?project=<hash>
If the preferred port is already owned by another Mindraw project service, the launcher skips that stale service and starts a service for the current project on the next available port.
Safety Model
- Project canvases are stored under the active workspace's
MindrawCanvas/directory. - The plugin never overwrites an existing
.mindrawpackage. - The plugin never handwrites
drawing.excalidraw,manifest.json,.assets/, or other.mindrawpackage internals. - First-run creation uses Mindraw App API
createBlankPackagewhen available. - Sidebar preview uses Mindraw App API
previewSnapshotwhen available. - Desktop handoff uses Mindraw App API
openPackagewhen available. - On macOS, supported LaunchServices fallback is limited to launching Mindraw or the exact latest-created current-project package.
- Sidebar API calls include a project identity hash and fail closed on project mismatch.
Important blocker codes include:
MINDRAW_CANVAS_CREATE_API_REQUIREDMINDRAW_PREVIEW_SOURCE_REQUIREDMINDRAW_PROJECT_CONTEXT_MISMATCHMINDRAW_PROJECT_CANVAS_SCOPE_MISMATCHMINDRAW_OPEN_PACKAGE_API_REQUIRED
Development Validation
npm run check
npm run smoke
npm run smoke:http
npm run smoke:lifecycle
npm run smoke:mcp
Optional sidebar smoke requires Playwright:
PLAYWRIGHT_NODE_MODULES=/path/to/node_modules npm run smoke:sidebar
Optional plugin validation when the Codex plugin validator is available:
python3 /path/to/validate_plugin.py plugins/mindraw
Optional SkillSpector safety checks:
skillspector scan plugins/mindraw/skills/mindraw-open-canvas --no-llm --format json --output skillspector-skill.json
skillspector scan plugins/mindraw --no-llm --format json --output skillspector-plugin.json
Release Status
This repository is prepared as a public source candidate. It is not a public release announcement by itself. A public release still requires repository bootstrap, review, QA, binary terms for the Mindraw DMG, release assets, and download smoke evidence.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.