Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
RUSTYPASTE_URLYesThe URL of the rustypaste server (e.g., https://paste.example.com)
RUSTYPASTE_AUTH_TOKENYesThe authentication token for the rustypaste server

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
rustypaste_paste_text

Upload text content to rustypaste and get a shareable URL.

Use this to paste code snippets, notes, logs, or any text content. The text is uploaded as a file and a URL is returned.

Args:

  • content (string): The text to paste (required, non-empty)

  • filename (string, optional): Name for the paste file (default: "paste.txt")

Returns: The URL of the created paste.

Examples:

  • Paste a log excerpt: content="error at line 42: null pointer"

  • Paste code with a name: content="def main(): ...", filename="app.py"

rustypaste_upload_file

Upload a local file to rustypaste and get a shareable URL.

Reads a file from disk and uploads it to the rustypaste server. Supports any file type. The returned URL can be shared to download the file.

Args:

  • file_path (string): Absolute path to the file (e.g. "/home/user/doc.pdf")

Returns: The URL of the uploaded file.

Examples:

  • Upload an image: file_path="/home/user/screenshot.png"

  • Upload a document: file_path="/tmp/report.pdf"

rustypaste_upload_file_with_expiry

Upload a local file to rustypaste with an expiration time.

The file will be available at the returned URL until the expiry time elapses, after which it is automatically deleted from the server.

Args:

  • file_path (string): Absolute path to the file (e.g. "/home/user/doc.pdf")

  • expiry (string): How long the file should be available (e.g. "10min", "1h", "1d", "1w")

Returns: The URL of the uploaded file.

Examples:

  • Upload for 1 hour: file_path="/tmp/log.txt", expiry="1h"

  • Upload for 7 days: file_path="/home/user/img.png", expiry="7d"

rustypaste_oneshot_file

Upload a file as a one-shot link — it can only be viewed/downloaded once.

After the first access, the file is automatically deleted from the server. Useful for sharing sensitive or temporary files securely.

Args:

  • file_path (string): Absolute path to the file (e.g. "/home/user/secret.txt")

Returns: The one-shot URL. The file will be deleted after the first download.

Examples:

  • Share a secret: file_path="/tmp/credentials.txt"

  • One-time image share: file_path="/home/user/photo.jpg"

rustypaste_oneshot_url

Create a one-shot URL redirect — the link expires after a single visit.

Wraps a URL in a one-time redirect. After the first person clicks it, the redirect is deleted from the server.

Args:

  • url (string): The target URL to wrap (must be a valid URL)

Returns: The one-shot redirect URL.

Examples:

  • One-time link: url="https://example.com/sensitive-doc"

rustypaste_shorten_url

Shorten a long URL using rustypaste.

Creates a short redirect URL that points to the original long URL.

Args:

  • url (string): The URL to shorten (must be a valid URL)

Returns: The shortened URL.

Examples:

  • Shorten a link: url="https://example.com/very/long/path/to/resource?with=params"

rustypaste_upload_remote

Upload a file from a remote URL to rustypaste.

The rustypaste server fetches the file from the provided URL and hosts it. Useful for mirroring or re-hosting remote resources.

Args:

  • url (string): The remote file URL to fetch and upload (must be a valid URL)

Returns: The rustypaste URL for the uploaded file.

Examples:

  • Mirror an image: url="https://example.com/photo.jpg"

  • Re-host a file: url="https://cdn.example.com/release-v1.2.tar.gz"

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/rukh-debug/rustypaste-mcp'

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