swift-skeleton
by 1amageek·★ 15·Score 42
Swift code skeleton extractor that provides structural overviews of codebases via MCP for better LLM code exploration.
Overview
swift-skeleton is an MCP server that extracts type declarations, properties, method signatures, and source locations from Swift and other programming languages. It creates a lightweight structural overview of codebases that fits in context windows, allowing AI assistants to understand code architecture without reading entire source files. Built on Tree-sitter for fast parsing, it supports multiple languages including Swift, Kotlin, TypeScript, Go, Zig, Rust, C++, Python, and Java.
Try asking AI
After installing, here are 7 things you can ask your AI assistant:
When to choose this
Choose swift-skeleton for large Swift or multi-language codebases where you need AI agents to understand structure without exceeding context limits.
When NOT to choose this
Don't choose it if you need write access to codebases or support for languages not in its parser list.
Tools this server exposes
12 tools extracted from the READMEskeletonExtract structural skeleton of Swift, Kotlin, TypeScript, Go, Zig, Rust, C++, Python, or Java projects
querySearch for specific symbols or declarations in the project skeleton
statusGet project status and skeleton index information
diagnosticsGet diagnostic information about the project skeleton
filesList files included in the skeleton index
languagesList supported programming languages
index.openOpen a project in the JSON-RPC daemon
index.get_skeletonGet skeleton data via JSON-RPC daemon
index.queryQuery the project skeleton via JSON-RPC daemon
index.updateUpdate the project skeleton via JSON-RPC daemon
index.diagnosticsGet skeleton diagnostics via JSON-RPC daemon
index.statusGet index status via JSON-RPC daemon
Comparable tools
Installation
Installation Options
**Mint (recommended)**
mint install 1amageek/swift-skeleton**Build from source**
git clone https://github.com/1amageek/swift-skeleton.git
cd swift-skeleton
swift build -c release**MCP Configuration for Claude Desktop** Add to your claude_desktop_config.json:
{
"mcpServers": {
"swift-skeleton": {
"command": "path/to/skltn",
"args": ["daemon"]
}
}
}**Agent Skill Installation**
skltn install-skillFAQ
- Which programming languages are supported by swift-skeleton?
- swift-skeleton supports Swift, Kotlin, TypeScript, Go, Zig, Rust, C++, Python, and Java. Each language parser can be selected via package traits.
- How does swift-skeleton help AI coding assistants?
- It provides a structural overview of codebases (type declarations, methods, relationships) that fits in context windows, allowing AI assistants to understand architecture before exploring specific implementations.
- Can I use swift-skeleton as a library in my own project?
- Yes. The project offers both embedded (in-process) and sidecar (out-of-process) usage patterns, along with a JSON-RPC daemon for MCP integration.
Compare swift-skeleton with
Last updated · Auto-generated from public README + GitHub signals.