-
Notifications
You must be signed in to change notification settings - Fork 707
Open
Labels
area/mcpbugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
You can only write to directories that already exist:
$ echo '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"write_file","arguments":{"path":"/tmp/foo","content":"x"}}}' >&"${MCP[1]}"
$ read -t 1 -r line <&"${MCP[0]}"; jq . <<<"$line"
{
"jsonrpc": "2.0",
"id": 3,
"result": {
"content": [
{
"type": "text",
"text": "{}"
}
],
"structuredContent": {}
}
}
$ echo '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"write_file","arguments":{"path":"/tmp/bar/baz","content":"x"}}}' >&"${MCP[1]}"
$ read -t 1 -r line <&"${MCP[0]}"; jq . <<<"$line"
{
"jsonrpc": "2.0",
"id": 3,
"result": {
"content": [
{
"type": "text",
"text": "file does not exist"
}
],
"isError": true
}
}
Metadata
Metadata
Assignees
Labels
area/mcpbugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers