hide-mcp
by: hide-org
MCP server for Hide
📌Overview
Purpose: The Hide MCP server is designed to function as a headless Integrated Development Environment (IDE) for efficient file management and execution of commands.
Overview: This server leverages tools derived from Anthropic's computer-use demonstration to facilitate a powerful coding environment. It includes a user-friendly text editor for code management and a versatile Bash shell to execute scripts and commands seamlessly.
Key Features:
-
Text Editor: Provides a robust interface for viewing and editing files, complete with features like line numbering, directory listing, file creation, and edit history for comprehensive file management.
-
Bash Shell: Offers a persistent Bash environment with support for common Linux and Python packages, along with capabilities for running background processes and automatic output truncation for improved command handling.
Hide MCP server
A MCP server for Hide – headless IDE.
Components
Tools
The server implements two tools adapted from Anthropic's computer-use-demo:
Text Editor
For viewing and editing files. Features include file viewing with line numbers, directory listing, file creation, string replacement with exact matching, line insertion, and edit history.
Bash
A persistent bash shell with support for common Linux/Python packages, background processes, and automatic output truncation.
Quickstart
Install
Claude Desktop
Configuration file locations:
- On MacOS:
~/Library/Application\ Support/Claude/claude_desktop_config.json
- On Windows:
%APPDATA%/Claude/claude_desktop_config.json
Development/Unpublished Servers Configuration:
"mcpServers": {
"hide-mcp": {
"command": "uv",
"args": [
"--directory",
"/path/to/hide-mcp",
"run",
"hide-mcp"
]
}
}
Published Servers Configuration:
"mcpServers": {
"hide-mcp": {
"command": "uvx",
"args": [
"hide-mcp"
]
}
}
Development
Building and Publishing
To prepare the package for distribution:
- Sync dependencies and update lockfile:
uv sync
- Build package distributions:
uv build
This creates source and wheel distributions in the dist/
directory.
- Publish to PyPI:
uv publish
Set PyPI credentials via environment variables or command flags:
- Token:
--token
orUV_PUBLISH_TOKEN
- Or username/password:
--username
/UV_PUBLISH_USERNAME
and--password
/UV_PUBLISH_PASSWORD
Packaging
To package the service into a standalone executable:
uv run pyinstaller hide-mcp.spec
This creates a standalone executable in the dist/
directory.
Debugging
Since MCP servers run over stdio, debugging can be challenging. For the best experience, use the MCP Inspector.
You can launch the MCP Inspector via npm with this command:
npx @modelcontextprotocol/inspector uv --directory /path/to/hide-mcp run hide-mcp
Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.