state-hub/tests/test_codex_mcp_server.py

20 lines
520 B
Python
Raw Permalink Normal View History

2026-08-09 16:19:53 +02:00
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"