local-context
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PYTHONIOENCODING | No | Recommended to set to utf-8 for Python I/O encoding. | utf-8 |
| PYTHONUNBUFFERED | No | Recommended to set to 1 for unbuffered Python output. | 1 |
| LOCAL_CONTEXT_ROOT | Yes | The folder Claude may read and use as the shell working directory. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Local tools only. This server never calls the Claude API. Every result is capped. Search or list before reading. Use offset to continue a capped result. SQL is read-only unless a source allows writes. refresh_source and run_task do the work locally and return a short status.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_dirA | List names in an allowed directory. Does not read file contents. |
| search_textA | Search text under an allowed root. Returns capped matching lines. |
| read_fileC | Read a capped text slice. offset is a character offset. |
| run_commandA | Run one command inside an allowed root. Output is capped. Anthropic credentials are removed from the child environment. |
| query_sqlB | Run one SQLite statement. Ad-hoc files are read-only. Rows are capped. |
| list_sourcesA | List configured external data sources by name and type. |
| read_sourceB | Read a capped slice of a configured source. pointer is a JSON pointer. |
| refresh_sourceB | Run a command source locally and store its output. Returns a short status, not the output. |
| list_tasksB | List named local tasks. |
| run_taskC | Run one named task locally and return a capped status. |
| task_statusB | Read a capped slice of the latest stored task output. |
| server_statusA | Show roots, caps, and that this server makes no Claude API calls. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 12 tools
Tools are mostly distinct by resource and action: files, sources, tasks, commands, SQL, and server status each have clear boundaries. There is mild overlap between read_file/read_source and run_command/run_task/refresh_source, but the descriptions generally help an agent choose correctly.
Names are consistently snake_case and mostly follow a verb_noun pattern such as list_dir, read_file, run_command, and refresh_source. The two *_status tools break the verb_noun pattern, but the overall convention remains predictable and readable.
Twelve tools sit comfortably within the expected 3-15 range for this kind of local-context server. Each tool maps to a clear capability area—file browsing, search, execution, SQL, sources, tasks, and status—with no obvious filler.
The core local-context workflows are covered: listing, searching, reading, command execution, SQL querying, source access, task execution, and status introspection. Explicit write/edit and create/delete operations for files, sources, or tasks are absent, but run_command provides partial workarounds and some configuration may be external.