INNER CODE UNIT · Python
run_stdio_server
BioTender-max/awesome-bio-agent-skills · skills/openclaw/biomcp-server/repo/src/biomcp/cli/server.py:31
def run_stdio_server():
"""Run server in STDIO mode."""
logger.info("Starting MCP server with STDIO transport:")
mcp_app.run(transport="stdio")
def run_http_server(host: str, port: int, mode: ServerMode):
"""Run server in HTTP-based mode (worker or streamable_http)."""
try:
from typing import Any
import uvicorn
app: Any # Type will be either FastAPI or Starlette
if mode == ServerMode.WORKER:
logger.info("Starting MCP server with Worker/SSE transport")
try: