# Scripthold [Health: Active]

**Category:** 📂 File Systems  
**Repository:** https://github.com/zoster81/scripthold  
**GitHub Stars:** 1  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/scripthold

## Description
Secure encoding-aware local workspace runtime for AI agents

## Tools
Capabilities this server exposes over MCP:

- **read_text_file**
- **read_multiple_files**
- **write_whole_file**
- **edit_file**
- **edit_file_apply**
- **previewId**
- **patch_package**
- **patch_package_apply**
- **list_directory**
- **tree**
- **get_file_info**
- **filesystem_package**
- **filesystem_package_apply**
- **search_files**
- **source_symbols**
- **outline**
- **digest**
- **find**
- **show**
- **source_query**
- **fingerprint_paths**
- **verify_state**
- **backup_store**
- **backup_restore_apply**
- **backup_gc_apply**
- **grep_text_files**
- **detect_encoding**
- **convert_encoding**
- **convert_encoding_apply**
- **detect_line_endings**
- **change_line_endings**
- **manage_bom**
- **manage_bom_apply**
- **list_encodings**
- **list_allowed_directories**
- **check_for_updates**
- **task_run**
- **task_list**
- **task_get**
- **task_logs**
- **task_cancel**

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/zoster81/scripthold), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
git clone https://github.com/zoster81/scripthold.git
```

2. Run:

```sh
cd scripthold
```

3. Install:

```sh
go build -o scripthold ./cmd/scripthold
```

4. Run:

```sh
$tokenPath = Join-Path $env:TEMP "scripthold.token"
```

5. Sign in:

```sh
$bytes = New-Object byte[] 32
```

6. Run:

```sh
$rng = [System.Security.Cryptography.RandomNumberGenerator]::Create()
```

## Documentation

## What Scripthold does

Scripthold connects MCP-compatible agents to local directories that you explicitly authorize. Its catalog covers ordinary workspace operations such as reading files, listing directories, building directory trees, retrieving metadata, writing complete files, and applying targeted edits. Search tools support filename and text lookup, while source-oriented tools provide symbol discovery, outlines, structural queries, and related navigation.

The server also addresses concerns that arise when agents modify real workspaces. It can fingerprint paths, verify whether state has changed, prepare operations for confirmation, and maintain local backup history. Encoding tools detect and convert text encodings, and line-ending detection helps agents account for file-format differences instead of treating every file as UTF-8 text.

## How it works

For local clients, Scripthold runs as a standalone Go executable over MCP stdio. Authorized directories are passed as startup arguments, and those startup roots define the workspace boundaries. A roots-capable stdio client can provide dynamic roots when the process starts without directory arguments.

Streamable HTTP is also available. The service exposes an MCP endpoint and health and readiness endpoints, uses bearer authentication, and defaults to loopback operation. Requests must include the configured bearer token. Deployments outside loopback require explicit security configuration involving TLS or a trusted proxy.

Changes use a preview-and-apply style for operations that need approval. Exact fingerprints and conflict checks help detect changes made between preparation and confirmation. The server can stage writes and report partial state when an operation does not complete as a whole.

## Setup and configuration

Download a platform asset from the latest GitHub release and verify its checksum, or build it from source with Go after cloning the repository. A local stdio configuration supplies the executable path and one or more authorized directories as arguments.

For HTTP, configure exactly one bearer-token source and choose the listen address. The documented local setup uses `MCP_HTTP_TOKEN_FILE` and `MCP_HTTP_ADDR`, then starts the executable with `--transport=streamable-http` and a workspace path. Container deployments can bind a project directory, run with a read-only root filesystem, drop capabilities, and use the provided unprivileged container user.

## Tools and capabilities

- Read one or multiple text files and write or edit workspace files.
- List directories, render trees, inspect file information, and search by path or text.
- Find source symbols, generate outlines, run source queries, and assemble source-oriented context.
- Detect encodings and line endings, then convert files between supported encodings.
- Prepare and apply package or filesystem changes, with previews, fingerprints, and state verification.
- Create, restore, compare, audit, pin, and garbage-collect persistent backups through the relevant operations.

The project describes support for 168 registered text encodings, including UTF-32 little-endian and big-endian variants, with content-based detection and conservative handling of ambiguous files. Source Intelligence providers are bounded to the operations they support rather than offering unrestricted code execution.

## Limitations and notes

Workspace access is limited to authorized roots; the startup arguments are authoritative for normal stdio use. HTTP should not be exposed beyond loopback without following the additional TLS, proxy, host, origin, and resource-limit requirements.

Scripthold is derived from the original `mcp-file-tools` project and retains its GPL-3.0 licensing lineage. Clients moving from the 3.x tool layout need to account for the unified confirmation approach in the 4.x line. Releases include checksums, and published GoReleaser assets include signed Sigstore build-provenance data.

_Full upstream README: https://allmcps.com/mcp/scripthold/readme_

