check_credentials
Verify the existence and validity of Yourware credentials using this tool. Ensure your credentials are correctly configured for project uploads and deployments on the platform.
Instructions
Check your yourware credentials exists and are valid.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- yourware_mcp/app.py:17-39 (handler)The MCP tool handler for 'check_credentials', registered via @mcp.tool decorator. Loads credentials, checks if they exist and are valid using the Credentials helper method, returns success status.@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", }
- yourware_mcp/credentials.py:35-39 (helper)Helper method on the Credentials class that performs the actual API validation of the credentials by checking if the API key list endpoint returns 200.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