Skip to main content
Glama
mocchalera

xserver-files-mcp

by mocchalera

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
XSERVER_FILES_CONFIGYesAbsolute path to the configuration JSON file (e.g., /home/user/.config/xserver-files-mcp/config.json)

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_serversA

List configured XServer connection profiles and domain roots without connecting to SFTP.

list_rootsA

List configured domain roots for a server profile.

discover_rootsA

Scan the server home directory for domains with public_html and show which ones are not yet configured. Use add_root to register any you want to manage.

add_rootA

Register a new domain root for a server profile. Infers the remote path from the server username if not specified, verifies the directory exists via SFTP, and saves to the config file.

init_site_workspaceA

Create the local workspace directory for a configured domain outside this repository and add a protective .gitignore.

list_filesA

List files under a configured domain root over SFTP.

read_fileB

Read a UTF-8 text file under a configured domain root over SFTP.

pull_file_to_workspaceA

Read one remote UTF-8 file and write it under the matching local site workspace path. Existing local files are backed up by default.

push_file_from_workspaceA

Read one local workspace file and write it to the matching remote path. Existing remote files are backed up by default.

backup_fileA

Create a timestamped dotfile backup next to a remote file.

write_fileA

Write a UTF-8 text file under a configured domain root. Existing files are backed up by default.

replace_in_fileA

Read a file, replace all exact text matches, and write it back with backup by default.

set_domain_redirectA

Insert or update a marked .htaccess 301 redirect block for a configured source domain. Creates a backup by default.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mocchalera/xserver-files-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server