Skip to main content
Glama

configure_token

Set up the Barista authentication token to enable access and management of Gene Ontology Causal Activity Models (GO-CAMs) for biological knowledge representation.

Instructions

Configure the Barista authentication token.

Args: token: The Barista authentication token

Returns: Success status

Input Schema

NameRequiredDescriptionDefault
tokenYes

Input Schema (JSON Schema)

{ "properties": { "token": { "type": "string" } }, "required": [ "token" ], "type": "object" }

Implementation Reference

  • The handler function decorated with @mcp.tool() that implements the configure_token tool. It sets the BARISTA_TOKEN environment variable and resets the global BaristaClient instance to use the new token.
    @mcp.tool() async def configure_token(token: str) -> Dict[str, Any]: """ Configure the Barista authentication token. Args: token: The Barista authentication token Returns: Success status """ import os global _client # Set environment variable os.environ["BARISTA_TOKEN"] = token # Reset client to pick up new token _client = None return { "success": True, "configured": True }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/geneontology/noctua-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server