Skip to content

Extend searchSpaces to support folder_id#19

Closed
sebastienheyd wants to merge 4 commits into
hauptsacheNet:mainfrom
sebastienheyd:main
Closed

Extend searchSpaces to support folder_id#19
sebastienheyd wants to merge 4 commits into
hauptsacheNet:mainfrom
sebastienheyd:main

Conversation

@sebastienheyd

Copy link
Copy Markdown
Contributor

Summary

  • Adds folder_id parameter to searchSpaces tool to resolve a ClickUp folder by its ID
  • Adds getFolderDetails() utility with promise-based caching (same pattern as getSpaceDetails)
  • Adds formatFolderTree() to format folder tree structure (lists, statuses, parent space)
  • Includes test coverage for the folder_id branch

This is the alternative approach suggested by @Nemo64 in #17: instead of creating a separate getFolderInfo tool, this integrates folder resolution directly into searchSpaces. When folder_id is provided, the tool returns folder details (lists, statuses, parent space) and ignores the terms parameter.

Test plan

  • npm run build compiles without errors
  • npm run test all 32 tests pass (including new folder_id test)
  • npm run cli searchSpaces folder_id="<a_folder_id>" returns folder info

Add folder_id parameter to searchSpaces tool to resolve a ClickUp folder
by its ID. This avoids creating a separate MCP tool.

Changes:
- Add getFolderDetails() in utils.ts with promise-based caching
- Add formatFolderTree() to format folder tree structure
- Add folder_id parameter to Zod schema and handler
- Add test covering folder_id case
- Update searchSpaces description in manifest.json

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a33d4ee7b9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/shared/utils.ts Outdated
Sébastien HEYD added 2 commits March 3, 2026 13:55
All tools accepting a `task_id` parameter (getTaskById, addComment, updateTask, searchTasks) now accept custom task IDs in addition to internal IDs. Custom IDs are automatically resolved to internal IDs via the ClickUp API.

- Add isCustomTaskId(), resolveCustomTaskId(), and resolveTaskId() helpers
- Update tool schemas to accept both ID formats
- Add custom ID resolution logic to search tools
- Update manifest and CHANGELOG
- Change package name from @hauptsache.net/clickup-mcp to @sebastienheyd/clickup-mcp
- Update all GitHub repository references to sebastienheyd/clickup-mcp
- Update manifest and package.json metadata
- Add contributor credit for Sébastien HEYD
- Update installation examples and documentation links
@sebastienheyd sebastienheyd closed this by deleting the head repository Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant