# v1.0.1 - Critical Fix: Parser Execution 404 Errors
## π§ Bug Fixes
### Critical: Fixed Parser Execution
All parser tools (`search_perplexity`, `search_chatgpt`, `search_claude`, etc.) were returning 404 errors. This has been **completely resolved**.
**Root Cause**: The client was using non-existent API endpoints:
- β `POST /parsers/{id}/execute` (doesn't exist)
- β `GET /results/{task_id}` (doesn't exist)
**Solution**: Updated to use the actual redis_wrapper API structure:
- β
`POST /structures/list/aparser_redis_api/lpush` (Redis queue submission)
- β
`GET /kv/aparser_redis_api:{task_id}` (Redis KV result retrieval)
### Changes in Detail
1. **Task Submission** (`submit_parser_task`)
- Now uses Redis list LPUSH endpoint
- Generates UUID task IDs
- Maps parser IDs to A-Parser format (`perplexity` β `FreeAI::Perplexity`)
- Formats tasks correctly: `[taskId, parser, preset, query, {}, {}]`
2. **Result Retrieval** (`get_task_result`)
- Now uses Redis KV endpoint
- Parses A-Parser result format: `[taskId, status, errorCode, errorMsg, data, ...]`
- Handles pending/success/error states correctly
- Returns structured data with proper error handling
## π¦ Installation
```bash
pip install --upgrade ayga-mcp-client
```
## π Configuration
Update your MCP config to use the published package:
```json
{
"servers": {
"ayga-mcp-client": {
"type": "stdio",
"command": "python",
"args": ["-m", "ayga_mcp_client"],
"env": {
"REDIS_API_KEY": "your_api_key_here"
}
}
}
}
```
## β
Verification
After updating, test with:
```bash
# Using Claude Desktop or VS Code Copilot MCP tools
search_perplexity(query="test query", timeout=60)
```
Should now return results instead of 404 errors.
## π Links
- **PyPI**: https://pypi.org/project/ayga-mcp-client/1.0.1/
- **Docs**: https://github.com/ozand/ayga-mcp-client
- **API**: https://redis.ayga.tech/docs