Synapse
Codebase memory for AI coding agents: files, lines, callers and tests for any public GitHub repo.
Should I use this
Quality & Safety
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"synapse": {
"url": "https://asksynapse.in/api/v1/public/mcp"
}
}
}Remote endpoints
https://asksynapse.in/api/v1/public/mcpstreamable-httpWhat it can do
Tool inventory
Tools (7)
🟢plan_change(task, repository, paths, detail, targets, ...)
Call ONCE at the start of a coding task. A complete brief: files and line ranges to change, the key functions in full with their callers, the existing pattern to follow, decisions not to break and the only tests to run. From the code graph, not guesses.
Input Schema
{
"type": "object",
"properties": {
"task": {
"type": "string",
"description": "What you are about to do, in plain words (e.g. \"add rate limiting to the refresh token endpoint\")."
},
"repository": {
"type": "string",
"description": "Public GitHub repository as \"owner/name\" (e.g. \"pallets/flask\") or its github.com URL."
},
"paths": {
"type": "array",
"items": {
"type": "string"
},
"description": "Files or folders you already know are involved."
},
"detail": {
"type": "string",
"enum": [
"map",
"full"
],
"description": "map: a short edit map (files, line ranges, pattern, unit tests); full: also the key functions in full. Default: map for code changes, full for plans and questions."
},
"targets": {
"type": "array",
"items": {
"type": "string"
},
"description": "Real names in this repo the task is about (functions, classes, constants, files), from the vocabulary in the server instructions, e.g. [\"AuthController.refresh\"]."
},
"terms": {
"type": "array",
"items": {
"type": "string"
},
"description": "Words this codebase would use for the task, e.g. [\"throttle\"] for \"rate limiting\", [\"revoke\", \"grant\"] for \"disconnect apps\"."
}
},
"required": [
"task",
"repository"
]
}🟢read_code(path, symbol, repository)
Read code without opening whole files. With `symbol`: just that function, method or class (numbered lines). Without: the file's outline (every declaration with its signature and line range). Use instead of reading a full file.
Input Schema
{
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "Repo-relative file path."
},
"symbol": {
"type": "string",
"description": "Function, method or class name, e.g. \"refresh\" or \"AuthController.refresh\"."
},
"repository": {
"type": "string",
"description": "Public GitHub repository as \"owner/name\" (e.g. \"pallets/flask\") or its github.com URL."
}
},
"required": [
"path",
"repository"
]
}🟢why(path, line, repository)
Reasons behind a file or line: decisions from PRs, reviews and reverts, the commit that last changed the line (with its message), the function there and who knows the code. Use before changing or deleting code that looks odd.
Input Schema
{
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "Repo-relative file path."
},
"line": {
"type": "number",
"description": "Optional line number."
},
"repository": {
"type": "string",
"description": "Public GitHub repository as \"owner/name\" (e.g. \"pallets/flask\") or its github.com URL."
}
},
"required": [
"path",
"repository"
]
}🟢blast_radius(path, symbol, repository)
Every call site of a file or one of its functions, with the calling line of code, plus importers and tests. Use before changing a signature or deleting code.
Input Schema
{
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "Repo-relative file path."
},
"symbol": {
"type": "string",
"description": "Optional function/class/method name in that file."
},
"repository": {
"type": "string",
"description": "Public GitHub repository as \"owner/name\" (e.g. \"pallets/flask\") or its github.com URL."
}
},
"required": [
"path",
"repository"
]
}🟢find_existing(query, repository)
Search existing functions, classes and methods by what they do (e.g. "format currency"). Use before writing a new helper.
Input Schema
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "What the code should do."
},
"repository": {
"type": "string",
"description": "Public GitHub repository as \"owner/name\" (e.g. \"pallets/flask\") or its github.com URL."
}
},
"required": [
"query",
"repository"
]
}🟢tests_for(paths, repository)
The test files that cover the given files (direct importers, same-name tests, and tests one import away), so you run only those instead of the whole suite.
Input Schema
{
"type": "object",
"properties": {
"paths": {
"type": "array",
"items": {
"type": "string"
},
"description": "Files you changed."
},
"repository": {
"type": "string",
"description": "Public GitHub repository as \"owner/name\" (e.g. \"pallets/flask\") or its github.com URL."
}
},
"required": [
"paths",
"repository"
]
}🟢repo_map(repository)
One screen on an unfamiliar repo: main areas with their most used code, entry points, API routes and pages, where tests live, and the stack. Call once instead of exploring folders.
Input Schema
{
"type": "object",
"properties": {
"repository": {
"type": "string",
"description": "Public GitHub repository as \"owner/name\" (e.g. \"pallets/flask\") or its github.com URL."
}
},
"required": [
"repository"
]
}Community
Evidence