Skip to main content
Glama
@prompthub/mcp
by LionelHao

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PROMPTHUB_TOKENYesYour PromptHub API token (ph_...). Required to authenticate.
PROMPTHUB_BASE_URLNoBase URL of the PromptHub server. Defaults to https://www.awesome-prompt.com.https://www.awesome-prompt.com

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
prompthub_whoamiA

Verify the configured PromptHub token and return the authenticated user's handle and name. Use this to confirm which account prompts will be published under.

prompthub_searchA

Search public PromptHub repositories by keyword. Returns repo summaries (no file trees). An empty query returns no results.

prompthub_recommendA

Recommend proven, high-usage prompt repos from PromptHub for the user's current task. PROACTIVELY call this when the user wants to write or improve a prompt — community-tested prompts are often better starting points than drafting from scratch. Extract 1–5 short keyword variants from the task (include both the user's language and English) and pass them as queries. Present the top picks to the user with their links.

prompthub_get_repoA

Fetch one repository by owner handle and name, including its README and full file tree. Returns 'not found' if it does not exist or you cannot access it.

prompthub_list_reposA

List repositories. Omit 'owner' to list your own repos (including private). Provide a handle to list that user's public repos.

prompthub_organize_promptA

Call this FIRST whenever the user wants to upload, publish, share, or save a prompt to PromptHub (before create_repo / publish_session / update_repo). Returns the prompt-organize methodology: a step-by-step guide to (1) rewrite the user's raw prompt for clarity and (2) convert the genuinely reusable parts into PromptHub's {{variable}} template syntax (single-line, ... for multi-line, =a|b|c for choices) so others can edit and replace them. Apply the returned guide to the user's prompt, CONFIRM the variable list with the user, then publish. Skip only if the prompt is already a clean, templatized prompt the user explicitly does not want changed. No token required — safe to call before the user has authenticated.

prompthub_create_repoA

Create a new PromptHub repository from a full set of fields. Use this when the user explicitly provides repo content to publish. (To publish the CURRENT coding session, prefer prompthub_publish_session.) Call prompthub_describe_file_format if unsure of the files[] shape.

prompthub_update_repoA

Replace ALL content of one of YOUR repositories with the provided body. This is a FULL REPLACE, not a partial merge — any file you omit is DELETED. To change part of a repo, first call prompthub_get_repo, edit the returned fields, then send the COMPLETE set back (map the returned name to repoName; drop read-only fields like counts/createdAt; resend every file). The owner must be your own handle, otherwise the server returns not found.

prompthub_publish_sessionA

Distill the CURRENT coding session into a reusable PromptHub repository and publish it as a NEW repo. You (the assistant) must gather the relevant turns from this conversation yourself and shape them into one or more files — this tool cannot read the conversation on its own. Choose the file type that fits the session: - a single refined reusable prompt → a 'text' file (graph with exactly one node whose promptText holds the prompt); - a valuable multi-turn back-and-forth → a 'conversation' file with turns of { userPrompt, aiSummary? }; - a multi-step / multi-model pipeline → a 'workflow' file (graph of nodes + edges). Call prompthub_describe_file_format for the exact file shapes if unsure. STRIP secrets, API keys, absolute file paths, and project-specific noise — capture the reusable essence, not the raw transcript. 'visibility' is REQUIRED: choose 'private' unless the user clearly wants it public. If the user already handed you finished, structured repo content (with topics/README), use prompthub_create_repo instead.

prompthub_describe_file_formatA

Return the exact JSON shapes (with examples) for repo files[]: the text / conversation / workflow content kinds and the repoName/path naming rules. Call this before create_repo / update_repo / publish_session if unsure how to build files[]. To publish a GENERATED RESULT (doc/web page/image/file) instead of the prompt, call prompthub_describe_artifact_format.

prompthub_describe_runner_protocolA

Return the complete bundled public Workflow Runner Contract for agentic hosts that execute PromptHub Desktop run packages. No token or network request is required. This tool only describes the protocol; it does not create, execute, write, or monitor a run package.

