/ Diretório / Playground / cupertino
● Comunidade mihaelamj ⚡ Instantâneo

cupertino

por mihaelamj · mihaelamj/cupertino

Local Apple documentation at your agent's fingertips — 302k+ pages, HIG, sample code, all in SQLite FTS5 with sub-100ms search.

cupertino (mihaelamj) crawls Apple developer documentation and serves it to MCP clients from a local SQLite FTS5 index. Stops Claude from making up UIKit/SwiftUI APIs. ~2.4GB for the full corpus; covers 307 frameworks, HIG, sample projects, Swift Evolution.

Por que usar

Principais recursos

Demo ao vivo

Como fica na prática

cupertino.replay ▶ pronto
0/0

Instalar

Escolha seu cliente

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "cupertino": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/mihaelamj/cupertino"
      ],
      "_inferred": true
    }
  }
}

Abra Claude Desktop → Settings → Developer → Edit Config. Reinicie após salvar.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "cupertino": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/mihaelamj/cupertino"
      ],
      "_inferred": true
    }
  }
}

Cursor usa o mesmo esquema mcpServers que o Claude Desktop. Config de projeto vence a global.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "cupertino": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/mihaelamj/cupertino"
      ],
      "_inferred": true
    }
  }
}

Clique no ícone MCP Servers na barra lateral do Cline, depois "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "cupertino": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/mihaelamj/cupertino"
      ],
      "_inferred": true
    }
  }
}

Mesmo formato do Claude Desktop. Reinicie o Windsurf para aplicar.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "cupertino",
      "command": "TODO",
      "args": [
        "See README: https://github.com/mihaelamj/cupertino"
      ]
    }
  ]
}

O Continue usa um array de objetos de servidor em vez de um map.

~/.config/zed/settings.json
{
  "context_servers": {
    "cupertino": {
      "command": {
        "path": "TODO",
        "args": [
          "See README: https://github.com/mihaelamj/cupertino"
        ]
      }
    }
  }
}

Adicione em context_servers. Zed recarrega automaticamente ao salvar.

claude mcp add cupertino -- TODO 'See README: https://github.com/mihaelamj/cupertino'

Uma linha só. Verifique com claude mcp list. Remova com claude mcp remove.

Casos de uso

Usos do mundo real: cupertino

Stop API hallucinations with cupertino for Apple docs

👤 iOS / macOS / visionOS developers ⏱ ~10 min beginner

Quando usar: Claude keeps inventing API signatures; you want it grounded in real docs.

Pré-requisitos
  • cupertino installed — Download Swift 6.2+ binary; run cupertino setup to pull the index
Fluxo
  1. Setup index
    Run cupertino setup then cupertino serve. Confirm MCP server is listening.✓ Copiado
    → Server online
  2. Force agent to cite
    Before writing any SwiftUI code, search cupertino docs for the exact API. Quote the signature.✓ Copiado
    → Verified API with URI
  3. Use it
    Now write the code using only the APIs you quoted.✓ Copiado
    → Compiles first try

Resultado: Dramatically fewer API hallucinations.

Review a design against Apple's Human Interface Guidelines

👤 iOS designers, PMs ⏱ ~20 min intermediate

Quando usar: Before shipping, you want to check a flow against HIG.

Fluxo
  1. Describe the screen
    I'm building a settings screen with a destructive 'Delete account' button. Use search_hig for iOS to find relevant guidance.✓ Copiado
    → HIG passages about destructive actions
  2. Apply
    Given those guidelines, critique my mockup [paste]. What violates HIG?✓ Copiado
    → Specific violations + fixes

Resultado: HIG-compliant UI without reading the whole doc yourself.

Learn from Apple's sample projects via cupertino

👤 Developers learning new frameworks ⏱ ~15 min beginner

Quando usar: You need to know 'how does Apple actually use this API'.

Fluxo
  1. Find relevant samples
    search_samples for 'SwiftData relationships'. List matching projects.✓ Copiado
    → Project names + descriptions
  2. Read the source
    In project X, read ContentView.swift and explain the relationship setup.✓ Copiado
    → Annotated walkthrough

Resultado: Real, Apple-endorsed patterns instead of forum guesses.

Combinações

Combine com outros MCPs para 10× de alavancagem

Design in Figma, validate against HIG via cupertino

For the selected Figma screen, search HIG for relevant rules and flag inconsistencies.✓ Copiado
cupertino + filesystem

Compare your SwiftUI code against Apple's sample for the same pattern

Read my ./Sources/ContentView.swift and diff against Apple's SwiftData sample structure.✓ Copiado

Ferramentas

O que este MCP expõe

FerramentaEntradasQuando chamarCusto
search_docs query, framework? Reference API lookup 0
search_hig query, platform? Design guidance 0
list_frameworks Discover what's indexed 0
read_document uri Expand a search hit 0
search_samples query Sample code discovery 0
list_samples Browse 0
read_sample_file sample, path Read a specific file 0

Custo e limites

O que custa rodar

Cota de API
None — local FTS5
Tokens por chamada
Doc pages: 500-5000 each
Monetário
Free
Dica
Use search_docs + read_document on only the top hit rather than dumping multiple pages

Segurança

Permissões, segredos, alcance

Armazenamento de credenciais: None
Saída de dados: None at runtime; cupertino setup fetches from developer.apple.com once

Solução de problemas

Erros comuns e correções

Search returns nothing after install

cupertino setup didn't complete — re-run and watch for network errors

Verificar: Database file size should be ~2.4GB
Stale docs after an OS release

Re-run cupertino setup to refresh the crawl

Index DB too large for machine

Use framework-scoped setup to index only what you need (e.g. only SwiftUI)

Alternativas

cupertino vs. outros

AlternativaQuando usarTroca
DuckDuckGo / web search MCPYou don't mind hallucination risk and need latestNot authoritative; can return third-party blogs
Apple Developer website directlyHuman-driven readingNo agent automation

Mais

Recursos

📖 Leia o README oficial no GitHub

🐙 Ver issues abertas

🔍 Ver todos os 400+ servidores MCP e Skills