biocontext_kb#

Submodules#

Functions#

run_app()

Main function to run the MCP server.

Package Contents#

biocontext_kb.run_app()#

Main function to run the MCP server.

If the environment variable MCP_ENVIRONMENT is set to PRODUCTION, it will run the Starlette app with streamable HTTP for the MCP server. Otherwise, it will run the MCP server via stdio.

In production, the app will be mounted at /mcp/. The port is set via the PORT environment variable, defaulting to 8000 if not set.