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 PATHflag → MCProots/listfrom the client → upward walk fromcwdlooking 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
- Monotonic Restriction (No Escalation): Effective permission is
min(cli_cap, global_policy, local_policy). A local<project>/.siopechat/policy.jsoncan further restrict access (e.g., set"default": "read-only"and allowlist a singleproject_id), never relax global or--read-onlylimits. - Scope Precedence: Within each layer,
chat_id→project_id→account_key→default. An explicit"deny"on an outer scope (account_keyorproject_id) cannot be bypassed by an inner scope. - Fail-Closed & Non-Writable by AI: Corrupt/unparseable JSON or invalid mode names fail closed to
"deny"and report anerrorfield insiope://policy. No MCP tool can modify config or policy files. - Global-Only
data_dir: A local workspaceconfig.jsoncan overridedefault_account,default_provider,default_model,default_effort,tool_timeout, andinclude_thinking, whiledata_diris honored only from globalmcp-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
stdioProcesses (Separate IDE Windows / Agents): Each agent spawns its ownsiopechat-mcpprocess scoped to its workspace.siopechat/config and policy while safely sharing~/.siopechat/data/siopechat.sqlite3via SQLiteWAL(busy_timeout=5000). - Shared
streamable-http/ Multi-Root Sessions:PolicyManagerresolves workspace roots per MCP session (roots/listcached withWeakKeyDictionary) and hot-reloads edits toconfig.json/policy.jsonautomatically 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, plusbackground=Trueandwait_secondsjob 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 Windowsv20encryption), or manual JSON cookie import.siope_accounts— List accounts, fetch parallel model catalogs, save defaultmodel/effortpreferences, verify session freshness, rename/enable/disable/delete, or trigger metadata sync.siope_ask— Prompt one provider (chat_idcontinuation or new/temporary chat), fan out across multiple accounts/providers in parallel, run in background (background=True/wait_seconds), oredit/retry/cancelmessages.siope_chats— List chats across accounts, read SQLite-windowed message history (singlechat_idor parallelchat_idswithtail,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 flexiblelimit.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, andsiope://downloads. - Token-Efficient Standard JSON: Empty/null field pruning,
fieldsprojection,include_thinking=False/include_source_snippets=Falsedefaults, 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
MCPServerprotocol implementation (stdioandstreamable-http) - SiopeChat Backend — Pure-asyncio accounts, SQLite
WALpersistence, L1/L2 caching, and WebAI orchestration - orjson — Fast JSON serialization for compact tool responses
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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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 logRelease 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 logSecurity 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.
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 logA 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.