Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { ListToolsRequestSchema, CallToolRequestSchema } from "@modelcontextprot
const server = new Server(
{
name: "task-manager-server",
version: "1.0.6"
version: "1.0.7"
},
{
capabilities: {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "taskqueue-mcp",
"version": "1.0.6",
"version": "1.0.7",
"description": "Task Queue MCP Server",
"author": "Christopher C. Smith ([email protected])",
"main": "dist/index.js",
Expand Down
6 changes: 6 additions & 0 deletions src/client/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,12 @@ program
if (t.completedDetails) {
console.log(` Completed Details: ${t.completedDetails}`);
}
if (t.toolRecommendations) {
console.log(` Tool Recommendations: ${t.toolRecommendations}`);
}
if (t.ruleRecommendations) {
console.log(` Rule Recommendations: ${t.ruleRecommendations}`);
}
});
} else {
console.log(chalk.yellow('\nNo tasks match the specified state filter.'));
Expand Down
17 changes: 17 additions & 0 deletions tests/integration/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,21 @@ describe("CLI Integration Tests", () => {
expect(stdout).toContain("In Progress");
expect(stdout).toContain("Completed ✓");
}, 5000);

it("should display tool and rule recommendations when listing tasks", async () => {
// Create a task with tool and rule recommendations
const testData = JSON.parse(await fs.readFile(tasksFilePath, 'utf-8'));
testData.projects[0].tasks[0].toolRecommendations = "Use grep to search for code";
testData.projects[0].tasks[0].ruleRecommendations = "Follow code style guidelines";
await fs.writeFile(tasksFilePath, JSON.stringify(testData));

// Test listing the specific project with the updated task
const { stdout } = await execAsync(`TASK_MANAGER_FILE_PATH=${tasksFilePath} tsx ${CLI_PATH} list -p proj-1`);

// Check that recommendations are displayed
expect(stdout).toContain("Tool Recommendations:");
expect(stdout).toContain("Use grep to search for code");
expect(stdout).toContain("Rule Recommendations:");
expect(stdout).toContain("Follow code style guidelines");
}, 5000);
});