Skip to main content
Glama

create_api_key

Generate and store a new API key for Yourware MCP when existing credentials become invalid, enabling continued project uploads and deployments.

Instructions

Create a new yourware API key. This will automatically be stored in /root/.yourware/credentials.json. Use this tool if current credentials are invalid

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNo

Implementation Reference

  • The handler function for the 'create_api_key' tool, including its @mcp.tool decorator for registration and schema via Annotated type. Handles storing the API key or providing creation instructions.
    @mcp.tool(
        description=f"Create a new yourware API key. This will automatically be stored in {CREDENTIALS_PATH.as_posix()}. Use this tool if current credentials are invalid"
    )
    async def create_api_key(api_key: Annotated[str | None, "The API key to store"] = None):
        if not api_key:
            quick_create_address = urljoin(API_BASE_URL, "/api/v1/api-keys/quick-create")
            login_address = urljoin(API_BASE_URL, "/login")
            return {
                "success": False,
                "message": "API key is required, please guide the user to create one. Let the user tell you what the page shows and guide them through the login process if needed.",
                "help": f"Click this link to create one: {quick_create_address}\n\nClick this link to login if needed: {login_address}",
            }
    
        Credentials(api_key=api_key).store_credentials()
        return {
            "success": True,
            "message": "API key created",
        }

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

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/ai-zerolab/yourware-mcp'

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