Platter

v2.1.0
io.github.hadriangateway/platter Checked 5 hours ago Published 21 days ago

MCP server exposing Read, Write, Edit, Bash, Glob, Grep, and JS tools over stdio.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

read Read

Read the contents of a file. Output is truncated to 2000 lines or 50KB (whichever is hit first). Use offset/limit for large files.

ParameterTypeDescription
path *stringPath to the file to read (relative or absolute)
limitnumberMaximum number of lines to read
offsetnumberLine number to start reading from (1-indexed)

write Write

Write content to a file. Creates the file if it doesn't exist, overwrites if it does. Automatically creates parent directories.

ParameterTypeDescription
content *stringContent to write to the file
path *stringPath to the file to write (relative or absolute)

edit Edit

Edit a file by replacing exact text. The old_text must match exactly (including whitespace). Supports fuzzy matching for minor Unicode/whitespace differences. The match must be unique in the file.

ParameterTypeDescription
new_text *stringNew text to replace the old text with
old_text *stringExact text to find and replace (must match exactly)
path *stringPath to the file to edit (relative or absolute)
replace_allbooleanReplace all occurrences of old_text (default false)

bash Bash

Execute a bash command, or manage a running one. Call in one of two modes; do not mix them: 1. Start a command: pass 'command' (and optional 'timeout' and 'warn'). Omit 'pid' and 'kill'. 2. Manage a running command: pass 'pid' (and optional 'warn', 'timeout' or 'kill'). Omit 'command'. Returns stdout/stderr combined, truncated to last 2000 lines or 50KB. A command that is still running when its timeout expires is killed (default: 120, in seconds). Raise 'timeout' for commands expected to run long. Set 'warn' to get control back sooner: if the command is still running after that many sec…

ParameterTypeDescription
commandstringBash command to execute. Provide this to start a new process; omit when managing an existing one via 'pid'.
killbooleanKill the process specified by 'pid'. Only valid together with 'pid'; omit when starting a new command.
pidnumberPID of a running process to reattach to or kill. Omit (do not pass 0) when starting a new command via 'command'.
timeoutnumberSeconds the command may run before it is killed (default: 120). With 'pid', sets a new limit counted from now.
warnnumberSeconds to wait before returning early. If the command is still running by then, the call returns with its pid and the command keeps running. Omit to wait until it finishes or times out.

glob Glob

Fast file pattern matching. Returns file paths matching a glob pattern, sorted alphabetically. Supports patterns like '**/*.ts', 'src/**/*.tsx', '*.json'.

ParameterTypeDescription
pattern *stringGlob pattern to match files against (e.g. '**/*.ts')
pathstringDirectory to search in (relative or absolute). Defaults to working directory.

grep Grep

Search file contents using ripgrep. Supports regex patterns, file filtering, and multiple output modes. Requires ripgrep (rg) to be installed.

ParameterTypeDescription
pattern *stringRegular expression pattern to search for
after_contextnumberNumber of lines to show after each match (content mode only)
before_contextnumberNumber of lines to show before each match (content mode only)
case_insensitivebooleanCase insensitive search (default false)
contextnumberNumber of lines to show before and after each match (content mode only)
fixed_stringsbooleanTreat pattern as a literal string, not a regex (default false)
globstringGlob pattern to filter files (e.g. '*.js', '*.{ts,tsx}')
output_modestringOutput mode: 'content' shows matching lines, 'files_with_matches' shows file paths (default), 'count' shows match counts per file
pathstringFile or directory to search in (relative or absolute). Defaults to working directory.

js JavaScript

Evaluate JavaScript/TypeScript code in a persistent runtime. State persists across calls within the session. Use assignment (`x = 42`) or `var` to persist values between calls. `function` and `class` declarations also persist. `let`/`const` are scoped to the current evaluation. Supports `await` for async operations: `data = await fetch(url)`. Load packages with `await load("lodash")` (fetches from unpkg.com) or `await load("https://cdn.example.com/lib.js")`. Returns the result of the last expression, plus any console output.

ParameterTypeDescription
code *stringJavaScript or TypeScript code to evaluate
timeoutnumberTimeout in seconds (default: 30)