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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- yourware_mcp/app.py:17-39 (handler)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", }
- yourware_mcp/credentials.py:35-40 (helper)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