Skip to main content

CI PyPI Python 3.10+ GPL-3.0-only

English | Türkçe | Русский

SiopeChat MCP

Repository · Changelog · Latest release · SiopeChat · GPL-3.0 License

Standard, token-efficient Model Context Protocol (MCP) server for SiopeChat, powered by SiopeChat Backend (>=1.3.1,<2). It connects AI coding agents and desktop clients (Antigravity, Claude Code, Cursor, Codex, Gemini CLI) directly to your local WebAI accounts (ChatGPT, Claude, Gemini, Grok), conversation histories, projects, and Deep Research workflows while enforcing fine-grained access policies and keeping client token usage low.

Note: Provider web protocols can change without notice. This project is independent and is not affiliated with OpenAI, Anthropic, Google, or xAI.

Install

Requires Python 3.10 or newer.

uv / pip (PyPI)

uv tool install siopechat-mcp
# or run without installing globally:
uvx siopechat-mcp --help
# or with pip:
pip install siopechat-mcp

Homebrew (macOS / Linux)

brew install TahsinCr/tap/siopechat-mcp

(Formula definition is maintained in siopechat-mcp.rb; available on the tap once a release is published.)

Windows (Winget / Installer) & Arch Linux (AUR) (Planned)

  • Winget: Manifest template in winget.yaml (winget install TahsinCr.SiopeChatMCP — planned for upcoming releases alongside a standalone Windows installer).
  • AUR: Packaging template in PKGBUILD (planned for upcoming releases).

Quick Start

stdio (Antigravity / Claude Code / Cursor / Codex)

{
  "mcpServers": {
    "siopechat": {
      "command": "siopechat-mcp",
      "args": []
    }
  }
}

To enforce strict read-only mode or pin a specific policy mode/workspace:

{
  "mcpServers": {
    "siopechat-readonly": {
      "command": "siopechat-mcp",
      "args": ["--read-only"]
    }
  }
}

streamable-http

siopechat-mcp --transport streamable-http --host 127.0.0.1 --port 8765

CLI Reference

siopechat-mcp [--transport stdio|streamable-http] [--host 127.0.0.1] [--port 8765]
              [--data-dir PATH] [--workspace PATH]
              [--mode deny|read-only|ephemeral|read-write] [--read-only]
              [--verbose] [-V|--version] [-h|--help]

siopechat-mcp init [--global] [--workspace PATH] [--data-dir PATH]
                   [--mode deny|read-only|ephemeral|read-write] [--force]

siopechat-mcp policy [--workspace PATH] [--data-dir PATH]
                     [--mode deny|read-only|ephemeral|read-write] [--read-only]

Configuration & Access Policy

siopechat-mcp separates defaults (config.json) from security rules (policy.json) across two layers:

Scope Config Path Policy Path Notes
Global ~/.siopechat/config/mcp-config.json ~/.siopechat/config/mcp-policy.json Shared across all workspaces; created via siopechat-mcp init --global
Workspace <project>/.siopechat/config.json <project>/.siopechat/policy.json Per-repository overrides; created via siopechat-mcp init

Workspace discovery order: --workspace PATH flag → MCP roots/list from the client → upward walk from cwd looking for .siopechat/ (explicitly skipping ~/.siopechat).

Access Modes

Mode List / Read / Search siope_ask(temporary=True) Persistent Chat / Edit / Auth / Downloads
deny Blocked (policy_denied) Blocked Blocked
read-only Allowed Blocked Blocked (--read-only enforces this strictly)
ephemeral Allowed Allowed Blocked
read-write Allowed Allowed Allowed

(Note: Visibility filtering is orthogonal to modes—any account, project, or chat set to "deny" is always hidden from list/search/resource outputs even when default is read-write, ephemeral, or read-only.)

Security Invariants

  1. Monotonic Restriction (No Escalation): Effective permission is min(cli_cap, global_policy, local_policy). A local <project>/.siopechat/policy.json can further restrict access (e.g., set "default": "read-only" and allowlist a single project_id), never relax global or --read-only limits.
  2. Scope Precedence: Within each layer, chat_id → project_id → account_key → default. An explicit "deny" on an outer scope (account_key or project_id) cannot be bypassed by an inner scope.
  3. Fail-Closed & Non-Writable by AI: Corrupt/unparseable JSON or invalid mode names fail closed to "deny" and report an error field in siope://policy. No MCP tool can modify config or policy files.
  4. Global-Only data_dir: A local workspace config.json can override default_account, default_provider, default_model, default_effort, tool_timeout, and include_thinking, while data_dir is honored only from global mcp-config.json.

Example Workspace Files

.siopechat/config.json:

{
  "default_account": "chatgpt:work",
  "default_model": "gpt-5",
  "default_effort": "high",
  "tool_timeout": 120,
  "include_thinking": false
}

