Stop API hallucinations with cupertino for Apple docs
Когда использовать: Claude keeps inventing API signatures; you want it grounded in real docs.
Предварительные требования
- cupertino installed — Download Swift 6.2+ binary; run
cupertino setupto pull the index
Поток
-
Setup indexRun
cupertino setupthencupertino serve. Confirm MCP server is listening.✓ Скопировано→ Server online -
Force agent to citeBefore writing any SwiftUI code, search cupertino docs for the exact API. Quote the signature.✓ Скопировано→ Verified API with URI
-
Use itNow write the code using only the APIs you quoted.✓ Скопировано→ Compiles first try
Итог: Dramatically fewer API hallucinations.