- harness/es.py: append-only event store + проекции (образец — кооп-портал) - harness/levels.py: уровни 1с/1м/1ч/1д, контекст ∝ масштабу - harness/scheduler.py: уровневые потоки, идемпотентные тики, absorbed-стабы - harness/isolated_runner.py + _llm_worker.py: LLM-тик в сабпроцессе (глобальный asyncio-рантайм Strands не переживает 2+ create_harness) - cli.py: init/task/tasks/status/events + requeue (написан самим минутным агентом) - 9router: отдельный ключ sk-simbiot, модель auto (glm-5.3 первым)
16 lines
769 B
Python
16 lines
769 B
Python
"""Removed in mcp 2: `FastMCP` is now `mcp.server.mcpserver.MCPServer`.
|
|
|
|
This module has no API. Importing it, or anything below it, raises
|
|
`ModuleNotFoundError` with a message that points at the migration guide. It
|
|
exists only because the bare "No module named 'mcp.server.fastmcp'" gave v1
|
|
code no hint that the installed SDK is a different major version.
|
|
"""
|
|
|
|
_MESSAGE = (
|
|
"No module named 'mcp.server.fastmcp'. This is mcp 2.x, where FastMCP was renamed to MCPServer "
|
|
"(from mcp.server.mcpserver import MCPServer) and other APIs changed; see the migration guide at "
|
|
"https://py.sdk.modelcontextprotocol.io/v2/migration/#fastmcp-renamed-to-mcpserver "
|
|
"or pin 'mcp<2' to keep running v1 code."
|
|
)
|
|
|
|
raise ModuleNotFoundError(_MESSAGE, name=__name__)
|