This Model Context Protocol (MCP) server provides a simple interface to interact with the WebHare installation.
- Get information about the WebHare installation
- Execute commands in the WebHare directory
- Execute WebHare CLI commands directly
The server has been installed and configured for use with Claude. The configuration is stored in:
~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
The server uses the WebHare installation at:
~/projects/webhare/whtree
And the WebHare data root at:
~/whrunkit/myserver/whdata/
<use_mcp_tool>
<server_name>webhare-server</server_name>
<tool_name>wh_info</tool_name>
<arguments>
{}
</arguments>
</use_mcp_tool>
<use_mcp_tool>
<server_name>webhare-server</server_name>
<tool_name>wh_command</tool_name>
<arguments>
{
"command": "ls -la bin"
}
</arguments>
</use_mcp_tool>
<use_mcp_tool>
<server_name>webhare-server</server_name>
<tool_name>wh_cli</tool_name>
<arguments>
{
"command": "dirs",
"args": []
}
</arguments>
</use_mcp_tool>
To make changes to the server:
-
Navigate to the server directory:
cd ~/Documents/Cline/MCP/webhare-server -
Edit the source code in the
srcdirectory -
Build the server:
npm run build -
Restart Claude to apply changes
If the server cannot find the WebHare installation, make sure it exists at:
~/projects/webhare/whtree
If the server cannot find the WebHare data root, make sure it exists at:
~/whrunkit/myserver/whdata/
If you get errors when executing commands, check the error message for details. Common issues include:
- WebHare not installed or not in the specified path
- WebHare data root not set correctly
- WebHare not running (for commands that require a running WebHare instance)
- Invalid command or arguments
- Permission issues