Skip to content

feat: add note_create tool for Secure Note items#10

Closed
CakeRepository with Copilot wants to merge 2 commits into
masterfrom
copilot/feat-add-note-create-tool-secure-note-items
Closed

feat: add note_create tool for Secure Note items#10
CakeRepository with Copilot wants to merge 2 commits into
masterfrom
copilot/feat-add-note-create-tool-secure-note-items

Conversation

Copilot AI commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Adds a note_create MCP tool that creates ItemCategory.SecureNote items in a 1Password vault, closing the gap left after password_create was introduced.

New tool: note_create

Inputs: vaultId, title, notes?, tags?, fields?

Custom fields follow the same shape used by item_edit:

fields: [
  { idOrTitle: "apiKey", type: "concealed", value: "abc123" },
  { idOrTitle: "env",    type: "text",      value: "prod", section: "s1" }
]

Changes

  • src/tools/note-create.ts — new tool; maps type: 'text'|'concealed' to sdk.ItemFieldType, passes sectionId when provided; fully typed via sdk.ItemField[] with no any
  • src/tools/index.ts — registers registerNoteCreate
  • tests/tools.test.ts — bumps expected tool count 8→9; adds four note_create tests (happy path, tags+fields arg shape verification, SDK error, missing items.create)

Copilot AI changed the title [WIP] Add note_create tool for Secure Note items feat: add note_create tool for Secure Note items Jul 3, 2026
Copilot AI requested a review from CakeRepository July 3, 2026 22:04
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.

feat: add note_create tool (Secure Note items)

2 participants