Files
nova/mcp_servers/ops/server.py

32 lines
892 B
Python

"""Ops MCP server — tools, resources, and prompts for the Handover agent only.
Covers: crew duty status, crew notes, pending rebookings, ops narrative,
crew roster, last handover brief, and handover brief prompt template.
"""
from datetime import datetime, timezone
from fastmcp import FastMCP
mcp = FastMCP(
"stellar-ops-internal",
instructions=(
"Internal operations tools — crew duty status, pending rebookings, "
"and ops-audience narrative generation. Restricted to ops-facing clients."
),
)
_last_handover: dict | None = None
def store_handover_brief(brief: dict) -> None:
"""Called by the handover agent after generating a brief."""
global _last_handover
_last_handover = {
**brief,
"stored_at": datetime.now(timezone.utc).isoformat(),
}
from mcp_servers.ops import tools, resources, prompts # noqa: E402, F401