Skip to main content
Glama

create_api_key

Generate a new API key for Yourware MCP to ensure valid credentials, automatically saving it to /root/.yourware/credentials.json. Use it to update invalid or expired keys.

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. It either provides instructions and links if no API key is supplied, or stores the provided API key using Credentials.store_credentials() and confirms success.
    @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", }

Other Tools

Related 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