Skip to content

feat: implement delete_record tool for PocketBase collections - #8

Open
zhigang1992 wants to merge 1 commit into
mabeldata:mainfrom
zhigang1992:feature/delete-record-tool
Open

feat: implement delete_record tool for PocketBase collections#8
zhigang1992 wants to merge 1 commit into
mabeldata:mainfrom
zhigang1992:feature/delete-record-tool

Conversation

@zhigang1992

Copy link
Copy Markdown

Summary

  • Implements the delete_record tool that was previously marked as "to be added later"
  • Adds complete type definitions and proper error handling
  • Follows existing pattern from other record management tools

Changes

  • Added DeleteRecordArgs type definition in tool-types.ts
  • Implemented deleteRecord function in record-tools.ts
  • Added delete_record to tool registration and routing in index.ts
  • Exported DeleteRecordArgs type from types index

Test plan

  • Verify the tool appears in the MCP tools list
  • Test deleting a record with valid collection and ID
  • Verify error handling for invalid collection/ID
  • Confirm the tool returns appropriate success message

🤖 Generated with Claude Code

- Add DeleteRecordArgs type definition
- Implement deleteRecord function in record-tools.ts
- Add delete_record to tool registration and routing
- Export DeleteRecordArgs type from index

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
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