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
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes |
Input Schema (JSON Schema)
{
"properties": {
"token": {
"type": "string"
}
},
"required": [
"token"
],
"type": "object"
}
Implementation Reference
- src/noctua_mcp/mcp_server.py:64-88 (handler)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 }