Implement durable OAuth MCP bridge with local Codex worker and deployment guides

This commit is contained in:
Marcos Lohmann
2026-10-14 18:42:41 -03:00
commit 29fcf73c83
39 changed files with 4130 additions and 0 deletions

23
tests/conftest.py Normal file
View File

@@ -0,0 +1,23 @@
import pytest
from codex_chatgpt_mcp_proxy.config import ServerConfig
from codex_chatgpt_mcp_proxy.store import Store
@pytest.fixture
def config(tmp_path):
return ServerConfig(
database=str(tmp_path / "server.sqlite"),
mode="development",
worker_token="w" * 40,
dev_mcp_token="m" * 40,
)
@pytest.fixture
def store(config):
return Store(config)
def claim(store):
store.register("home", "1", "test", ["demo"])
return store.claim("home")