configure_token
Set up authentication tokens to access and manage Gene Ontology Causal Activity Models (GO-CAMs) through the Barista API for biological knowledge representation.
Instructions
Configure the Barista authentication token.
Args: token: The Barista authentication token
Returns: Success status
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes |
Implementation Reference
- src/noctua_mcp/mcp_server.py:64-88 (handler)The main handler function for the 'configure_token' tool. It sets the BARISTA_TOKEN environment variable with the provided token and resets the global BaristaClient instance to ensure the new token is used in subsequent operations.@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 }