fix: adjust mcp to always use absolute path in description (#143)

This commit is contained in:
Ralph Khreish
2025-04-09 20:52:29 +02:00
committed by GitHub
parent cfe3ba91e8
commit b78535ac19
20 changed files with 37 additions and 25 deletions

View File

@@ -24,9 +24,7 @@ export function registerParsePRDTool(server) {
input: z
.string()
.default('tasks/tasks.json')
.describe(
'Path to the PRD document file (relative to project root or absolute)'
),
.describe('Absolute path to the PRD document file'),
numTasks: z
.string()
.optional()
@@ -37,7 +35,7 @@ export function registerParsePRDTool(server) {
.string()
.optional()
.describe(
'Output path for tasks.json file (relative to project root or absolute, default: tasks/tasks.json)'
'Output absolute path for tasks.json file (default: tasks/tasks.json)'
),
force: z
.boolean()
@@ -47,7 +45,7 @@ export function registerParsePRDTool(server) {
.string()
.optional()
.describe(
'Root directory of the project (default: automatically detected from session or CWD)'
'Absolute path to the root directory of the project (default: automatically detected from session or CWD)'
)
}),
execute: async (args, { log, session }) => {