How to allow filesystem server to access local files? #21
Replies: 3 comments 11 replies
-
You need to edit the main.py file in
However, there's a bug in the code that prevents it from working now, I'm going to put up a PR |
Beta Was this translation helpful? Give feedback.
-
Here the same: |
Beta Was this translation helpful? Give feedback.
-
Team, added to the config.py
Have a file command Output
Command asked
Response
What am I missing here? I can ask to list the files in a allowed dir which it does and returns the contents of files.txt.
But if I ask to read the contents of the file.txt its not allowed.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
list_directory_list_directory_post
{
"error": "HTTP error! Status: 403. Message: {"detail":"Access denied: /Users/tony/work/projects/openapi-servers/servers/filesystem is outside allowed directories."}"
}
Beta Was this translation helpful? Give feedback.
All reactions