Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_CALLERNoDefault author attribution for created docs
SHAREDOC_PORTNoViewer port (selfhost)8377
SHAREDOC_BACKENDNoBackend to use: 'gist' (default) or 'selfhost'gist
SHAREDOC_DATA_DIRNoSQLite location (selfhost)~/.local/share/sharedoc-mcp
SHAREDOC_INDEX_PATHNoLocal index path (gist)~/.config/sharedoc-mcp/index.json
SHAREDOC_PUBLIC_URLNoURL prefix in share links — set to your tunnel hostnamehttp://127.0.0.1:<port>

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
create_shared_docA

Create a shared Markdown doc, returns a public URL. Backend semantics differ: gist backend has no password support (secret URL is the protection) and lazy expiry; selfhost backend enforces both.

append_to_shared_docA

Append content to an existing shared doc. NOT idempotent: a retry appends twice — check with search_shared_docs before retrying. Accepts a doc id or URL.

extend_shared_docA

Extend a doc expiry by N hours (for "N days" multiply by 24 first). On the gist backend expiry is enforced lazily (cleanup on next use).

reset_shared_doc_passwordC

Reset a doc password (null removes protection). Selfhost backend only.

update_shared_doc_titleC

Update a shared doc title (must be non-empty).

revoke_shared_docA

Revoke a shared doc: the link stops working but the record stays searchable. Gist backend: the gist is deleted immediately and irreversibly. Selfhost backend: revoked with a 7-day grace before content is purged. To erase the record entirely, use delete_shared_doc.

delete_shared_docA

Permanently delete a shared doc: the link dies AND the record disappears from search — unlike revoke_shared_doc, no history is kept. Irreversible on both backends. Requires confirm: true, which you must only pass after the user explicitly approved the permanent deletion; prefer revoke_shared_doc for routine takedowns.

search_shared_docsA

Find previously shared docs and their links. Call with NO arguments to list the newest docs (each result includes its share URL). title_query filters by title substring; content_query searches body text (selfhost: full content; gist: the opening excerpt only); status filters active/revoked/expired; limit max 100.

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/AugustusW/sharedoc-mcp'

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