Skip to main content
Glama

check_credentials

Verify Yourware credentials exist and are valid to enable project uploads and deployment on the platform.

Instructions

Check your yourware credentials exists and are valid.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for 'check_credentials': Loads credentials from file or env, checks validity using Credentials.check_credentials(), returns success status with messages.
    @mcp.tool(description="Check your yourware credentials exists and are valid.") async def check_credentials(): try: credentials = Credentials.load() except FileNotFoundError: return { "success": False, "message": "Credentials not found", "help": "Run `create_api_key` to create one", } if not await credentials.check_credentials(): return { "success": False, "message": "Credentials are invalid", "help": "Call `create_api_key` to create one", } return { "success": True, "message": "Credentials are valid", }
  • Helper method in Credentials class that performs the actual credential validation by sending a GET request to the API endpoint /api/v1/api-keys/list and checking for 200 status.
    async def check_credentials(self) -> bool: api_key_list_path = "/api/v1/api-keys/list" client = get_client(self) response = await client.get(api_key_list_path) return response.status_code == 200

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