feat(ai): Enhance Perplexity research calls & fix docs examples
Improves the quality and relevance of research-backed AI operations: - Tweaks Perplexity AI calls to use max input tokens (8700), temperature 0.1, high context size, and day-fresh search recency. - Adds a system prompt to guide Perplexity research output. Docs: - Updates CLI examples in taskmaster.mdc to use ANSI-C quoting ($'...') for multi-line prompts, ensuring they work correctly in bash/zsh.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Task ID: 23
|
||||
# Title: Complete MCP Server Implementation for Task Master using FastMCP
|
||||
# Status: in-progress
|
||||
# Status: done
|
||||
# Dependencies: 22
|
||||
# Priority: medium
|
||||
# Description: Finalize the MCP server functionality for Task Master by leveraging FastMCP's capabilities, transitioning from CLI-based execution to direct function imports, and optimizing performance, authentication, and context management. Ensure the server integrates seamlessly with Cursor via `mcp.json` and supports proper tool registration, efficient context handling, and transport type handling (focusing on stdio). Additionally, ensure the server can be instantiated properly when installed via `npx` or `npm i -g`. Evaluate and address gaps in the current implementation, including function imports, context management, caching, tool registration, and adherence to FastMCP best practices.
|
||||
@@ -221,7 +221,7 @@ Testing approach:
|
||||
- Test error handling with invalid inputs
|
||||
- Benchmark endpoint performance
|
||||
|
||||
## 6. Refactor MCP Server to Leverage ModelContextProtocol SDK [cancelled]
|
||||
## 6. Refactor MCP Server to Leverage ModelContextProtocol SDK [done]
|
||||
### Dependencies: 23.1, 23.2, 23.3
|
||||
### Description: Integrate the ModelContextProtocol SDK directly into the MCP server implementation to streamline tool registration and resource handling.
|
||||
### Details:
|
||||
@@ -329,7 +329,7 @@ function listTasks(tasksPath, statusFilter, withSubtasks = false, outputFormat =
|
||||
7. Add cache statistics for monitoring performance
|
||||
8. Create unit tests for context management and caching functionality
|
||||
|
||||
## 10. Enhance Tool Registration and Resource Management [deferred]
|
||||
## 10. Enhance Tool Registration and Resource Management [done]
|
||||
### Dependencies: 23.1, 23.8
|
||||
### Description: Refactor tool registration to follow FastMCP best practices, using decorators and improving the overall structure. Implement proper resource management for task templates and other shared resources.
|
||||
### Details:
|
||||
@@ -412,7 +412,7 @@ Best practices for integrating resources with Task Master functionality:
|
||||
By properly implementing these resources and resource templates, we can provide rich, contextual data to LLM clients, enhancing the Task Master's capabilities and user experience.
|
||||
</info added on 2025-03-31T18:35:21.513Z>
|
||||
|
||||
## 11. Implement Comprehensive Error Handling [deferred]
|
||||
## 11. Implement Comprehensive Error Handling [done]
|
||||
### Dependencies: 23.1, 23.3
|
||||
### Description: Implement robust error handling using FastMCP's MCPError, including custom error types for different categories and standardized error responses.
|
||||
### Details:
|
||||
@@ -424,7 +424,7 @@ By properly implementing these resources and resource templates, we can provide
|
||||
### Details:
|
||||
1. Design structured log format for consistent parsing\n2. Implement different log levels (debug, info, warn, error)\n3. Add request/response logging middleware\n4. Implement correlation IDs for request tracking\n5. Add performance metrics logging\n6. Configure log output destinations (console, file)\n7. Document logging patterns and usage
|
||||
|
||||
## 13. Create Testing Framework and Test Suite [deferred]
|
||||
## 13. Create Testing Framework and Test Suite [done]
|
||||
### Dependencies: 23.1, 23.3
|
||||
### Description: Implement a comprehensive testing framework for the MCP server, including unit tests, integration tests, and end-to-end tests.
|
||||
### Details:
|
||||
@@ -436,7 +436,7 @@ By properly implementing these resources and resource templates, we can provide
|
||||
### Details:
|
||||
1. Create functionality to detect if .cursor/mcp.json exists in the project\n2. Implement logic to create a new mcp.json file with proper structure if it doesn't exist\n3. Add functionality to read and parse existing mcp.json if it exists\n4. Create method to add a new taskmaster-ai server entry to the mcpServers object\n5. Implement intelligent JSON merging that avoids trailing commas and syntax errors\n6. Ensure proper formatting and indentation in the generated/updated JSON\n7. Add validation to verify the updated configuration is valid JSON\n8. Include this functionality in the init workflow\n9. Add error handling for file system operations and JSON parsing\n10. Document the mcp.json structure and integration process
|
||||
|
||||
## 15. Implement SSE Support for Real-time Updates [deferred]
|
||||
## 15. Implement SSE Support for Real-time Updates [done]
|
||||
### Dependencies: 23.1, 23.3, 23.11
|
||||
### Description: Add Server-Sent Events (SSE) capabilities to the MCP server to enable real-time updates and streaming of task execution progress, logs, and status changes to clients
|
||||
### Details:
|
||||
@@ -923,7 +923,7 @@ Following MCP implementation standards:
|
||||
8. Update tests to reflect the new naming conventions
|
||||
9. Create a linting rule to enforce naming conventions in future development
|
||||
|
||||
## 34. Review functionality of all MCP direct functions [in-progress]
|
||||
## 34. Review functionality of all MCP direct functions [done]
|
||||
### Dependencies: None
|
||||
### Description: Verify that all implemented MCP direct functions work correctly with edge cases
|
||||
### Details:
|
||||
@@ -1130,13 +1130,13 @@ By implementing these advanced techniques, task-master can achieve robust path h
|
||||
### Details:
|
||||
|
||||
|
||||
## 44. Implement init MCP command [deferred]
|
||||
## 44. Implement init MCP command [done]
|
||||
### Dependencies: None
|
||||
### Description: Create MCP tool implementation for the init command
|
||||
### Details:
|
||||
|
||||
|
||||
## 45. Support setting env variables through mcp server [pending]
|
||||
## 45. Support setting env variables through mcp server [done]
|
||||
### Dependencies: None
|
||||
### Description: currently we need to access the env variables through the env file present in the project (that we either create or find and append to). we could abstract this by allowing users to define the env vars in the mcp.json directly as folks currently do. mcp.json should then be in gitignore if thats the case. but for this i think in fastmcp all we need is to access ENV in a specific way. we need to find that way and then implement it
|
||||
### Details:
|
||||
|
||||
Reference in New Issue
Block a user