openmcp
Drives the ChatGPT/Codex backend on the user's behalf, reproducing the desktop client's device identity, attestation and telemetry so tools can run chat, web research, Codex agent turns, image generation/editing/animation, speech synthesis and transcription, and realtime voice sessions, and exposes an OpenAI-compatible /v1 proxy (streaming, tool calls, images, cache usage) for OpenAI clients.
Click on "Deploy 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., "@openmcp research the latest MCP spec and summarize the key changes"
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.
OpenAI-to-MCP (openmcp)
ChatGPT/Codex yeteneklerini MCP sunucusu + OpenAI/Anthropic uyumlu proxy +
web arayüzü + CLI olarak sunan bir köprü. Sohbet, web araştırması, Codex ajanı,
görsel/GIF, ses ve realtime sesli oturumu tek pakette toplar; gerçek masaüstü
istemcisinin kimlik (attestation, cihaz kimliği) ve telemetri imzasını birebir
yeniden üretir — böylece klasik /backend-api/conversation ucu da "Unusual
activity" duvarına takılmadan çalışır.
Arayüz | Komut | Ne |
MCP sunucusu |
| stdio JSON-RPC, 21 araç |
Web arayüzü |
|
|
Proxy |
|
|
CLI |
| image, chat, research, speak, listen, agent, usage, models, accounts |
Arayüz | Komut | Ne |
MCP sunucusu |
| stdio JSON-RPC, 21 araç |
Web arayüzü |
|
|
Proxy |
|
|
CLI |
| image, chat, research, speak, listen, agent, usage, models, accounts |
Gereksinim: Python 3.11+ (zstd yanıtları için 3.14+) ve pip install websockets.
Kimlik, Codex CLI'nin ~/.codex/auth.json dosyasından gelir; token süresi
dolmadan kendiliğinden yenilenir, yenilenen değer aynı dosyaya atomik yazılır.
Kurulum
claude mcp add openmcp -- python -m openmcp mcp # openMCP klasöründe çalıştır
# ya da kurup her yerden:
pip install -e C:\Users\deizer\Desktop\Project\openMCP
claude mcp add openmcp -- openmcp mcpOrtam değişkenleri: OPENMCP_HOME (veri klasörü, varsayılan openMCP/data),
CODEX_HOME (varsayılan ~/.codex), CODEX_BIN (codex yolu).
Eski galeriyi taşımak için imgcli/out klasörünü openMCP/data/out olarak kopyala.
Related MCP server: mcp-server-skeleton
MCP araçları
Grup | Araçlar |
Metin |
|
Medya |
|
Sesli oturum |
|
Hesap |
|
Proxy
$env:OPENAI_BASE_URL = "http://127.0.0.1:8788/v1"; $env:OPENAI_API_KEY = "sk-local"
$env:ANTHROPIC_BASE_URL = "http://127.0.0.1:8788"; $env:ANTHROPIC_AUTH_TOKEN = "sk-local"Gerçek akış (token token), araç çağrısı ↔ araç sonucu döngüsü, görseller ve
önbellek kullanımı (cached_tokens / cache_read_input_tokens) her iki biçimde
de iletilir. Anthropic web_search sunucu aracı Codex web_search'üne çevrilir.
API anahtarı doğrulanmaz; bu yüzden yalnızca 127.0.0.1'de dinler.
İstemci paritesi: kimlik ve telemetri
Gerçek Codex masaüstü istemcisinin uçlara bıraktığı iz, çıkış isteklerinde de
birebir yeniden üretilir. Cihaz kimliği (auth/device.py):
installation_id + oai-did + çerezler + chatgpt-account-id makine üretilebilir
(tohum → deterministik UUID); OPENMCP_DEVICE_SEED aynı tohumu tekrar verir.
oai-did her kimlikli başlıkta ve çerezde taşınır. Klasik sohbet ucu
(/backend-api/conversation) artık çalışıyor: "Unusual activity" duvarı
aşıldı. Çözüm (codex/browser_solver.py):
uygulamanın birebir sentinel modülü (turnstile dx VM'i) headless Edge/Chrome
(CDP) içinde çalıştırılıp 3 sentinel başlığı üretilir; Authorization: Bearer
ile persona chatgpt-paid olur ve 403 kaybolur. Gövde minimal tutulur
(action, messages, parent_message_id, model; conversation_mode → 403,
client_contextual_info → 500). Tarayıcı yoksa Codex ucuna düşülür.
Sentinel/webview (codex/webview.py): 60 sn'de
bir sentinel/heartbeat + chat-requirements/prepare akışı. Aşağıdakiler de eklenir:
x-oai-attestation(codex/attestation.py):{"v":1,"s":0,"t":"v1."+base64url(CBOR)}zarfı; her sohbet isteğine ve realtime sideband WebSocket el sıkışmasına (audio/realtime.py) eklenir (yalnız ChatGPT/OAuth kimliğinde, API anahtarında değil). Kabuk, native DeviceCheck'in bulunmadığı platformlarda gerçek istemci gibierror_codedalına düşer.Telemetri (
codex/telemetry.py,codex/tracker.py): kayıttaki üç akış da gönderilir —codex/analytics-events/events(turn/thread olayları),ces/v1/telemetry/intake(NDJSON debug log),ab.chatgpt.com/otlp/v1/metrics(OTLP/JSON,statsig-api-key, gerçek metric adlarıcodex.turn.*/codex.websocket.*). Her tur tamamlandığında tek noktadan (ResponsesClient._raw) tetiklenir; en iyi çaba, sohbeti etkilemez.Sistematik deney (
codex/probe.py,openmcp probe --drop <başlık>): tek bir başlığı/zamanlamayı değiştirip sonucu (200/403 Unusual activity)probe_results.jsonl'e kaydeder; "hangi başlık işaretletiyor / dakikada kaç istek" sorularını kontrollü yanıtlar.
Mimari
openmcp/
config.py, errors.py, container.py ayarlar, hata türleri, kompozisyon kökü (DI)
util/ jwt, uuid7, atomik JSON, MIME/data URL
transport/ başlık sırasını koruyan HTTPS istemcisi, istemci kimlik profilleri
auth/ AccountStore (kalıcılık) · OAuthClient (ağ) · AuthService (politika) · LoginManager (PKCE)
codex/ ResponsesClient (WS/SSE taşıma stratejileri + ortak olay ayrıştırıcı),
ChatService, ModelCatalog, UsageService, CodexAgent, AppServer
images/ raster (PNG/palet), gif (sprite sheet→GIF), client (uç zarfı), gallery, service
audio/ realtime TTS/ASR
voice/ VoiceBroker (SDP sinyalleşmesi), DelegationRunner
mcp/ protocol (araçtan bağımsız JSON-RPC), tools/<grup>.py, server
web/ http_app (küçük yönlendirici + akış), jobs (iş kuyruğu), routes, static/
proxy/ openai_chat, anthropic (çevirmenler), serverHer katman yalnızca altındakine bağımlıdır; nesneleri yalnızca
Containerkurar.Taşıma (WS/SSE) bir strateji: ikisi de aynı ham olayları üretir, tek bir
EventParsermetni, araç çağrılarını ve kullanımı çıkarır.Çevirmenler saf işlevlerdir (ağ yok), bu yüzden doğrudan test edilir.
Uca özgü sabitler (sürüm, user-agent, originator) yalnızca
transport/identity.py'de.
Test
python -m unittest discover -s tests -t .28 çevrimdışı test: PNG çözme, LZW gidiş-dönüş, sprite sheet→GIF, olay ayrıştırma, OpenAI/Anthropic çevirisi ve akışı, hesap deposu ve token yenileme, görsel servisi, iş kuyruğu, MCP protokolü, proxy rotaları.
Bilinen uç davranışları (ölçüldü)
Görsel ucu
sizeparametresini yok sayıyor; en-boy oranını model seçiyor (eski kodda da aynı). GIF dilimleme gerçek boyuttan yapıldığı için etkilenmez.Görsel ucu
ni yok sayıyor; varyasyonlar paralel ayrı isteklerdir.Üst düzey
instructionsönek önbelleğini tamamen kapatıyor (4 tur boyunca 0); sistem istemi bu yüzden gerçek istemci gibidevelopermesajı olarak gönderilir.WS akışı masaüstü uygulamasının kaydıyla aynı: ön ısıtma (
generate:false), konuşma başına açık bağlantı veprevious_response_idile artımlı girdi. Konuşmanın 2. turundan itibaren %96–99 önbellek isabeti; geçmiş uyuşmazsa ya da bağlantı düşerse tam istekle yeni bağlantı.prompt_cache_key=session-id= konuşma kimliği (UUIDv7), kayıttaki gibi.output_format: "gif"hesap yetkisi istiyor; GIF bu yüzden yerelde kodlanır.
Kapsam ve sorumluluk
Bu proje, kendi ChatGPT/Codex hesabınızla kullanmak üzere bir köprüdür; bireysel kullanım içindir. OpenAI Hizmet Şartları'nı ve ilgili sağlayıcı politikalarını okuyup bunlara uymak kullanıcının sorumluluğundadır. Kod "olduğu gibi" sunulur (ayrıca bir garanti verilmez).
Lisans
MIT (bkz. LICENSE).
Available Tools
21 toolsaccount_statusC
Hesaplar, etkin hesap, plan ve token süresi.
Inputs: no named parameters.
agentC
Codex ajanı: dosya okur, komut çalıştırır, kod yazar. session ile önceki oturum sürdürülür.
Inputs: prompt (required), cwd, model, effort, +4 more.
animate_imageB
Model tek bir sprite sheet çizer, kareler yerelde animasyonlu GIF'e kodlanır. Referans verilirse var olan görsel canlandırılır.
Inputs: prompt (required), frames, account, quality, +3 more.
chatB
Metin sohbeti (Codex ucu). Çok turlu bağlam için dönen historyi bir sonraki çağrıya ver. tools verilirse modelin araç çağrıları tool_callsta döner.
Inputs: prompt (required), model, tools, effort, +4 more.
edit_imageC
Referans görselleri istemdeki değişiklikle düzenler.
Inputs: prompt (required), references (required), n, size, +4 more.
generate_imageC
İstemden görsel üretir; dosyayı galeriye kaydeder ve görseli döndürür.
Inputs: prompt (required), n, size, format, +4 more.
get_imageC
Galerideki görseli ve metasını döndürür.
Inputs: name (required).
listenB
16 bit mono WAV sesi yazıya çevirir (dosya yolu ya da data URL).
Inputs: audio (required), account, language.
list_galleryC
Kayıtlı görselleri listeler (yeniden eskiye).
Inputs: limit, query.
loginB
Tarayıcıda OAuth girişi başlatır; bağlantıyı kullanıcıya göster.
Inputs: no named parameters.
login_statusC
Başlatılan girişin durumu.
Inputs: state (required).
modelsB
Kullanılabilir sohbet modelleri (canlı katalog + web takma adları).
Inputs: no named parameters.
refresh_accountC
Token ve çerezleri hemen yeniler.
Inputs: account.
researchA
Web'de gerçekten arayarak araştırma. deep kapsamlı rapor + kaynakça, quick kısa yanıt.
Inputs: query (required), depth, model, account.
speakB
Metni sese çevirir; WAV kaydeder ve sesi MCP içeriği olarak döndürür.
Inputs: text (required), name, voice, account, +1 more.
usageC
Plan ve kota: 5 saatlik ve haftalık pencere, kredi, model erişimi.
Inputs: account.
use_accountC
Etkin hesabı değiştirir.
Inputs: account (required).
voice_delegateB
Sesli oturumdan devredilen işi modele yaptırır; sonucu sesli okunacak düz metin olarak döndürür.
Inputs: request (required).
voicesC
Sesli oturum ses listesi.
Inputs: no named parameters.
voice_sessionB
Realtime sesli oturum açar. İstemci WebRTC SDP offer üretir, dönen answer ile bağlanır; ses istemci↔OpenAI arasında doğrudan akar.
Inputs: offer (required), voice, instructions.
voice_stopC
Sesli oturumu kapatır.
Inputs: threadId.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Use your own Windows, Mac or Linux computer from ChatGPT, Claude, Cursor or Gemini CLI: run commands, read, write and search files, run long processes. Your computer only makes an outgoing connection (no open ports or VPN). Read-only mode, allowed folders, blocked commands and an action log keep you in control. Free plan available.
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables ChatGPT to securely control a local workstation via an MCP tunnel, exposing 44 tools for file/project editing, git, process supervision, browser automation, and Office document handling across macOS, Linux, and Windows.10MIT
- AlicenseNot gradedqualityDmaintenanceEnables registering custom agent tools via a minimal JSON-RPC over stdio implementation, with zero external dependencies, to expose them to AI agents like Claude, Cursor, and Gemini.MIT
- FlicenseNot gradedqualityAmaintenanceExposes a governed suite of 38 OAuth-gated MCP tools that let web-based AI chats and other clients read and edit files, run whitelisted shell commands, search, use Git, SQLite, browser automation, DevTools, background tasks, localhost services, clipboard, notifications, and ports on a user's own machine. It runs locally with folder scoping and a strict command whitelist, so remote clients gain a large operating surface without unrestricted shell access.-
- AlicenseNot gradedqualityAmaintenanceExposes a governed suite of 38 OAuth-gated tools over one MCP endpoint, letting web-based AI chat clients read and edit files, run whitelisted shell commands, search, and use Git, SQLite, browser automation, DevTools, background tasks, ports, clipboard, notifications, and localhost services on the user's own machine. It also allows local IDEs and automation tools to connect directly over localhost for offline, low-latency access.MIT