
fish-bridge — Session Knowledge Graph
io.github.MakeaMousePublished by GitHub account MakeaMousev0.1.3Updated Oct 24, 2026
Compresses AI chat sessions into a typed knowledge graph. Local/offline via Ollama.
Overview
Local MCP server that compresses AI chat sessions into a typed knowledge graph and writes a compact context block into project instruction files.
- What you can do
- Record chat turns into a session knowledge graph in real time during agent mode, with an optional LLM extraction backend doing the typing and deduplication. Read back the current context, the focused subset, and the list of active or deferred nodes. Add nodes, mark items resolved, and export or import session graphs as files. The companion CLI ingests Copilot transcripts, pasted text, documents, codebases, dependency files, test output, IaC and OpenAPI specs, then compiles the graph into copilot-instructions.md or CLAUDE.md.
- When to use it
- Useful when long AI chat sessions need to be carried across turns or tools without resending tens of thousands of tokens, and when you want decisions, tasks and errors kept as a structured, editable graph in the project's instruction file. The MCP server itself is optional for the file-based workflow.
- Requirements
- Runs locally as a Python package (fish-bridge-mcp) via uv, uvx or pip; desktop only. An extraction backend is needed: local Ollama, or a cloud backend configured with ANTHROPIC_API_KEY, GEMINI_API_KEY or OPENAI_API_KEY. Cloud backends incur per-turn costs.
Installation
In SourceWeft
- Open fish-bridge — Session Knowledge Graph in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
fish_bridge
[CI] [PyPI] [Python] [License: MIT]
Session-scoped knowledge graph engine for AI chat context compression.
Converts raw AI chat (40k+ tokens) into a compact typed knowledge graph (~300–800 tokens) and writes it to .github/copilot-instructions.md or CLAUDE.md — automatically included in every AI turn across all modes (ask, edit, agent). No MCP server required for the core workflow.
Install
Don't have
uv? Get it first:curl -LsSf https://astral.sh/uv/install.sh | sh(macOS/Linux) or see uv docs. It replaces pip + pipx + pyenv in one tool — no virtualenv management needed.
Recommended — uv tool install (installs both the fish-bridge CLI and fish-bridge-mcp MCP server on your PATH):
After install, two commands are available on your PATH:
fish-bridge— the main CLI (ingest,compile,show,serve, ...)fish-bridge-mcp— the MCP server for VS Code agent mode
MCP config only (no permanent install needed): use uvx directly in your .vscode/mcp.json — it downloads and runs the MCP server on demand:
See the MCP server section below for the full config.
Traditional pip install (for embedding fish-bridge as a library in your own Python project)
2-minute quickstart
That's it. .github/copilot-instructions.md now contains a ~350-token compressed summary of your session, replacing raw history in every future turn.
Backends
Configure with:
Full CLI reference
MCP server (optional — agent mode only)
The MCP server adds real-time record_turn capture when using VS Code agent mode. It is not required — the file-based workflow above works in all modes without it.
Add to .vscode/mcp.json (uses uvx — no prior install needed):
If you used uv tool install fish-bridge-mcp, you can also reference the installed binary directly:
See examples/ for Claude Desktop, Cursor, and Windsurf configs.
MCP tools: record_turn, get_context, get_focus, mark_resolved, add_node, export_session, import_session, show_active, list_deferred
Ingest sources
How it works
- Ingest — reads raw chat turns from JSONL (Copilot), paste, or any file format
- Extract — LLM extracts typed nodes (questions, decisions, errors, tasks, skills, files) and edges
- Dedup — semantic similarity merges near-duplicates; conflict detection flags status reversals
- Compile — graph is compressed to ~300–800 token XML/markdown block
- Write — block is written to
.github/copilot-instructions.md(orCLAUDE.md) - Deliver — AI tool reads the file automatically on the next turn — no injection, no agent required
Documentation
License
MIT — see LICENSE
Source: README.md at commit e995e56
Tools
0Version history
1- v0.1.3LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts