continue-chat-export
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@continue-chat-exportformat export_session.md in my vault"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
continue-chat-export
Sanitize Continue session transcript exports and rewrite them as readable Obsidian chat Markdown.
Input | Continue |
Output |
|
MCP | Tools return paths + counts only — never transcript body text |
License | MIT (permissive; fork, modify, redistribute) |
Deps | Python ≥ 3.11, |
Standalone package.
Privacy contract
Processing is local disk → disk.
MCP tool results contain only metadata: paths, byte counts, null/ANSI counts, turn counts, source counts, error type strings.
Transcript body is never included in tool return values (so this server does not feed chat text back into the model context).
Other tools (generic filesystem MCPs, editor “@file”) can still read
*.chat.mdif pointed at them — this server does not offer a read/summarize tool.
Features
Strip embedded NUL bytes (e.g. UTF-16-LE blobs such as Windows
*.iniin a transcript).Strip ANSI escape sequences from shell tool output.
Collapse consecutive Continue assistant fragments into one assistant turn per user message.
Web/search dumps (
Title:/URL:/Highlights:) → always-visible### Sourcesblockquotes.Optional
<details>for non-web tool dumps only (--collapse-tools).
Example output shape
---
type: continue-chat
source: "export_session.md"
exported: "1/1/2026, 12:00:00 PM"
sanitized: true
user_turns: 15
assistant_turns: 15
sources: 54
---
# Continue session transcript
## User
…
---
## Assistant
### Answer
…
### Sources
> **Page title**
> https://example.com/page
>
> Highlight / snippet text…
---Install
From a clone (development / local MCP)
git clone https://github.com/<you>/continue-chat-export.git
cd continue-chat-export
uv venv .venv
uv pip install -e ".[dev]"
# or: python3 -m venv .venv && source .venv/bin/activate && pip install -e ".[dev]"Script | Role |
| CLI formatter |
| MCP server (stdio) |
.venv/bin/continue-chat-export --help
.venv/bin/pytest -qFrom PyPI (if/when published)
pip install continue-chat-exportCLI
continue-chat-export path/to/export_session.md
continue-chat-export path/to/export_session.md -o path/to/out.chat.md
continue-chat-export a.md b.md c.md
continue-chat-export path/to/export_session.md --in-place
continue-chat-export path/to/export_session.md --include-narration
continue-chat-export path/to/export_session.md --collapse-tools
continue-chat-export path/to/export_session.md --max-tool-chars 8000
continue-chat-export path/to/export_session.md --inspect --jsonDefault sidecar output: INPUT.chat.md. CLI prints paths + counts only (or --json stats), never the chat body.
Integrate with Continue
Official docs: MCP in Continue.
1. Install this package
cd /path/to/continue-chat-export
uv venv .venv && uv pip install -e .Entrypoint:
/path/to/continue-chat-export/.venv/bin/continue-chat-export-mcp2. Add mcpServers entry
In ~/.continue/config.yaml:
mcpServers:
- name: continue-chat-export
command: /path/to/continue-chat-export/.venv/bin/continue-chat-export-mcp
args: []
env:
PATH: /usr/bin:/usr/local/bin:/binNo API keys required.
Portable uv run variant
mcpServers:
- name: continue-chat-export
command: uv
args:
- run
- --directory
- /path/to/continue-chat-export
- continue-chat-export-mcp
env:
PATH: /usr/bin:/usr/local/bin:/binThis is Python, not npm — do not use npx for this server.
3. Reload MCP
Restart Continue / reload the window and confirm tools are listed.
4. Agent mode usage
MCP tools run in agent mode only. Pass filesystem paths; do not paste transcript text.
format_continue_export—input_path="/path/to/vault/export_session.md"format_continue_export_batch—root="/path/to/vault",glob="**/*_session.md"inspect_continue_export—input_path="/path/to/vault/export_session.md"list_session_exports—root="/path/to/vault"
Results are stats only (ok, output_path, user_turns, sources, …). Open output_path in Obsidian yourself.
5. Workspace config (optional)
Same YAML may live in a workspace Continue config / .continue/mcpServers/ (see Continue docs).
6. VSCodium
Same as VS Code once Continue is installed.
MCP tools reference
All tools return metadata only.
Tool | Purpose |
| One file → |
| Many files via |
| Size, nulls, turn counts (no write) |
| List exports under a directory |
Default output: <stem>.chat.md beside the input.
GitHub / publishing
continue-chat-export/
README.md
LICENSE # MIT
pyproject.toml
.gitignore
src/continue_chat_export/
tests/Before you push
Docs use
/path/to/...placeholders only (no personal home directories).Do not commit
.venv/, secrets, or real session transcripts.Run
pytest -q.Optional PyPI publish (
hatchlingis configured).
.gitignore (sessions)
Ignores *_session.md, *.session.md, *.chat.md, *.bak_nulls, *.bak_continue_export, plus .venv/ and build caches. Keep tests/fixtures/ (synthetic only).
Consumer blurb
## Install as Continue MCP
1. Clone and `uv pip install -e .`
2. Point Continue `mcpServers` at `/path/to/continue-chat-export/.venv/bin/continue-chat-export-mcp`
3. Agent mode → `format_continue_export` with a filesystem pathOptional CI
name: test
on: [push, pull_request]
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- run: uv venv && uv pip install -e ".[dev]" && uv run pytest -qDevelopment
uv pip install -e ".[dev]"
uv run pytest -qModule | Role |
| NUL / UTF-16-LE / ANSI |
| Headers → turns |
| Search hits → blockquotes |
| Render + disk I/O |
| CLI |
| FastMCP stdio |
Limitations
Heuristic classification; export quality bounds recovery.
No native Continue UI reconstruction.
Deterministic local formatting only (no LLM).
License
MIT — free to use, fork, modify, and redistribute, including commercially, with license notice retained.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cr4i50n/mcp-continue-chat-export'
If you have feedback or need assistance with the MCP directory API, please join our Discord server