.siopechat/policy.json:

{
  "default": "read-only",
  "accounts": {
    "claude:personal": "deny"
  },
  "projects": {
    "proj_abc123": "read-write"
  },
  "chats": {
    "chat_locked": "read-only"
  }
}

Inspect the merged effective policy and defaults at any time:

siopechat-mcp policy --workspace /path/to/project

Multi-Project & Multi-AI Concurrency

  • Multiple stdio Processes (Separate IDE Windows / Agents): Each agent spawns its own siopechat-mcp process scoped to its workspace .siopechat/ config and policy while safely sharing ~/.siopechat/data/siopechat.sqlite3 via SQLite WAL (busy_timeout=5000).
  • Shared streamable-http / Multi-Root Sessions: PolicyManager resolves workspace roots per MCP session (roots/list cached with WeakKeyDictionary) and hot-reloads edits to config.json / policy.json automatically using (mtime_ns, size) signatures—no server restart required.
  • Per-Account Active Chat Concurrency (<= 2): Each account enforces at most 2 concurrent active chats (queued automatically beyond 2) with no global limit across different accounts, plus background=True and wait_seconds job handoff (status, collect, cancel).

Features

  • Zero Duplication Shared Runtime: Built directly over SiopeBackend (AppPaths.resolve()), sharing accounts, sessions, L1/L2 SQLite caches, and concurrency controls with SiopeChat.
  • 8 Standard MCP Tools with ToolAnnotations:
    • siope_auth — Auto-import from OS default browser cookies, interactive temporary-profile CDP login (mode="login" for Windows v20 encryption), or manual JSON cookie import.
    • siope_accounts — List accounts, fetch parallel model catalogs, save default model/effort preferences, verify session freshness, rename/enable/disable/delete, or trigger metadata sync.
    • siope_ask — Prompt one provider (chat_id continuation or new/temporary chat), fan out across multiple accounts/providers in parallel, run in background (background=True / wait_seconds), or edit/retry/cancel messages.
    • siope_chats — List chats across accounts, read SQLite-windowed message history (single chat_id or parallel chat_ids with tail, head, from_ordinal, to_ordinal, roles, max_chars_per_message), or create/rename/branch/move/export/delete chats.
    • siope_projects — List projects (summary without bulky instructions), inspect instructions & attachments, and manage project files.
    • siope_search — Fast SQLite search across chats, messages, projects, artifacts, and sources with flexible limit.
    • siope_research — Start, inspect status, pause, cancel, or await Deep Research with MCP progress updates.
    • siope_files — List artifact metadata and links (without dumping inline payloads), download artifacts/attachments, and read bounded text/code previews.
  • 5 Read-Only MCP Resources (Policy-Filtered): siope://policy, siope://accounts, siope://projects/{account_key}, siope://chat/{chat_id}/tail, and siope://downloads.
  • Token-Efficient Standard JSON: Empty/null field pruning, fields projection, include_thinking=False / include_source_snippets=False defaults, and metadata-only artifact objects.

Development

ruff check src tests
ruff format --check src tests
python -m unittest discover -s tests -p "test_*.py" -v

Dependencies

  • MCP Python SDK — Official MCPServer protocol implementation (stdio and streamable-http)
  • SiopeChat Backend — Pure-asyncio accounts, SQLite WAL persistence, L1/L2 caching, and WebAI orchestration
  • orjson — Fast JSON serialization for compact tool responses

Licensed under GPL-3.0-only. See LICENSE and COPYRIGHT.

Metadata

Release files for siopechat-mcp 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 siopechat-mcp 1.0.0
File Size Uploaded Provenance Actions
siopechat_mcp-1.0.0.tar.gz 62.8 kB With provenance Details for siopechat_mcp-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 126.7 kB

Release files / siopechat_mcp-1.0.0.tar.gz

Download URL siopechat_mcp-1.0.0.tar.gz
Size 62.8 kB
Tags Source
SHA-256 checksum
How to use checksums
35ee05159a959a37a09e6a0193ada15909f2837df69d58e7c8087d0754dea6c7
BLAKE2b-256 checksum
How to use checksums
92e0a0345b84b0e64c68c6992e24099c300c4b446ca6c6c88f24ad24ecdde0e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.

Transparency log

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

Download URL siopechat_mcp-1.0.0-py3-none-any.whl
Size 63.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3d139bcdd6473df2dfd22b06867b7c45baa6de952cc836a1f1d41d71b036bd6
BLAKE2b-256 checksum
How to use checksums
ee92e1023ac0f42e05701442b315af003dd29e5f60d3a06f07a06852da3671a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.

Transparency log

Security for siopechat-mcp 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for siopechat_mcp-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.

Transparency log

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 Full 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