MCP (Model Context Protocol) servers for AI-assisted development (formerly "Dart Dev MCP").
Everything in this repository follows one convention, based on the jhsware_code prefix:
| Kind | Pattern | Example |
|---|---|---|
Dart package (pubspec name:) |
jhsware_code_<tool> |
jhsware_code_filesystem |
| MCP tool name (what agents call) | <tool> (dashes, easy to type) |
filesystem, dart-runner, git |
| Bin entrypoint | packages/<tool>/bin/<tool>_mcp.dart |
packages/filesystem/bin/filesystem_mcp.dart |
| Compiled binary | jhsware-code-<tool> (hyphens) |
jhsware-code-filesystem |
| MCP server key (claude.sh / mcp config) | jhsware_code_<tool> |
jhsware_code_filesystem |
Tool names stay simple and use dashes because they are typed often. Code identifiers (package names, server keys) use snake_case. In config files the two spellings are interchangeable (see Project Configuration).
This package provides the following MCP servers:
Package jhsware_code_filesystem, tool filesystem. File system operations with restricted access to allowed paths:
list-content- Recursively list files and directoriesread-file- Read a single file with line numbersread-files- Read multiple filessearch-text- Search for text patterns in filescreate-directory- Create directoriescreate-file- Create new filesedit-file- Edit existing files (insert or replace lines; whole-file overwrite requiresoverwrite: true)extract- Extract lines from one file and insert into another
Package jhsware_code_git, tool git. Git version control operations with SSH/GPG signing support:
status- Show working tree statusbranch-create- Create a new branchbranch-list- List all branchesbranch-switch- Switch to a branchmerge- Merge a branch into current branchadd- Stage files for commitcommit- Commit staged changes (supports SSH and GPG signing)stash- Stash current changesstash-list- List all stashesstash-apply- Apply a stashstash-pop- Apply and remove a stashtag-create- Create a new tagtag-list- List all tagsremote-list- List remotes with their fetch/push URLslog- Show commit historydiff- Show changessigning-status- Check SSH/GPG signing configuration
The Git MCP auto-detects the enclosing git repository by walking upward from the --project-dir until a .git entry is found. This means you can point --project-dir at any sub-directory of a monorepo and git operations work transparently — no configuration is required.
Path-based access control (the git: list in jhsware_code.yaml) stays anchored at the project directory. Even though git runs from the parent repo root, you can only stage and commit files inside your project's allowed paths.
If no .git is found all the way up to the filesystem root, the server returns a clear error: No git repository found. Searched for a .git directory starting at "<projectDir>" and walking up to the filesystem root without success. Run "git init" here or in a parent directory.
Package jhsware_code_planner, tool planner. Task and step management for AI-assisted development. The planner is a client
that proxies every operation to a running planner_server over HTTPS — it
requires a server URL and a service token (or mTLS client cert) and keeps no local
database (see Planner server connection). Operations:
- Task operations:
add-task,show-task,update-task,list-tasks - Step operations:
add-step,show-step,update-step - Memory:
show-task-memory,update-task-memory - Backlog items:
add-item,show-item,update-item,list-items - Slates:
add-slate,show-slate,update-slate,list-slates - Timeline:
log-commit,log-merge,get-timeline,get-audit-trail - Parent task pattern with sub-task references
Package jhsware_code_code_index, tool code-index. Layered code indexing for token-efficient codebase exploration. Maintains a persistent SQLite index with five information layers (metadata → short summary → symbols → per-symbol descriptions → public API). Uses package:analyzer for Dart files; delegates to Haiku for LLM-generated summaries. Stale detection on every read via XXH3 hashing.
auto-scan- Scan project tree and produce an indexing planauto-index- Layer-aware indexing of a fileget-file/get-files- Retrieve layered file data (selectable layers 0–4)search- Full-text search across names, descriptions, exports, and external symbolsusages- Search external symbol usages by symbol, module, or dot-pathdependents/dependencies- Import graph queriessearch-annotations- Search TODO/FIXME/HACK/NOTE/DEPRECATED annotationsoverview- Compact listing of all indexed filesstats- Aggregate index statisticsdiff- Report changed/added/deleted filesis-allowed- Check if a path is within allowed pathsprune-stores- Report/remove orphaned stores under the data root
Package jhsware_code_dart_runner, tool dart-runner. Run Dart programs with polling for long-running processes:
analyze- Rundart analyzetest- Rundart testrun- Rundart runformat- Rundart formatpub-get- Rundart pub getget_output- Poll for process outputlist_sessions- List active sessionscancel- Cancel a running session
Package jhsware_code_flutter_runner, tool flutter-runner. Run Flutter programs via FVM with polling:
analyze- Runfvm flutter analyzetest- Runfvm flutter testrun- Runfvm flutter runbuild- Runfvm flutter buildget_output- Poll for process outputlist_sessions- List active sessionscancel- Cancel a running session
Package jhsware_code_fetch, tools fetch, fetch-links, fetch-and-transform. URL fetching with HTML to Markdown conversion:
fetch- Fetch URL content with optional Markdown conversionfetch-links- Extract links from a URLfetch-and-transform- Fetch and convert HTML content
Package jhsware_code_apple_mail, tool apple-mail. Read-only Apple Mail operations for listing, searching, and exporting emails (macOS only).
All MCP servers share a common CLI argument format:
dart run packages/<package-dir>/bin/<tool>_mcp.dart \
--project-dir=/path/to/project1 \
--project-dir=/path/to/project2 \
--planner-data-root=/path/to/data \
--prompts-file=/path/to/prompts.yaml--project-dir=PATH- Path to a project directory (required, can be repeated for multi-project sessions)--planner-data-root=PATH- Root directory for the code-index data (required for code_index)--prompts-file=PATH- Path to prompts YAML file (optional)--help, -h- Show help message
The code-index database path is automatically inferred from --planner-data-root:
- Code Index:
[planner-data-root]/projects/[project-dir-name]/db/code_index.db
The planner server is a thin client for a separate planner_server and keeps
no local database. Point it at the server and authenticate with a service token
(or an mTLS client certificate):
--server-url=URL- planner_server base URL (defaulthttps://localhost:9444)--token=TOKEN- service (bearer) token used to authenticate the MCP--ca-cert=PATH- pin the planner_server CA certificate (recommended in prod)--client-cert=PATH/--client-key=PATH- mTLS client certificate + key--insecure- skip TLS verification (development only)
Each flag has an env-var fallback: PLANNER_SERVER_URL, PLANNER_SERVER_TOKEN,
PLANNER_SERVER_CA_CERT, PLANNER_SERVER_CLIENT_CERT, PLANNER_SERVER_CLIENT_KEY,
PLANNER_SERVER_INSECURE.
Issue a service token on the planner_server host (printed once):
planner_server token issue --name <label> --kind mcp [--owner you@example.com]Each project directory can contain a jhsware_code.yaml configuration file that specifies allowed paths per tool:
filesystem:
- packages
- test
- README.md
- pubspec.yaml
git:
- .
code-index:
- packagesEach key is an MCP tool name and its value is a flat list of paths, relative to the project directory. A tool that is not listed gets full project access; a tool listed with no paths gets no access.
Backwards compatibility:
- The legacy file name
jhsware-code.yamlis still accepted. If both files exist,jhsware_code.yamlwins. - Hyphen and underscore spellings of a key are interchangeable:
code_index:matches thecode-indextool and the other way around. Existing config files keep working without changes.
All tool operations require a project_dir parameter that must match one of the registered --project-dir values. This enables multi-project sessions where each tool invocation specifies which project it operates on.
# Clone the repository
git clone https://github.com/jhsware/dart_dev_mcp.git jhsware_code
cd jhsware_code
# Get dependencies for the workspace
dart pub getUse the claude.sh script to launch Claude with the MCP servers. The servers are
registered under jhsware_code_<tool> keys (e.g. jhsware_code_filesystem) and
expose simple tool names (filesystem, git, dart-runner, ...). The planner
server is a client for a separate planner_server, so it needs the server URL
and a service token — pass them as flags or via environment variables:
export PLANNER_SERVER_TOKEN=... # issued on the planner_server host
./claude.sh all \
--project-dir=/path/to/project \
--planner-data-root=/path/to/data \
--server-url=https://localhost:9444--planner-data-root is for the code-index server; the planner server reads
--server-url / --planner-token (or PLANNER_SERVER_URL / PLANNER_SERVER_TOKEN).
Run ./claude.sh --help for CA-pinning and mTLS options.
./build.sh build compiles every server to bin/ as jhsware-code-<tool>
(for example jhsware-code-filesystem, jhsware-code-git,
jhsware-code-dart-runner). ./build.sh release-macos signs and packages them
into bin/jhsware-code-installer.pkg installing to /usr/local/bin.
The file system and git MCP servers only allow access to paths specified in each project's jhsware_code.yaml (or legacy jhsware-code.yaml) configuration file. This prevents unauthorized access to sensitive files.
All tool invocations require a valid project_dir parameter that must match a registered project directory, providing isolation between projects in multi-project sessions.
# Run tests for a package
dart test packages/planner
dart test packages/filesystem
# Analyze code
dart analyze packages/shared_libs
dart analyze packages/planner
# Format code
dart format packages/MIT