biocontext_kb.openapi#

Functions#

check_valid_mcp(mcp)

Check that all tools and resources are alphanumeric and at most 64 characters.

get_openapi_mcps()

Get the OpenAPI MCPs.

Package Contents#

async biocontext_kb.openapi.check_valid_mcp(mcp)[source]#

Check that all tools and resources are alphanumeric and at most 64 characters.

Parameters:

mcp (FastMCPOpenAPI) – The OpenAPI-based MCP.

Returns:

Whether the MCP server is valid.

Return type:

bool

async biocontext_kb.openapi.get_openapi_mcps()[source]#

Get the OpenAPI MCPs.

Return type:

list[fastmcp.server.openapi.FastMCPOpenAPI]