Skip to content

Reference implementation: self-evolving macOS MCP server (Swift, 71 tools) #4126

@reverendish

Description

@reverendish

mcp-x-mac-seed — Self-evolving macOS MCP server

Repo: https://github.com/reverendish/mcp-x-mac-seed
Built with: Swift MCP SDK

This server demonstrates several advanced MCP patterns:

  1. Recursive meta-compiler — agent discovers app capabilities, writes tool schemas, registers them
  2. Triple-threat execution — AppIntents → AppleScript → Accessibility fallback chain
  3. Self-healing — Repairman loop captures errors with SDEF context, generates fix prompts
  4. On-device semantic search — NLContextualEmbedding, zero data exfiltration
  5. Consent gating — HITL approval for destructive operations

71 consolidated per-app tools across 50+ macOS apps. 80 tests. MIT licensed.

Would make a good reference implementation for the ecosystem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions