st3v3nmw/sourcerer-mcp
3.2
If you are the rightful owner of sourcerer-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 henry@mcphub.com.
Sourcerer-MCP is an LSP MCP server designed to assist AI agents in efficiently navigating large codebases while minimizing token usage.
Sourcerer MCP 🧙
An MCP server that helps AI agents work with large codebases efficiently without burning through costly tokens. It breaks down your codebase into semantically meaningful chunks and where possible, provides stable path addressing for precise code navigation and editing.
Your AI agent becomes a sourcerer 🧙, wielding these spells:
-
list_files(in: path, depth?: int = 3)
: Get directory tree up to a specified depth -
get_file_overviews(paths: path[])
: Get lay-of-the-land summaries of files -
get_implementations(paths: path[])
: Retrieve full implementation of specific functions, classes, or other chunks -
find(pattern: glob, include?: path[], exclude?: path[])
: Find patterns across files and return the full chunks containing matches -
edit(ops: operation[])
: Execute batch editing operations-
{"op": "replace", "what": ("<path>" OR "<content>"), "with": "<new>"}
-
{"op": "insert-before", "where": ("<path>" OR "<content>"), "content": "<new>"}
-
{"op": "insert-after", "where": ("<path>" OR "<content>"), "content": "<new>"}
-
{"op": "delete", "what": ("<path>" OR "<content>")}
-
{"op": "rename", "what": "<path>", "to": "<new-name>"}
-
{"op": "move-before", "what": ("<path>" OR "<content>"), "where": ("<path>" OR "<content>")}
-
{"op": "move-after", "what": ("<path>" OR "<content>"), "where": ("<path>" OR "<content>")}
-
Examples of paths: pkg/fs/files.go::File::IsDir
, "src/auth.js::generateJWT