modelcontextprotocol icon indicating copy to clipboard operation
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

Open gitcnd opened this issue 8 months ago • 0 comments

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:

  1. create 2 projects, A and B
  2. run an mcp sse server in folder C
  3. 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)

gitcnd avatar Apr 24 '25 01:04 gitcnd