loading…
Search for a command to run...
loading…
An MCP server that provides tools for secure file management within a dedicated workspace directory. It enables users to create, list, and delete files through
An MCP server that provides tools for secure file management within a dedicated workspace directory. It enables users to create, list, and delete files through natural language while preventing path traversal attacks.
Een Model Context Protocol server voor bestandsbeheer in een veilige workspace directory.
npm install
npm run build
Voeg toe aan ~/.config/opencode/mcp.json:
{
"mcpServers": {
"file-manager": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/mcp-server-test/build/index.js"]
}
}
}
Vervang /ABSOLUTE/PATH/TO/mcp-server-test met het volledige pad naar deze directory.
Herstart OpenCode.
In OpenCode:
Alle bestanden worden opgeslagen in workspace/.
Alle operaties zijn beperkt tot de workspace/ directory. Path traversal attacks worden voorkomen.
De server gebruikt STDIO transport (niet HTTP):
npm run build # Compile TypeScript
npm run watch # Watch mode
src/
├── index.ts # MCP server setup & handlers
└── tools.ts # File operation implementations
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"mcp-file-manager": {
"command": "npx",
"args": []
}
}
}