cupertino  by mihaelamj

Local Apple documentation system for AI agents

Created 2 months ago
414 stars

Top 70.9% on SourcePulse

GitHubView on GitHub
Project Summary

Summary Cupertino is a Swift-based local system for crawling, indexing, and serving Apple's developer documentation to AI agents via the Model Context Protocol (MCP). It addresses AI hallucination and enables offline development by providing an AI-ready, structured documentation archive, benefiting engineers and power users needing accurate, deterministic, and locally controlled API references.

How It Works The system crawls diverse Apple documentation sources, indexing content into a local SQLite FTS5 database employing BM25 ranking for fast, deterministic search. It then exposes this data via an MCP server, allowing AI agents like Claude to query and retrieve precise documentation. This approach prioritizes AI integration, offline access, and data ownership, built with Swift's strict concurrency and value semantics for robustness.

Quick Start & Requirements

  • Primary Install: Recommended: bash <(curl -sSL https://raw.githubusercontent.com/mihaelamj/cupertino/main/install.sh) (installs binary and databases). Alternative: Homebrew (brew tap mihaelamj/tap && brew install cupertino && cupertino setup).
  • Prerequisites: macOS 15+ (Sequoia). Building from source requires Swift 6.2+ and Xcode 16.0+.
  • Resource Footprint: ~2-3 GB disk space for full documentation. cupertino setup takes ~30 seconds; initial full crawl takes ~12+ days.
  • Links: Demo Video (YouTube), detailed command docs (docs/commands/).
Health Check
Last Commit

2 days ago

Responsiveness

Inactive

Pull Requests (30d)
4
Issues (30d)
6
Star History
297 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.