Skip to content

isErrorの処理を追加 - #7

Closed
soukouki wants to merge 1 commit into
mainfrom
add-is-error
Closed

soukouki wants to merge 1 commit into
mainfrom
add-is-error

Conversation

@soukouki

Copy link
Copy Markdown
Owner

MCPツールに isError の処理を追加しました。

  • ノートが見つからない場合に isError を true にする
  • 対応するテストも追加

closes #4

Comment thread lib/exe.rb
arg = ARGV[i]
case arg
when '--help', '-h'
puts "Usage: obsidian_fetch [vault_path] [--transport {stdio|streamable-http}] [--port PORT]"

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reject

Comment thread lib/exe.rb
# Vaultからノートを読み取る
result = $vault.tool_read(name)
MCP::Tool::Response.new([{ type: "text", text: result }])
# エラーの場合には isError を true にする

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

このやり方はありえない

@soukouki soukouki closed this May 15, 2026
@soukouki
soukouki deleted the add-is-error branch May 18, 2026 00:30
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.

isErrorを付ける

1 participant