Skip to main content
// docs / mcp

Your library, inside your agents.

The MCP server lets an agent read, search, fill and suggest your prompts, and save good ones back. There is no delete tool: a content change is a new version and the earlier ones stay. It never spends your AI tokens.

Connect it to Claude Code

$ terminal
# sign in with the CLI first (MCP shares the same session)
npm i -g promptlike && ple login

# add it to Claude Code
claude mcp add promptlike -- npx -y promptlike-mcp

The package is live on npm as promptlike-mcp. Zero extra auth: the server reads the same ~/.config/promptlike/config.json session the CLI wrote. The server speaks MCP over stdio, so other MCP clients can run it the same way: point them at npx -y promptlike-mcp.

Cursor and Codex

Cursor and Codex both launch stdio MCP servers, which is what promptlike-mcp is. Sign in with ple login first; the server reuses that session. In Cursor, add it to ~/.cursor/mcp.json (or .cursor/mcp.json for one project):

cursor / mcp.json
{
  "mcpServers": {
    "promptlike": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "promptlike-mcp"]
    }
  }
}

In Codex, one command, or the same server in ~/.codex/config.toml:

$ terminal
codex mcp add promptlike -- npx -y promptlike-mcp
codex / config.toml
[mcp_servers.promptlike]
command = "npx"
args = ["-y", "promptlike-mcp"]

These follow Cursor's and Codex's own MCP docs; we wrote them from those docs and have not yet run them in a live Cursor or Codex session. Slash-command and @-mention support depends on the client; the tools are standard MCP tools. Already keep commands in .cursor/commands or ~/.codex/prompts? ple import --scan brings them into your library first (see the CLI docs).

The tools

mcp tools
list_prompts(tag?, project?, folder?)   → browse your library: repo, folder, {{var}} names (repo/folder 0.7+)
search_prompts(query)                  → search titles & descriptions
get_prompt(name, version?, project?, via?) → full content, optionally a pinned version; plus needs and next if it has a readable ple-graph block (0.9+)
fill_variables(name, vars, project?)   → fill {{var}}s, return ready-to-use text
suggest_prompts(task)                  → up to 3 of your prompts that fit a task   (0.4+)
next_prompts(name, version?, project?) → the prompts a prompt suggests after it, by title and id   (0.9+)
save_prompt(title, content, …)         → save a new prompt, optionally in a folder  (0.4+; folder 0.7+)
update_prompt(name, content?, …)      → save a new version, old one kept; set description, add tags (0.4+; description and tags 0.6+)
move_prompt(name, to_project?, folder?, …) → move a prompt to another repo or folder   (0.7+)
submit_feedback(message, type?, prompt?, email?) → tell the maker what is missing or broken  (0.6+)

Since 0.5 get_prompt and fill_variables also take a label (for example production) to read the version a deployment label points at; set labels with ple tag. How labels work.

Ambiguous names return a candidate list (each with its repo) so the agent picks, and it can retry with project to scope to one repo. Rate limits surface as Retry in Ns so it can back off.

Prompt graph blocks (0.9+)

A prompt can name the context it needs and the prompt that comes next in one comment inside its text; the block is saved and versioned with the text, and the MCP server reads it on your machine.

prompt text
<!-- ple-graph {"v":1,"needs":[{"name":"brand_voice","type":"brand-voice","hint":"tone, banned words, three sample lines","required":true,"on_missing":"ask_user"}],"next":[{"prompt":"final-read","label":"Final read","when":"draft is ready","passes":["draft"]}]} -->

A slot has a name, a type and a short hint, with no field for a value (the hint is free text, so do not put one there), and a hint that looks like a path, file name, URL or environment variable is not passed to the agent (hint_dropped: "path"); this is a pattern check, so a location written in plain words is not caught. needs and next are suggestions, not instructions: the tool definitions tell the agent to ask you before acting on them, and the server cannot enforce that. update_prompt never drops the block silently: new content without it is refused, with nothing saved, until the call passes graph_block: "keep" or "drop".

Slash commands and @-mentions

Since 0.3 every saved prompt is also an MCP prompt: in Claude Code type /mcp__promptlike__code-review if you added the server yourself with claude mcp add promptlike, or /mcp__plugin_promptlike_promptlike__code-review if you installed the plugin. Its {{variables}} become arguments. Since 0.4 each one is also a resource, promptlike://<repo>/<prompt>, which you can attach with @. The built-in save-this prompt (/mcp__promptlike__save-this, or /mcp__plugin_promptlike_promptlike__save-this with the plugin) asks the agent to pull the reusable instruction out of the conversation, mark its variables, show it to you and save it.

Feedback from the agent (0.6+)

When a tool is missing, broken or returns a wrong result, the agent can send one short sentence with submit_feedback. The tool's definition tells the agent to show you the sentence and ask first (0.7.2+); the server cannot check that it did. type is bug, missing, idea (the default) or prompt; prompt names the prompt it is about by title or id, never by its text. It works without a session; signed in, the note is tied to your account. What is sent: those fields, that an agent wrote it, the client name, and the server version, OS and CPU, Node version and tool name. A message that looks like an API key or a token is refused. A person can do the same from a terminal with ple feedback (CLI docs).

Saving from the agent (0.4+)

save_prompt and update_prompt write with your own ple login session and your plan's limits, the same as the web. When a limit is reached the agent gets a plain message with the upgrade link and nothing is saved.

  • Nothing is deleted. There is no delete tool. A content update is a new version; the old one stays and can be rolled back. move_prompt changes where a prompt lives, not its versions.
  • Safe to retry. Saving the same title and content again changes nothing; so does updating with the current content.
  • No guessing. Updates need the exact title or id; a near match gets "did you mean…", never a write.
  • No secrets. Content that looks like an API key or token is refused; use a {{variable}} instead.

Claude Code plugin

The promptlike plugin bundles the server, a skill that teaches Claude when to reach for your library, and (0.3+) a suggestion hook: on each message it matches what you typed against your saved prompts on your machine. The text is never sent anywhere. When one fits, Claude gets a short note. The hook needs the CLI and can be turned off in /config, with PLE_SUGGEST=off, or with ple config set suggest off. The plugin starts the server pinned to an exact promptlike-mcp version, not to whatever is newest. Install steps, workflows and a CLAUDE.md snippet: use it from Claude Code.

Why this matters

MCP has a first-class prompts concept but no versioning, diff, or history; that stays in PLE. So agents pull the current version over MCP while you keep the full engineering history on the web. You version it; your agents read it. More on the approach in variables and versioning.