modelcontextprotocol
modelcontextprotocol copied to clipboard
No way clients can safely use file-based servers because there's no working way for them to communicate the path root for the folder's context of the tool call
Describe the bug Say a vector-db tool wants to use "file.db" - there's no way a server can find out where that file is
To Reproduce Steps to reproduce the behavior:
- create 2 projects, A and B
- run an mcp sse server in folder C
- from each of those projects, make any tool call using any relative path
Expected behavior tool call includes root path
Additional context Yes. (get it - the server needs the path as additional context)
This needs to be baked-in to the standard properly, because we don't want every new tool and client inventing their own non-standard different way to communicate this essential information. (e.g. the cursor cached_roots[0] hack)