Skip to content
This repository was archived by the owner on May 13, 2026. It is now read-only.
This repository was archived by the owner on May 13, 2026. It is now read-only.

[BUG] #88

Description

@mindthegaptutoring

Bug Description

The edit-note tool fails with an "Invalid discriminator value" error regardless of which operation value is passed. The tool schema also returns empty properties {}, which prevents the tool from functioning. The create-note, delete-note, read-note, and search-vault tools all work correctly.

Environment

  • OS: Windows 11
  • Obsidian version: 1.12.7
  • Claude Desktop version: Claude 1.5354.0 (9a9e3d) 2026-04-29T01:14:34.000Z)
  • Plugin version: `-- obsidian-mcp@1.0.6
  • Required plugins status:
    • Local REST API installed and configured

Steps to Reproduce

  1. Install obsidian-mcp via npm and configure it as an MCP server in Claude Cowork
  2. Call the edit-note tool with any valid operation value (append, prepend, replace, or delete)
  3. Pass required parameters: vault name, filename, folder, operation, and content

Expected Behavior

The tool appends, prepends, replaces, or deletes content in the specified note.

Actual Behavior

The tool returns: MCP error -32602: Invalid arguments: Invalid discriminator value. Expected 'delete' | 'append' | 'prepend' | 'replace'

This occurs with all four operation values, including the ones listed in the error message itself. The tool schema returned to the client also shows empty properties {}, which means the calling agent cannot inspect valid parameter names or types.

Error Messages/Logs

MCP error -32602: Invalid arguments: Invalid discriminator value. Expected 'delete' | 'append' | 'prepend' | 'replace'

Additional Context

Updated to latest version via npm install -g obsidian-mcp@latest (updated 93 packages). The bug persists after the update and after restarting the client. As a workaround, delete-note followed by create-note achieves the same result but is significantly more expensive in terms of API tokens.

MCP server configuration:

{
  "obsidian": {
    "command": "C:\\Users\\krist\\AppData\\Roaming\\npm\\obsidian-mcp.cmd",
    "args": ["C:\\Users\\krist\\OneDrive\\Documents\\Obsidian Vault"]
  }
}
  • Other plugins that might conflict
    -->

Troubleshooting Attempted

  • Restarted Obsidian
  • Restarted Claude Desktop
  • Reinstalled the MCP server via plugin settings
  • Checked Local REST API is running
  • Other:

Remember: This is volunteer work. Be patient and respectful. We'll help when we can.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions