Skip to main content
Glama
@promptjang/mcp-server

@promptjang/mcp-server

Official
by PromptJang

@promptjang/mcp-server

Official local MCP server for PromptJang. It exposes bounded delivery and mailbox tools over stdio.

  • Targets and delivery: list_targets, send_event, get_event, replay_event, get_usage

  • Agent mailbox: list_mailboxes, list_unread, get_message, claim_message, ack_message

The server never accepts a destination URL. send_event requires a registered target ID returned by list_targets.

MCP-originated items follow the same usage contract as the application API. Each newly accepted webhook event, mailbox message, or A2A handoff creates one usage record at the published $0.10 per 1,000 accepted-item rate. Retries, reads, claims, acknowledgements, replays, rejected requests, and idempotent duplicates create no additional usage. Live billing is disabled during the founder-assisted beta, so these records are not currently exported to Stripe or charged.

Mailbox consumers follow one bounded lifecycle: list unread messages, claim one for a five-minute lease, process it, then acknowledge it with the same API key.

Run

Requires Node.js 20 or later and a PromptJang API key.

export PROMPTJANG_API_KEY=pj_live_your_key
npx --yes github:PromptJang/promptjang-mcp

The source repository is the supported install path for v0.1.1. The @promptjang/mcp-server npm registry package is not published yet.

Related MCP server: PromptDB MCP Server

Codex

[mcp_servers.promptjang]
command = "npx"
args = ["-y", "github:PromptJang/promptjang-mcp"]

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

Claude Code

claude mcp add promptjang --env PROMPTJANG_API_KEY=pj_live_your_key -- npx -y github:PromptJang/promptjang-mcp

Keep the API key in an environment or secret manager. Do not commit it to a project configuration.

Available Tools

10 tools
ack_messageAcknowledge mailbox messageA
Idempotent

Acknowledge a claimed mailbox message after successful processing. Only the API key that owns the active claim can acknowledge it.

Inputs: message_id (required), response_format. Returns: id, status, acknowledged_at, claim_expires_at

claim_messageClaim mailbox messageA
Idempotent

Atomically claim one unread mailbox message for five minutes. The same PromptJang API key must acknowledge it after processing.

Inputs: message_id (required), response_format. Returns: id, status, acknowledged_at, claim_expires_at

get_eventGet PromptJang eventA
Read-onlyIdempotent

Read one PromptJang event and its delivery attempts by event ID. Use this to inspect current state, response codes, timing, retry count, and the last delivery error.

Inputs: event_id (required), response_format. Returns: event

get_messageGet mailbox messageA
Read-onlyIdempotent

Read one mailbox message and its JSON payload without claiming or acknowledging it.

Inputs: message_id (required), response_format. Returns: message, payload

get_usageGet PromptJang usageA
Read-onlyIdempotent

Read the current calendar-month accepted-item count, estimated USD charge, and pending meter-event count. Retries and replays are excluded. During the billing-disabled founder beta, usage remains local and exempt workspaces report a zero charge estimate.

Inputs: response_format. Returns: period_end, period_start, accepted_events, estimated_cents, +2 more

list_mailboxesList PromptJang mailboxesA
Read-onlyIdempotent

List durable agent mailboxes available to this API key. Returns registered mailbox IDs for list_unread and send_event.

Inputs: response_format. Returns: count, mailboxes

list_targetsList PromptJang targetsA
Read-onlyIdempotent

List registered PromptJang webhook, mailbox, and A2A targets available to this API key. Call this before send_event; this tool never creates or changes targets.

Inputs: response_format. Returns: count, targets

list_unreadList unread mailbox messagesA
Read-onlyIdempotent

List unread messages in one registered PromptJang mailbox without claiming or changing them.

Inputs: mailbox_id (required), limit, response_format. Returns: count, messages

replay_eventReplay PromptJang eventA

Create a non-billable replay of an existing PromptJang event using its stored payload and registered target. Returns the new replay event ID. This changes delivery state but does not delete or overwrite the source event.

Inputs: event_id (required), response_format. Returns: id, status, idempotent_replay

send_eventSend PromptJang eventA

Accept one JSON item for a registered webhook, mailbox, or A2A target. Requires target_id from list_targets and never accepts an arbitrary URL. Set idempotency_key when repeating the same logical item.

Inputs: payload (required), target_id (required), event_type, idempotency_key, +1 more. Returns: id, status, idempotent_replay

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 10 tools

    Disambiguation4/5

    Each tool targets a distinct resource or action, and the descriptions make the boundaries clear. The only mild overlap is between list_targets and list_mailboxes, since mailbox targets and durable mailboxes are related, but the descriptions differentiate them well.

    Naming Consistency5/5

    Tool names consistently follow a verb_noun snake_case pattern: list_*, get_*, claim_*, ack_*, send_*, replay_*. This makes the set highly predictable and easy to navigate.

    Tool Count5/5

    Ten tools is well-scoped for an event, mailbox, and usage monitoring server. Each tool serves a clear purpose without redundancy or bloat.

    Completeness4/5

    The core lifecycle is covered: send events, inspect delivery, replay failed events, list/read/claim/acknowledge mailbox messages, and check usage. A minorgap is the lack of a list-events endpoint to browse past events without knowing their IDs, but agents can work around this.

    Maintenance

    ActivityNo data
    ResponsivenessSyncing

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Start, observe, and interact with Claude Managed Agents from any MCP client — launch an agent, watch its events, reply, approve the tools it wants to run, and stop it. Runs over stdio, HTTP, or AWS Lambda with pluggable auth.
      17
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables LLM agents to send, receive, and discover contacts on the agentic message bus via native tools.
      5
      MIT