norboten · cheat sheet

The File Server That Shows Everything — what an MCP server exposes is the server's decision — cheat sheet

mcp, claude-code
cat .mcp.json                               # which command starts which server
claude mcp list                             # what Claude Code makes of the definitions
printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}' \
  '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' | <server command>   # the server by hand
realpath ~/notes/some/link                  # where a path really leads
python3 -c 'import os; print(os.path.realpath(p).startswith(root))'    # the check that matters
--allowedTools "mcp__files__read_file,mcp__files__list_directory"      # narrow the tools too