jlruddy/okanga-mcp
If you are the rightful owner of okanga-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
Okanga-MCP is a token-optimizing Model Context Protocol server tailored for iOS/Swift development with Claude, focusing on efficient code inspection and Xcode diagnostics.
Okanga Token-Optimized MCP Server
A custom Model Context Protocol (MCP) server designed specifically for iOS/Swift development with Claude, named Okanga.
Unlike standard file-system tools, this server is token-aware. It provides specialized tools to inspect Swift code structure, search projects server-side, and diagnose Xcode build issues without flooding the LLM's context window with massive files.
Key Features
1. Token Optimization Tools
Standard "read file" tools can burn 5,000+ tokens just to find a single function signature. This server introduces:
read_swift_structure: Parses a Swift file and returns only class definitions, properties, and function signatures. Hides implementation bodies. Reduces token usage by ~90%.read_file_snippet: Read specific line ranges (e.g., lines 50-100) instead of the whole file.search_project: Runsgreplocally on your machine. Finds usage examples without Claude having to open every file.check_file_size: Acts as a guardrail, warning Claude before it attempts to ingest massive files.
2. 🛠 Xcode Diagnostics
analyze_xcode_project: specific understanding of.xcodeprojand.xcworkspacestructures.read_build_settings: Extracts resolved build settings (debug/release) viaxcodebuild.check_framework_search_paths: Validates that all search paths actually exist (fix "Library not found" errors).get_recent_build_logs: Fetches recent errors fromDerivedDatawithout needing Xcode open.
Dependencies
- OS: macOS (Required for
xcodebuildandxcrun) - Python: 3.10 or higher
- Xcode: Installed with Command Line Tools active (
xcode-select --install) - Python Packages:
mcp(managed automatically if usinguv)
Installation & Setup
We recommend using uv (a fast Python package manager) to run this server. It handles virtual environments automatically, ensuring the script always runs with the correct dependencies.
Option 1: The uv Method (Recommended)
This is the easiest setup. It doesn't require manually creating virtual environments.
- Install uv (if you haven't):
curl -LsSf [https://astral.sh/uv/install.sh](https://astral.sh/uv/install.sh) | sh - Clone this repo:
git clone [https://github.com/yourusername/okanga-mcp-server.git](https://github.com/yourusername/okanga-mcp-server.git) cd okanga-mcp-server - Get the absolute path:
Run
pwdin the terminal inside the folder. Copy this path.
Option 2: The Standard pip Method
If you prefer managing your own environments:
- Create a virtual environment:
python3 -m venv venv source venv/bin/activate - Install dependencies:
pip install -r requirements.txt # OR if using pyproject.toml pip install .
Connecting to Claude
To use this with the Claude Desktop App, you need to edit your configuration file.
Config Location: ~/Library/Application Support/Claude/claude_desktop_config.json
Add the following entry to the mcpServers object.
If using uv (Recommended):
Replace /ABSOLUTE/PATH/TO/REPO with the path you copied earlier.
{
"mcpServers": {
"okanga-mcp": {
"command": "uv",
"args": [
"run",
"--with",
"mcp",
"/ABSOLUTE/PATH/TO/REPO/okanga_server.py"
]
}
}
}