Skip to content

Conversation

TantanLight
Copy link

@TantanLight TantanLight commented May 13, 2025

Key Changes

  1. Removal of Deprecated CreateUpdateTool

    • File create-update-tool.ts deleted.
    • References removed from platform-api-tools/index.ts.
    • Creation functionality is now handled by ManageItemUpdatesTool.
  2. Enhancement of ManageItemUpdatesTool

    • Now supports a unified interface for fetching, creating, and deleting item updates.
    • Schema update:
      • operation enum includes 'fetch', 'create', and 'delete'.
      • boardId and itemId are now always arrays (if provided), never single numbers.
      • updateId field added for delete operation.
    • Logic update:
      • execute method handles all three operations.
      • Internal helpers and logic expect arrays for IDs.
    • Documentation update:
      • JSDoc and example usage updated to reflect array input requirements and new delete capability.
      • README updated to clarify usage and array input requirements.
    • Console output:
      • All console.warn and console.error calls removed to prevent protocol/logging issues with MCP.
  3. GraphQL (queries.graphql.ts)

    • Added deleteUpdate mutation.
    • Ran yarn codegen to generate corresponding types.
  4. Tests (manage-item-updates-tool.test.ts)

    • Added comprehensive unit tests for the new delete operation.
    • Updated all tests to use arrays for itemId and boardId.
    • All (12) tests pass.

Impact

  • Provides a single, unified tool (ManageItemUpdatesTool) for fetching, creating, and deleting item updates.
  • Reduces code redundancy and improves maintainability.
  • Standardizes the interface for all item/board ID inputs, making the tool more predictable and easier to use programmatically.
  • Ensures all documentation and tests are consistent with the new input requirements.

How to Use

  • To fetch updates for a board:
    { boardId: [8102196205], operation: 'fetch' }
  • To fetch updates for an item:
    { itemId: [8102197290], operation: 'fetch' }
  • To create or delete updates, always provide itemId as an array with a single value.

Note:

  • Restart local MCP server to load the updated tool schema for ManageItemUpdatesTool.
  • Made with Cursor

TantanLight and others added 4 commits May 13, 2025 11:03
    Streamlines item update (comment) management in the agent-toolkit.

    - Consolidates functionality by removing the redundant `CreateUpdateTool`.
      All create operations are now part of `ManageItemUpdatesTool`.
    - Enhances `ManageItemUpdatesTool` with a new 'delete' operation,
      allowing for programmatic deletion of item updates.

    Key changes include:
    - Removal of `create-update-tool.ts`.
    - Updates to `manage-item-updates-tool.ts` (schema, execute, description).
    - Addition of `deleteUpdate` to `queries.graphql.ts`.
    - Regeneration of GraphQL types.
    - New unit tests for delete functionality.

    Users now have a single, comprehensive tool (`ManageItemUpdatesTool`)
    for fetching, creating, and deleting item updates.
    Restart local MCP server to apply schema changes.
…s-tool

- Updated manage-item-updates-tool schema: boardId and itemId are now always arrays (if provided), never single numbers.
- Updated all tool logic and helper functions to expect arrays for these fields.
- Updated JSDoc and example usage to reflect new input requirements.
- Updated tests to use arrays for itemId and boardId in all cases.
- Improved README to clarify ManageItemUpdatesTool usage and array input requirements.
- Removed all console.warn and console.error calls to prevent MCP protocol issues.
@dipesh-zangoh
Copy link

Merge it? I got need of deleteUpdate mutation today.
Temporarily did manually by js fetch code.

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.

2 participants