state-hub/tests/test_codex_mcp_server.py
tegwick 5927591be8
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s
Build and Publish Multi-Context Image / build-and-push (push) Successful in 1m0s
Prepare State Hub retirement baseline
2026-08-09 16:19:53 +02:00

19 lines
520 B
Python

import asyncio
from mcp_server import codex_server
def test_codex_server_has_only_repository_coordination_tools() -> None:
tools = asyncio.run(codex_server.mcp.list_tools())
assert {tool.name for tool in tools} == {
"get_domain_summary",
"get_messages",
"mark_message_read",
"add_progress_event",
"record_decision",
"update_task_status",
}
def test_codex_server_uses_distinct_server_identity() -> None:
assert codex_server.mcp.name == "dev-hub-codex"