Skip to content

MCP Server

@promptjang/mcp-server is the official local Node.js 20+ stdio server. It reads PROMPTJANG_API_KEY from the environment and exposes:

ToolBehavior
list_targetsLists registered webhook, mailbox, and A2A targets
send_eventSends JSON to one registered target ID
get_eventReads state and delivery attempts
replay_eventCreates a non-billable replay
get_usageReads current accepted usage and estimate
list_mailboxesLists registered durable mailboxes
list_unreadLists unread messages without changing state
get_messageReads one message and its JSON payload
claim_messageAtomically claims a message for five minutes
ack_messageAcknowledges a claim owned by the same API key

send_event never accepts a destination URL. Call list_targets and use its returned target_id.

Where MCP fits

Claude Code and Codex are MCP hosts. They launch the local PromptJang stdio server, and the server translates bounded tool calls into authenticated PromptJang API requests:

This is a browserless runtime path, not browserless onboarding. The founder first provisions the workspace; use the dashboard to create an API key and registered target. After that, MCP can send to registered targets or consume mailbox work without opening the dashboard. Live billing is currently disabled, so beta workspaces do not connect a payment method.

Codex

toml
[mcp_servers.promptjang]
command = "npx"
args = ["-y", "@promptjang/mcp-server"]

[mcp_servers.promptjang.env]
PROMPTJANG_API_KEY = "pj_live_your_key"

Claude Code

bash
claude mcp add promptjang \
  --env PROMPTJANG_API_KEY=pj_live_your_key \
  -- npx -y @promptjang/mcp-server

Keep the API key in an environment or secret manager. Do not commit it to a repository. Use idempotency_key with send_event when an agent may repeat the same logical item. A mailbox consumer should list unread work, claim one message, process it, then acknowledge it with the same API key.

Released under the MIT License.