Skip to content

Add remove tags tool and CLI command - #10

Open
twleung wants to merge 1 commit into
agiletortoise:mainfrom
twleung:add-remove-tags
Open

Add remove tags tool and CLI command#10
twleung wants to merge 1 commit into
agiletortoise:mainfrom
twleung:add-remove-tags

Conversation

@twleung

@twleung twleung commented Mar 23, 2026

Copy link
Copy Markdown

Summary

  • Adds removeTagsFromDraft() function in src/drafts.ts that reads the current tag list, filters out specified tags, and writes back the result via AppleScript
  • Adds drafts_remove_tags MCP tool in src/index.ts with schema and handler
  • Adds drafts remove-tags <uuid> <tags...> CLI command in src/cli.ts

Closes #9

Test plan

  • drafts remove-tags <uuid> <tag> removes specified tag, leaves others intact
  • Removing a non-existent tag is a no-op (no error, tags unchanged)
  • drafts_remove_tags MCP tool works via stdio transport

🤖 Generated with Claude Code

Add the ability to remove tags from a draft via both the MCP server
(drafts_remove_tags tool) and the CLI (drafts remove-tags command).
The AppleScript reads the current tag list, filters out the specified
tags, and writes back the result.

Closes agiletortoise#9

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
twleung added a commit to twleung/drafts-mcp-server that referenced this pull request May 16, 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.

Add the ability to remove tags from MCP

1 participant