Skip to main content
Glama
geneontology

Noctua MCP Server

Official
by geneontology

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
NameRequiredDescriptionDefault
tokenYes

Implementation Reference

  • 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
        }

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