Connects to the EBI OLS4 Ontology Lookup Service MCP endpoint using
mcp-remote as a local stdio-to-Streamable-HTTP bridge, and returns
the available tools as ellmer tool objects ready for use in an LLM chat.
Value
a named list of ellmer ToolDef objects, one per tool exposed
by the service. Pass directly to an ellmer chat's tool registration, or
summarise with ols4_tool_table.
Note
Requires npx and mcp-remote on the system PATH.
Install the bridge once with:
npm install -g mcp-remoteThe bridge translates stdio MCP (which mcptools speaks) into the Streamable HTTP transport used by the EBI OLS4 endpoint.
Examples
if (interactive()) {
tools <- ols4_mcp_tools()
ols4_tool_table(tools)
}