local-coder-mcp
The server exposes a local coding-agent toolset that lets Claude safely inspect workspaces, classify tasks, delegate or execute coding work on local models, retrieve run details, and monitor health/telemetry.
Check Ollama connectivity, adaptive model availability, and resource settings (
local_coder_health).Classify a coding task as deterministic, local, local-supervised, or Claude route (
classify_local_code_task).Discover a bounded workspace view and root scripts without following symlinks (
discover_local_workspace).Perform bounded literal text/code search in a workspace (
search_local_workspace).Delegate read-only analysis, implementation, or patch generation to the fast local model (
delegate_code_task).Execute a coding task with editable files, allowlisted validation commands, retries, constraints, and rollback (
execute_local_code_task,execute_local_code_task_compact).Orchestrate large multi-task feature plans with dependencies, per-task routing/validation, final validation, and rollback (
execute_local_code_plan,execute_local_code_plan_compact).Build a compact evidence-first context capsule from the persistent repository index (
prepare_local_context).Fetch stored execution results lazily by summary, diff, validation, or full view with offset/maxChars (
get_local_run).Retrieve privacy-preserving routing/execution/orchestration telemetry including per-model Ollama usage (
local_coder_telemetry).
Allows delegating bounded code implementation tasks to a locally running Ollama model, including health checks, code generation/editing, validation, retry, rollback, and diff reporting.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@local-coder-mcp Implement the missing parseDate function in src/date.ts with the local model."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Axis
Axis is a local-first, provider-agnostic AI engineering and work command center for macOS. The desktop app owns the complete engineering loop itself: repository investigation, planning, implementation, deterministic validation, review, repair, routing, cost controls and persistent repository intelligence. Its Work Hub brings work sources and connectors into the same desktop environment while preserving project and organization isolation.
Claude Desktop is not an Axis host and Axis does not expose an MCP integration. Anthropic models may still be configured as ordinary inference providers alongside OpenAI and local Ollama models.
Architecture
Developer
│
▼
Axis.app
│
▼
Electron renderer
│
▼
isolated preload IPC
│
▼
in-process DesktopAppRuntime
│
├── Projects / credentials / budgets
├── Cognitive router
├── Repo Intelligence
├── Research broker
└── Agent Runtime
│
├── Ollama on this Mac
├── authenticated Windows inference worker (optional)
├── Anthropic API (optional)
└── OpenAI API (optional)
│
▼
plan → mutate → validate → review → repair → learnThere is no browser console, dashboard service, localhost control-plane server, or shared MCP control-plane configuration in the shipped product. The renderer calls the runtime through a narrow Electron IPC bridge.
Related MCP server: Ollama MCP Server
Agent lifecycle
Goal
↓
Impact analysis
↓
optional Architect → Critic → Judge deliberation
↓
repository evidence / optional external research
↓
material user decision only when genuinely required
↓
Investigation
↓
Planning
↓
dependency-ordered implementation DAG
↓
Implementation
↓
Deterministic validation
↓
Independent adversarial review
↓
bounded repair with cumulative regression ledger
↓
Quality gate
↓
Repository learning
↓
ResultThe Agent Runtime—not a model adapter—owns workspace access, repository memory, evidence selection, planning, mutation, validation, review/repair, privacy and budgets.
See docs/PREMIUM_LOCAL_AGENT.md.
Desktop development
Requirements:
macOS for the packaged desktop experience and Keychain-backed secrets;
Node.js 22+;
npm;
Ollama for local inference, or at least one configured cloud provider;
optional Windows worker for local inference on a separate machine.
Install and launch:
npm install
npm run desktopBuild without launching Electron:
npm run buildValidate the repository:
npm run check
npm testPackage unsigned macOS development artifacts:
npm run desktop:pack:macThe production renderer is built into app-dist/; the Electron main process imports DesktopAppRuntime directly from dist/ and does not start a web server.
Projects and model routing
Projects isolate workspace, organization identity, credentials, routing policy, model selection, budgets and Repo Intelligence scope.
Supported routing policies:
auto
local-first
balanced
speed-first
deep
frontier-onlyImportant invariants:
speed-firstmay select an eligible cloud model directly, without a mandatory local-model pre-pass;local-firststays local when healthy local compute satisfies policy;explicit provider/model selection is exact or rejected, never silently replaced;
cloudAllowedand provider allowlists are hard constraints;provider fallback cannot silently cross a material privacy/cost boundary;
budget admission happens before provider I/O;
model availability comes from provider discovery rather than a stale hardcoded cloud-model list.
See docs/MULTI_PROVIDER_FOUNDATION.md.
Providers
Axis currently supports these inference paths:
Ollama — local inference on the Mac;
Windows worker — authenticated local-network inference compute, with repository execution still owned by the Mac app;
Anthropic — optional cloud inference provider;
OpenAI — optional cloud inference provider.
Cloud credentials use macOS Keychain for durable desktop storage or environment references where supported. Raw API keys are not written to Project metadata, telemetry or prompts.
The Windows worker is compute only. It does not host the desktop agent, project state, routing policy or repository intelligence.
Recommended Windows worker settings for the 27B local path:
LOCAL_CODER_MODEL=qwen3.8:27b
LOCAL_CODER_NUM_CTX=16384
OLLAMA_NUM_PARALLEL=1
OLLAMA_MAX_LOADED_MODELS=1
LOCAL_CODER_WORKER_MAX_CONCURRENT_JOBS=1Execution topology:
Mode | Behavior |
| Use Ollama on the Mac for local inference. |
| Require the authenticated Windows worker for local inference. |
| Prefer the Windows worker and fall back to Mac Ollama when allowed. |
LOCAL_CODER_EXECUTION_MODE=local|remote|autoProject-aware multi-provider routing is a separate layer above this local-compute topology.
See docs/REMOTE_WORKER_ARCHITECTURE.md and docs/WINDOWS_REMOTE_SETUP.md.
App state
Axis intentionally keeps the existing standalone state root for backward compatibility:
~/.local-coder/The primary settings file is:
~/.local-coder/settings.jsonOverride paths when needed:
LOCAL_CODER_HOME=/custom/path
LOCAL_CODER_SETTINGS_PATH=/custom/path/settings.jsonWorker bearer tokens may be supplied explicitly through LOCAL_CODER_REMOTE_WORKER_TOKEN or referenced from macOS Keychain through LOCAL_CODER_REMOTE_WORKER_CREDENTIAL_REF. New app settings never persist the raw worker token.
Research broker
External research is optional and goes directly through configured infrastructure. Retrieved text is treated as untrusted evidence, never executable instructions.
Enable a trusted SearXNG instance:
LOCAL_CODER_RESEARCH_ENABLED=true
LOCAL_CODER_SEARXNG_URL=http://<trusted-instance>For Microsoft ecosystem questions, Axis narrows discovery to site:learn.microsoft.com; it does not connect to a Microsoft Learn MCP server.
Persistent repository intelligence
Axis retains evidence-backed per-repository knowledge such as architecture boundaries, conventions, procedures, invariants, failure lessons, regression invariants, successful task episodes and Git-change history.
Authority remains:
current source + executable tests
> fresh regression/invariant memory
> other repo intelligence
> generic model knowledgeSee docs/REPO_INTELLIGENCE.md.
Eval suite
Local Agent Runtime eval:
npm run eval:agentMulti-provider comparative eval dry-run:
npm run eval:providersThe comparative harness can run the same repository tasks against local Qwen, configured Anthropic models, configured OpenAI models and Auto Router from identical detached Git worktrees. It reports expectation pass rate, engineering quality, elapsed time, routing/provider/model attempts, fallbacks, token usage, known/unknown cost, changed files and deterministic validation outcomes.
See docs/COMPARATIVE_EVALS.md and docs/ROUTER_CALIBRATION.md.
Safety boundaries
explicit workspace/editable-file boundaries;
path traversal and symlink escape protection;
.git,.ssh, dependency folders and secret env files blocked by workspace policy;validation executables allowlisted with
shell:false;transactional task/plan/engineer rollback;
authenticated Windows worker and source-address firewall rules;
per-checkout mutation exclusion and local inference locking;
Project/organization credential isolation;
cloud provider allowlists and
cloudAllowedhard constraints;budget admission before provider I/O;
concurrent budget reservations and deterministic settlement;
source-fingerprint memory staleness;
cumulative same-run regression ledger;
no hidden chain-of-thought persisted or exposed;
external research content treated as data, never instructions.
Roadmap
See docs/ROADMAP.md for the current product checklist.
The product direction is the standalone macOS application. Automatic updates, broader multi-worker scheduling, Repo Impact Graph / GraphRAG and release-delivery automation remain post-MVP candidates.
License
MIT
Available Tools
12 toolsclassify_local_code_taskClassify Coding Task RouteBRead-onlyIdempotent
Classify as deterministic, local, local-supervised, or Claude. local-supervised means Claude already resolved a sensitive auth/credential/permission/security decision and only bounded implementation remains; full-diff Claude review is mandatory.
Inputs: task (required), riskTags, solutionKnown, estimatedFiles, +4 more.
delegate_code_taskDelegate Read-only Code Task to Local ModelBRead-only
Ask the fast local model for bounded code/analysis text without modifying repository files.
Inputs: task (required), output, context, language, +1 more.
discover_local_workspaceDiscover Local WorkspaceARead-onlyIdempotent
List a bounded safe workspace view and root package scripts without following symlinks.
Inputs: workspace (required), maxDepth, extensions, maxEntries.
execute_local_code_planExecute Large Feature Plan LocallyCDestructive
Compatibility full-result orchestrator. Supports local-supervised subtasks and adaptive fast-to-strong retry; prefer the compact orchestrator for enforced review behavior.
Inputs: goal (required), tasks (required), workspace (required), context, +5 more.
execute_local_code_plan_compactExecute Large Feature Plan CompactlyBDestructive
Preferred large-feature orchestrator. Claude owns planning/decomposition. Already-resolved sensitive subtasks can run as local-supervised; any such task forces full aggregate-diff review by Claude.
Inputs: goal (required), tasks (required), workspace (required), context, +5 more.
execute_local_code_taskExecute Code Task LocallyCDestructive
Compatibility full-result executor. Prefer execute_local_code_task_compact, which includes routing preflight, adaptive fast-to-strong retry, and supervised-sensitive review enforcement.
Inputs: task (required), workspace (required), editableFiles (required), context, +6 more.
execute_local_code_task_compactExecute Local Code Task CompactlyBDestructive
Preferred bounded local executor. It preflights routing itself. Sensitive auth/credential/permission/security implementation may run as local-supervised only after Claude explicitly resolves the sensitive decision; supervised runs force full-diff Claude review.
Inputs: task (required), workspace (required), editableFiles (required), context, +7 more.
get_local_runFetch Local Run Details LazilyARead-onlyIdempotent
Fetch a stored local execution result only when Claude needs more detail. Prefer summary first; request diff, validation, or full incrementally with offset/maxChars instead of loading a large result into context at once.
Inputs: runId (required), view, offset, maxChars.
local_coder_healthLocal Coder HealthARead-onlyIdempotent
Check Ollama connectivity plus fast/strong adaptive model availability and resource settings.
Inputs: no named parameters.
local_coder_telemetryLocal Coder TelemetryBRead-onlyIdempotent
Aggregate privacy-preserving routing/execution/orchestration telemetry including exact per-model Ollama inference usage.
Inputs: days.
prepare_local_contextPrepare Compact Local ContextARead-only
Build a compact evidence-first context capsule for a coding task using a persistent local repository index. Prefer this before broad Claude file exploration; verify cited file:line evidence for architectural or risky decisions.
Inputs: task (required), workspace (required), hints, maxFiles, +1 more.
search_local_workspaceSearch Local WorkspaceBRead-onlyIdempotent
Literal bounded text/code search inside a safe workspace.
Inputs: query (required), workspace (required), maxDepth, maxFiles, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Multiple execution tools overlap heavily: delegate_code_task, execute_local_code_task, execute_local_code_task_compact, execute_local_code_plan, and execute_local_code_plan_compact all route work to a local model, and the differences between compatibility and preferred variants are not crisp. Other tools like health, search, classify, context, and telemetry are distinct.
Most tools use snake_case verb_noun patterns like execute_local_code_task and get_local_run, but local_coder_health and local_coder_telemetry break the verb pattern and mix 'coder' with the 'code' used elsewhere. The compact/compat suffixes are consistent but add clutter.
Twelve tools is a reasonable count for an Ollama-backed coding assistant, and most cover distinct functions. However, several are compatibility or preferred duplicates that could be consolidated, making the set slightly less clean than ideal.
The set covers health, routing classification, workspace discovery/search, context preparation, task/plan execution, result retrieval, and telemetry, so the main workflows have no dead ends. Gaps like cancellation or listing of stored runs are minor and workaroundable.
Maintenance
Related MCP Connectors
Source-checked CLI guides and model-aware planning for Claude Code, Codex, and Grok Build.
Your AI apps as one team: hand work to Codex or Claude Code on your Mac, with a shared logbook.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Shared long-term memory & Stop-hook task handoff across Claude Code, Codex, Cursor, and mobile.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Claude to delegate coding tasks to local Ollama models, reducing API token usage by up to 98.75% while leveraging local compute resources. Supports code generation, review, refactoring, and file analysis with Claude providing oversight and quality assurance.27AGPL 3.0
- AlicenseAqualityCmaintenanceA bridge that enables Claude Code to interact with local Ollama instances for text generation, multi-turn chat, and vision-based analysis. It supports model management tasks such as listing, pulling, and showing details, alongside generating text embeddings.61MIT
- AlicenseNot gradedqualityDmaintenanceExposes local Ollama instances as tools for Claude Code, allowing users to offload code generation, text drafting, and embedding tasks to local GPUs. It supports multi-turn conversations and model management through the Model Context Protocol.MIT
- AlicenseAqualityDmaintenanceEnables Claude Code to offload routine code generation and text processing tasks to a local Ollama LLM, saving Cloud API tokens and costs with automatic model selection and security features.11204 npm3Apache 2.0