惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
V
Visual Studio Blog
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
B
Blog
I
InfoQ
博客园 - 三生石上(FineUI控件)
阮一峰的网络日志
阮一峰的网络日志
F
Fortinet All Blogs
H
Help Net Security
博客园 - Franky
宝玉的分享
宝玉的分享
博客园 - 司徒正美
C
Check Point Blog
G
Google Developers Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Jina AI
Jina AI
T
The Blog of Author Tim Ferriss
MongoDB | Blog
MongoDB | Blog
云风的 BLOG
云风的 BLOG
A
About on SuperTechFans
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders
GitHub - reverendish/mcp-x-mac-seed: A self-evolving MCP ...
ishsitotombe · 2026-05-04 · via Hacker News - Newest: "AI"

A self-evolving MCP server that gives AI agents the ability to control any macOS application — including the ones without APIs.

No hardcoded integrations. No per-app plugins. The agent discovers capabilities itself, writes its own tools, and repairs them when apps update.

388 tools auto-discovered across ~50 apps in 2 seconds on first run.

Swift 6.3 macOS 15+ Tests License

What It Does

Give an AI agent these 8 primitive tools, and it builds everything else:

┌──────────────────────┐     stdio/JSON-RPC      ┌───────────────────────────┐
│    AI Agent          │ ◄─────────────────────► │    MCP-x-Mac Seed Server   │
│  (OpenClaw, Claude,  │                         │     (Swift 6.3 binary)     │
│   Cursor, Copilot)   │                         └─────────────┬─────────────┘
└──────────────────────┘                                       │
                    ┌──────────────────────────────────────────┼──────────────────────┐
                    │                                          │                      │
            ┌───────▼────────┐                    ┌───────────▼────────┐   ┌─────────▼──────────┐
            │  SQLite + NL   │                    │  Triple-Threat     │   │   Screen Context    │
            │  Embeddings    │                    │  Execution Engine  │   │   (CGWindowList)    │
            │  (Registry)    │                    │                    │   │                     │
            └───────┬────────┘                    └─────────┬──────────┘   └─────────────────────┘
                    │                                      │
    ┌───────────────┼───────────────┐         ┌────────────┼───────────────┐
    │               │               │         │            │               │
┌───▼────┐  ┌──────▼──────┐  ┌────▼─────┐ ┌─▼──────────┐ ┌▼──────────┐ ┌─▼──────────────┐
│ Tools  │  │ Repair      │  │ Semantic │ │ AppIntents  │ │ AppleScript│ │ Accessibility  │
│ Table  │  │ History     │  │ Search   │ │ Explorer    │ │ SDEF Parser│ │ Scanner        │
└────────┘  └─────────────┘  └──────────┘ └────────────┘ └────────────┘ └────────────────┘

The Recursive Meta-Compiler Pattern

  1. Discover — Agent scans apps for capabilities (AppIntents, SDEF, Accessibility)
  2. Refine — Agent analyzes raw schemas against the app's own documentation
  3. Register — Clean, typed tools stored in SQLite with versioning
  4. Execute — Triple-threat: AppIntents → AppleScript → Accessibility
  5. Repair — Failures trigger the Repairman loop; agent fixes its own tools

Triple-Threat Execution

Every command tries three strategies in order:

Tier Strategy What It Works On
1 AppIntents Modern apps with Siri/Shortcuts support
2 AppleScript (SDEF) Professional Mac apps, legacy software
3 Accessibility API Electron apps, Java apps, anything with a UI

Self-Healing

When a tool fails, the Repairman captures the error context — including the app's scripting dictionary — and generates a structured prompt teaching the agent how to fix it. Circuit breaker prevents repair loops (max 3 attempts).

Quick Start

# Clone and build
git clone https://github.com/YOUR_USER/mcp-x-mac-seed.git
cd mcp-x-mac-seed
swift build

# Register with your MCP client (example: OpenClaw)
openclaw mcp set mcp-x-mac-seed \
  '{"command":"'$(pwd)'/.build/arm64-apple-macosx/debug/MCPxMacSeed","args":[]}'
openclaw gateway restart

# Also works with Claude Desktop, Cursor, VS Code, any MCP client

On first run, the server auto-discovers every app on your Mac:

[Bootstrap] First run — scanning all apps for capabilities...
[Bootstrap] Done. 388 tools auto-discovered.

The 8 Seed Tools

# Tool Description
1 scan_for_intents Discover AppIntents for any app
2 register_tool Save refined tool schemas to the persistent registry
3 list_registered_tools Query tools (exact match or semantic search)
4 execute_intent Triple-threat execution with consent gating
5 fetch_scripting_dictionary Extract full AppleScript dictionary from any app
6 get_ui_tree Accessibility API fallback — scan any app's UI elements
7 request_human_approval Human-in-the-loop consent for destructive operations
8 capture_screen_context Active window, app, display config (gives the agent "eyes")

Safety

  • Consent gating — destructive operations (send, delete, format) pause for human approval
  • Security filter — AppleScript is scanned for dangerous patterns before execution
  • Audit trail — every approval/rejection is logged
  • Circuit breaker — max 3 repair attempts per tool
  • No network exposure — stdio transport, no open ports
  • On-device embeddings — semantic search uses Apple's NLContextualEmbedding, zero data leaves the machine

Requirements

  • macOS 15+ (Sequoia or later)
  • Swift 6.3 toolchain (Xcode 16+)
  • For Accessibility scanning: grant Accessibility permission in System Settings
  • For AppleScript automation: grant Automation permission for target apps

Architecture

Sources/MCPxMacSeed/
├── main.swift                  # Entry point
├── MCPServer.swift             # MCP Server bootstrap + StdioTransport
├── Database/
│   ├── Registry.swift          # SQLite-backed tool store (GRDB.swift)
│   ├── Models.swift            # ToolRecord, RepairEntry, ApprovalRecord
│   └── EmbeddingService.swift  # NLContextualEmbedding semantic search
├── AppIntents/
│   ├── IntentExplorer.swift    # AppIntents discovery (Info.plist, AssistantSchemas)
│   ├── SDEFExtractor.swift     # AppleScript dictionary parser (XML → structured)
│   ├── AccessibilityScanner.swift # AXUIElement UI tree traversal
│   ├── ScreenContext.swift     # CGWindowList active window + display capture
│   ├── ApprovalGate.swift      # HITL consent pipeline with timeouts
│   ├── ExecutionEngine.swift   # Triple-threat execution (AppIntent→AS→AX)
│   ├── Repairman.swift         # Self-healing loop with circuit breaker
│   ├── SystemBootstrap.swift   # Auto-discovery on first run
│   └── TrustClassifier.swift   # Pattern-based action classification
└── Tools/
    └── ToolRegistrations.swift  # All 8 MCP tool handlers + JSON schema builders

MCP Client Compatibility

Works with any MCP-compatible client:

  • OpenClaw — native stdio transport
  • Claude Desktop — add to claude_desktop_config.json
  • Cursor — add to .cursor/mcp.json
  • VS Code — GitHub Copilot, Continue.dev, Cline
  • Any MCP client — standard JSON-RPC over stdio

License

MIT — see LICENSE for details.


Built with the recursive meta-compiler pattern: agents that write their own tools, repair themselves, and never hit a dead end.