prompthub_publish_artifactA

Publish a GENERATED text RESULT (Markdown or HTML, ≤256 KiB) to a repo's Artifacts (产物) panel. This is NOT the prompt itself — for the prompt use create_repo/publish_session; for binary files (image/video/pdf) use prompthub_upload_artifact. The server APPENDS (no de-dup); to REPLACE, prompthub_get_repo + prompthub_delete_artifact the old id first. See prompthub_describe_artifact_format.

prompthub_upload_artifactA

Upload a local BINARY file (image/video/pdf) as a generated artifact to a repo's Artifacts (产物) panel. Pass a local file path; this tool reads it and uploads directly. type defaults from the extension (.png/.jpg/.gif/.webp→IMAGE ≤10MB, .mp4/.webm→VIDEO ≤100MB, .pdf→FILE ≤25MB). For inline Markdown/HTML use prompthub_publish_artifact. The server APPENDS (no de-dup); to REPLACE, prompthub_get_repo + prompthub_delete_artifact the old id first. See prompthub_describe_artifact_format.

prompthub_delete_artifactA

Delete one artifact from a repo by its id (get ids from prompthub_get_repo's artifacts[]). Returns 'not found' if it does not exist or you cannot access it. Use this + republish to replace an artifact (the server appends, it does not de-duplicate).

prompthub_describe_artifact_formatA

Explain PromptHub ARTIFACTS (generated outputs in the repo's 产物/Artifacts panel) vs repo FILES (the prompt itself), and how to publish each artifact type (inline MARKDOWN/HTML vs binary upload). Call this when the user asks to publish a generated result / output / 产物.

prompthub_delete_repoA

Delete one repo you own by owner/name. This permanently removes the repo rows and asks PromptHub to clean stored artifact/reference objects. A 404 means the repo does not exist or you cannot access it.

prompthub_upload_referenceA

Upload a local file as a PromptReference input asset, bound to a prompt unit. This is NOT a generated artifact. Set filePath to an existing repo file path; targetKind is TEXT_FILE, WORKFLOW_NODE, or CONVERSATION_TURN. targetId is required for node/turn targets. See prompthub_describe_reference_format.

prompthub_delete_referenceA

Delete one PromptReference input asset by id. Get ids from prompthub_get_repo promptReferences[]. A 404 means it does not exist or you cannot access it.

prompthub_describe_reference_formatA

Explain PromptHub PromptReferences (input assets) vs artifacts (generated outputs), and the target fields for TEXT_FILE / WORKFLOW_NODE / CONVERSATION_TURN bindings.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 19 tools

Disambiguation4/5

Most tools target a clearly distinct resource+action (repo CRUD, artifact publish/upload/delete, reference upload/delete), and descriptions explicitly disambiguate close pairs like create_repo vs publish_session and publish_artifact vs upload_artifact. The main friction is the cluster of four prompthub_describe_* schema-doc tools (file/artifact/reference/runner protocol) plus organize_prompt, which an agent may hesitate between when it just wants 'how do I format this'.

Naming Consistency5/5

Every tool uses the same prompthub_ prefix followed by a snake_case verb_noun or verb_object phrase (get_repo, create_repo, delete_artifact, upload_reference, describe_file_format). The handful of deviations (whoami, recommend) are still snake_case and idiomatic rather than a different convention.

Tool Count3/5

19 tools for a prompt-repo platform is on the heavy side; four separate describe_* documentation tools plus organize_prompt could plausibly be folded into fewer calls or into the other tools' descriptions. Each remaining tool does earn its place, so it is not bloated, just borderline.

Completeness4/5

Repo lifecycle is fully covered (list/get/create/update/delete), artifacts have publish/upload/delete and are enumerable via get_repo, and references have upload/delete plus a schema explainer. The notable gap is granular file editing — update_repo is a destructive full replace with no per-file add/remove/rename operation, and artifacts have no true update (delete+republish workaround).

Maintenance

ActivityInactive
ResponsivenessOutdated data