An MCP server that provides full text search for code declarations. Uses SQLite with FTS5 and universal ctags to index and search functions, classes, structures, enums, and other code elements. Supports all languages that ctags supports including Python, C, Go, C++, JavaScript, Rust, Java, and many others. - Python 3.13 - Universal Ctags 6.2.0 - SQLite with FTS5 support (included in Python 3.13) J
Add this skill
npx mdskills install osinmv/function-lookup-mcpProvides multi-language code declaration search via ctags indexing with clear setup
1# Code Declaration Lookup MCP Server23An MCP server that provides full text search for code declarations. Uses SQLite with FTS5 and universal ctags to index and search functions, classes, structures, enums, and other code elements. Supports all languages that ctags supports including Python, C, Go, C++, JavaScript, Rust, Java, and many others.45## Requirements67- Python 3.138- Universal Ctags 6.2.09- SQLite with FTS5 support (included in Python 3.13)1011## Installation1213```bash14git clone git@github.com:osinmv/function-lookup-mcp.git15cd function-lookup-mcp16claude mcp add api-lookup $(pwd)/run.sh -s user17```1819## Extending the Index2021Just ask your coding agent to index your header folder. The indexing process respects your project's `.gitignore` file to avoid indexing unwanted files. Alternatively, you can generate ctags files manually using universal ctags:2223```bash24ctags --output-format=json --fields=+Sf --kinds-C=+p -R -f apis/your_api.ctags /path/to/your/headers25```2627Or drop existing ctags files into the `apis/` folder and restart the MCP server to update the index.282930## MCP functions3132**`search_declarations(name: str, offset: int = 0, limit: int = 10)`** - Search for code declarations by name3334**`list_indexed_apis()`** - List all indexed API files3536**`list_api_files(api_name: str, offset: int = 0, limit: int = 100)`** - List all unique file paths for a specific API3738**`list_functions_by_file(file_path: str, offset: int = 0, limit: int = 100)`** - List all functions found in a specific file3940**`generate_ctags(include_directory: str)`** - Generate ctags from source files and add to index4142
Full transparency — inspect the skill content before installing.