Skip to main content

swAItch

Switch IDEs without losing your AI conversation context.

PyPI version Python License: MIT MCP

An MCP server that bridges AI conversations across coding assistants.
Stop losing context. Start where you left off — in any IDE.

Install · Quick Start · Tools · Docs · Contributing


Why swAItch?

You're deep in a conversation with your AI assistant in Cursor. You've discussed architecture, iterated on a plan, debugged a tricky issue. Now you want to switch to another IDE — but all that context is gone.

swAItch makes IDE conversations portable. It's an MCP server that reads your conversation history from any supported IDE and exposes it as tools that any MCP-compatible client can call.

┌─────────────┐     ┌─────────────┐     ┌─────────────┐
│   Cursor    │     │  VS Code    │     │  Windsurf   │
│  (source)   │     │  (source)   │     │  (source)   │
└──────┬──────┘     └──────┬──────┘     └──────┬──────┘
       │                   │                   │
       └───────────┬───────┘───────────────────┘
                   │
           ┌───────▼────────┐
           │    swAItch     │
           │   MCP Server   │
           │                │
           │  ┌───────────┐ │
           │  │  Parsers  │ │  ← Extensible parser registry
           │  │  Registry │ │
           │  └───────────┘ │
           │  ┌───────────┐ │
           │  │   File    │ │  ← Live updates via filesystem watching
           │  │  Watcher  │ │
           │  └───────────┘ │
           └───────┬────────┘
                   │
       ┌───────────┼───────────┐
       ▼           ▼           ▼
  list_sources  list_convs  get_conv
  (MCP tools exposed to any client)

Highlights

  • MCP-native — built with FastMCP v3, works with any MCP client (Cursor, Claude Desktop, etc.)
  • Extensible — plugin-style parser system. Add new IDEs by implementing one class.
  • Live updates — file system watcher detects new conversations in real-time.
  • Zero config — auto-detects installed IDEs and their conversation data.
  • One command — pip install swaitch && swaitch and you're running.
  • SOLID architecture — clean abstractions, dependency inversion, single-responsibility modules.

Supported IDEs

IDE Status Storage Format
Cursor Supported SQLite (state.vscdb)
VS Code Copilot Roadmap JSON (chatSessions/)
Windsurf Roadmap Protobuf (.pb)
Codex Roadmap Pending

Want to add support for your IDE? See Contributing — just implement BaseParser!

Install

pip

pip install swaitch
uv pip install swaitch

From source (development)

git clone https://github.com/yourusername/swaitch.git
cd swaitch
uv pip install -e ".[dev]"

Quick Start

1. Run the server

# stdio mode (default — for MCP clients)
swaitch run

# HTTP mode (for remote/web access)
swaitch run --transport http --port 8000

2. Connect from your IDE

Add to your MCP client configuration:

Cursor / Claude Desktop (mcp_config.json):

{
  "mcpServers": {
    "swaitch": {
      "command": "swaitch",
      "args": [
        "run"
      ]
    }
  }
}

3. Use the tools

Once connected, your AI assistant can:

You: "What conversations do I have from my other IDEs?"
→ Agent calls list_sources → list_conversations

You: "Bring in that architecture discussion from Cursor"
→ Agent calls get_conversation with the ID
→ Full context is now available in your current session

Tools

swAItch exposes three MCP tools:

Tool Description Parameters
list_sources Discover which IDEs have conversation data available —
list_conversations List conversations from an IDE with summaries source, limit
get_conversation Get full conversation content (messages + artifacts) conversation_id, source

Typical Workflow

sequenceDiagram
    participant User
    participant Agent
    participant swAItch

    User->>Agent: "Bring in my Cursor conversations"
    Agent->>swAItch: list_sources()
    swAItch-->>Agent: [{ide: "cursor", status: "available", count: 4}]
    Agent->>swAItch: list_conversations(source="cursor")
    swAItch-->>Agent: [{id: "abc-123", title: "Auth Architecture", ...}]
    Agent->>User: "Found 4 conversations. Which one?"
    User->>Agent: "The auth architecture one"
    Agent->>swAItch: get_conversation(id="abc-123", source="cursor")
    swAItch-->>Agent: {messages: [...], artifacts: {...}}
    Agent->>User: "Got it! Here's the context..."

Architecture

swAItch follows SOLID principles with a clean, extensible design:

src/swaitch/
├── server.py          # FastMCP server + lifespan management
├── models.py          # Pydantic v2 data models (the shared language)
├── config.py          # Platform-aware path resolution
├── tools.py           # MCP tool definitions (depend on abstractions)
├── watcher.py         # Async file system watcher (watchfiles)
└── parsers/
    ├── base.py        # Abstract BaseParser (the contract)
    ├── registry.py    # Parser registry (discovery + lookup)
    └── cursor.py      # Cursor parser implementation

Adding a new IDE parser

from swaitch.parsers.base import BaseParser
from swaitch.models import IDEType, IDESource, Conversation

class MyIDEParser(BaseParser):
    @property
    def ide_type(self) -> IDEType:
        return IDEType.MY_IDE

    @property
    def display_name(self) -> str:
        return "My IDE"

    def detect(self) -> IDESource:
        # Check if data exists on the system
        ...

    def get_watch_paths(self) -> list[Path]:
        # Return directories to monitor
        ...

    def list_conversation_ids(self) -> list[str]:
        # Return a list of all conversation IDs
        ...

    def get_conversation(self, conversation_id: str) -> Conversation:
        # Return full conversation with messages
        ...

Then register it in server.py:

registry.register(MyIDEParser())

Contributing

Contributions are welcome! Here's how to get started:

  1. Fork the repository
  2. Clone your fork: git clone https://github.com/yourusername/swaitch.git
  3. Install dev dependencies: uv pip install -e ".[dev]"
  4. Create a branch: git checkout -b feature/my-parser
  5. Make your changes
  6. Run linting: ruff check .
  7. Submit a PR

Adding a new IDE parser

The fastest way to contribute is by adding support for a new IDE:

  1. Add the IDE type to IDEType enum in models.py
  2. Add data paths to IDEPaths in config.py
  3. Create parsers/my_ide.py extending BaseParser
  4. Register it in server.py's _build_registry()

License

MIT — see LICENSE


Metadata

Release files for swaitch 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for swaitch 1.0.0
File Size Uploaded Provenance
swaitch-1.0.0.tar.gz 121.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for swaitch 1.0.0
File Interpreter ABI Platform
swaitch-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 147.4 kB

Release files / swaitch-1.0.0.tar.gz

Download URL swaitch-1.0.0.tar.gz
Size 121.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e1cddc99d4e81e559a4376898559799123ce937d11de1928eee242230082363f
BLAKE2b-256 checksum
How to use checksums
2e8e063615819f023f3ecdfc68658a4f651b899cc2c741b7e859eac92b9a42ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / swaitch-1.0.0-py3-none-any.whl

Download URL swaitch-1.0.0-py3-none-any.whl
Size 26.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2e2dc9218ac34c0b9c4fcd6acb4914f6e6ba3375f7219e072ec8518fef89527
BLAKE2b-256 checksum
How to use checksums
7e119ca56cad85b058f3bd407205e12f5ea9f4f89c6cffba8d83d9e577d091d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for swaitch 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page