MCP Server

xpntl exposes a full MCP tool surface so coding agents can read issues, post updates, and transition state. Interactive clients connect over OAuth; headless agents and CI use a scoped harness key.

Hosted Setup

The xpntl MCP server runs at https://api.xpntl.ai/mcp. No infrastructure required. It uses Streamable HTTP transport, is stateless (every request carries its own bearer token, and there is no session to open or lose), and is an OAuth 2.1 protected resource, so most clients connect without any key to copy.

Connect with OAuth (recommended)

Add xpntl as a custom connector and sign in. The client discovers the OAuth endpoints, bounces you through xpntl sign-in, lets you pick a workspace, and you approve. The connection then acts as you in that workspace.

  • claude.ai / Claude Desktop: Settings → Connectors → Add custom connector → URL https://api.xpntl.ai/mcp.
  • Claude Code: claude mcp add --transport http xpntl https://api.xpntl.ai/mcp. The OAuth flow opens in your browser on first use.
  • ChatGPT: chatgpt.com/plugins → the plus button → Add custom MCP server. Give it a name, enter https://api.xpntl.ai/mcp under Connection, then Create as a plugin. Your ChatGPT account and workspace policies decide whether you can add a custom MCP server.
  • Grok: grok.com/connectors → New Connector → Custom → https://api.xpntl.ai/mcp. xAI supports bring-your-own MCP, so this works today without waiting on a catalog listing.
  • Any OAuth-capable MCP client: point it at https://api.xpntl.ai/mcp. The server answers an unauthenticated request with 401 + a WWW-Authenticate challenge pointing at its discovery document (/.well-known/oauth-protected-resource), which kicks off the flow automatically.
OAuth tokens are scoped to the workspace you pick at consent and act as your account there. Revoke them anytime from Settings → Sessions.

Connect with a harness key (headless / CI)

For agents that can't run an interactive browser flow, authenticate with a workspace-scoped harness key passed in the Authorization header. Generate one from Settings → Team (add an agent, then Connect) or under Settings → Plan & Billing in Coding Harness Keys. The key starts with xpntl_hk_ and is shown only once.

{
  "mcpServers": {
    "xpntl": {
      "type": "url",
      "url": "https://api.xpntl.ai/mcp",
      "headers": {
        "Authorization": "Bearer xpntl_hk_..."
      }
    }
  }
}
Harness keys are scoped to a single workspace. Use one per agent or harness so every action in the audit log traces to a single identity.

Any MCP client

Point your client at https://api.xpntl.ai/mcp using the Streamable HTTP transport. The server responds to POST with JSON-RPC. The server keeps no session between requests, so each request must present its own bearer token: an OAuth access token or a harness key.

Self-Hosted Setup

If you self-host xpntl, the MCP server is built into the API container. It's mounted at /mcp on whatever host your API runs on.

# If your API runs at https://xpntl.example.com
# MCP endpoint is https://xpntl.example.com/mcp

# Health check
curl https://xpntl.example.com/mcp/health
# → { "status": "ok", "mode": "stateless" }

Standalone mode

The MCP server can also run standalone via stdio (for local development or custom setups):

# Stdio transport (pipes)
node apps/mcp/dist/index.js

# HTTP transport (port 3100)
node apps/mcp/dist/http.js

Tool Reference

The xpntl MCP server exposes 92 tools spanning issues, comments, your agent inbox, workflow states, labels, projects, cycles, agent loops, workspace docs, imports, teams, and users. Every request is authenticated from its bearer token (OAuth access token or harness key), so tools are ready immediately. Each tool is annotated with a title and read-only / destructive hints so clients can surface and auto-approve safe calls.

Authentication

xpntl_authenticate and the ClickUp import tools (xpntl_clickup_browse, xpntl_clickup_import) appear only to harness-key clients; over OAuth, import from ClickUp in the web app under Settings → Import.

ToolDescription
xpntl_authenticate Sign in with a harness key, for harness-key clients that cannot send an Authorization header. A connection that sends a bearer token is already signed in.
Params: key (string): your xpntl_hk_... key
xpntl_whoami Return the authenticated identity (user, role, workspace) and the capability map showing which operations this role permits. With includeAgentInstructions, also returns the text saved in Settings → Agents, as plain data.

Issues

ToolDescription
xpntl_issue_list List/search issues with full-text search and filters.
Params: q, stateType, priority, assigneeId, includeSubIssues, limit
xpntl_issue_get Get a single issue by key (e.g. ACME-42).
Params: key
xpntl_issue_create Create a new issue with optional state, assignee, project, labels, and parent.
Params: title, description, priority, stateId, assigneeId, projectId, labelIds, parentKey
xpntl_issue_update Update an existing issue by key.
Params: key, title, description, priority, stateId, assigneeId
xpntl_issue_bulk_update Update multiple issues at once.
Params: keys, stateId, priority, assigneeId
xpntl_issue_delete Soft-delete an issue (can be restored later).
Params: key
xpntl_issue_assign Assign a user to an issue.
Params: key, userId
xpntl_issue_unassign Remove a user from an issue.
Params: key, userId
xpntl_issue_subscribers List who is subscribed to an issue, and whether you are. Subscribers are notified of its comments, state changes and blocks.
Params: key
xpntl_issue_subscribe Follow an issue without being assigned to it. Subscribes you unless userId names someone else.
Params: key, userId
xpntl_issue_unsubscribe Stop following an issue. It sticks: later comments do not resubscribe you; a direct mention or a new assignment does.
Params: key, userId

Comments

ToolDescription
xpntl_comment_list List comments on an issue.
Params: key
xpntl_comment_create Post a comment on an issue (markdown supported).
Params: key, body
xpntl_comment_delete Delete a comment by id. Deletes the comment for everyone.
Params: commentId

Inbox & Notifications

Agents pick up work the same way humans do: through @mentions, assignments, and comment replies. xpntl_inbox is the one-call way to do it: poll it, act, reply, and mark items read.

ToolDescription
xpntl_inbox Return the caller's unread @mentions, assignments, and comment replies (other notification types on request), each enriched with the issue (key, title, state, priority, URL), the @mention or comment text, and who triggered it, plus the unread count. Listing items does not mark them read.
Params: types, includeRead, limit
xpntl_notification_list List raw notifications for the authenticated user/agent.
Params: unreadOnly, limit
xpntl_notification_mark_read Mark a notification as read, so unread-only notification listings no longer include it.
Params: id

Workflow States

ToolDescription
xpntl_workflow_state_list List all workflow states in the workspace, with each state's id, name, type, and board position.
Returns: id, name, type, position
xpntl_workflow_state_create Create a workflow state (appended to the board). Admins only.
Params: name, type, wipLimit
xpntl_workflow_state_update Update a state's name, type, or WIP limit. Admins only.
Params: id, name, type, wipLimit
xpntl_workflow_state_delete Delete a state. Refuses if any issue is still in it, or if it is the last state. Admins only.
Params: id
xpntl_workflow_state_reorder Reorder the board: pass every state id in the desired order. Admins only.
Params: orderedIds

Labels

ToolDescription
xpntl_label_list List all labels in the workspace.
xpntl_label_create Create a new label. Admins only.
Params: name, color, description
xpntl_label_update Update a label's name, color, or description. Admins only.
Params: labelId, name, color, description
xpntl_label_delete Delete a label and remove it from all issues. Admins only.
Params: labelId
xpntl_label_add Add a label to an issue.
Params: key, labelId
xpntl_label_remove Remove a label from an issue.
Params: key, labelId

Projects & Teams

ToolDescription
xpntl_project_list List the projects in the workspace. Archived projects are left out unless archived is true.
Params: archived
xpntl_project_get Get a single project (name, key, status, description, and when it was archived).
Params: projectId
xpntl_project_create Create a new project.
Params: name, key (2–10 uppercase chars), description
xpntl_project_update Rename a project or change its key, description, or status, or archive or unarchive it. Archiving a project archives every issue in it; unarchiving brings back exactly those issues. Members and above; archiving and unarchiving take an admin.
Params: projectId, name, key, description, status, archived
xpntl_project_delete Delete a project and everything in it. Irreversible. The call carries the project's key, typed out, as a confirmation: a key that does not match deletes nothing. Admins only.
Params: projectId, confirmProjectKey
xpntl_team_get Get a single team.
Params: teamId
xpntl_team_create Create a team. Admins only.
Params: name, key, description, icon
xpntl_team_update Update a team's name, description, or icon. Admins only.
Params: teamId, name, description, icon
xpntl_team_delete Delete a team. Admins only.
Params: teamId
xpntl_team_member_list / xpntl_team_member_add / xpntl_team_member_remove List, add, or remove team members. Add/remove are admins only.
Params: teamId, userId, role
xpntl_team_list List all teams in the workspace.

Docs

Workspace docs are the nestable wiki pages shown under Docs in the web app. Agents can read and maintain specs, runbooks and ADRs the same way they manage issues. Docs are markdown; xpntl_doc_list returns metadata only, so fetch a doc to read its body.

ToolDescription
xpntl_doc_list List workspace docs (metadata only: id, title, projectId, parentId, updatedAt). parentId lets you reconstruct the page tree.
Params: projectId (optional filter)
xpntl_doc_get Get a single doc by id, including its full markdown content.
Params: id
xpntl_doc_create Create a new doc (markdown), optionally scoped to a project or nested under a parent.
Params: title, content, projectId, parentId
xpntl_doc_update Update a doc by id. Editing content saves the previous version as a revision; pass parentId to move it in the tree. content replaces the whole body, so pass baseUpdatedAt (the updatedAt from xpntl_doc_get) and the update is refused with a conflict error if someone changed the doc after you read it. The result includes the new updatedAt for the next edit.
Params: id, title, content, parentId, baseUpdatedAt
xpntl_doc_delete Delete a doc by id (admin only). Sub-pages are re-homed under the deleted doc's parent.
Params: id

Users

ToolDescription
xpntl_user_list List workspace members with each one's user id, email, display name, and role.
Returns: id, email, displayName, role

Priority Values

ValueMeaning
0No priority
1Urgent
2High
3Medium
4Low

Workflow State Types

TypeDefault State
triageTriage
backlogBacklog
unstartedTodo
startedIn Progress
completedDone
canceledCanceled

Health Check

GET /mcp/health
→ { "status": "ok", "mode": "stateless" }

Returns ok and the server's mode. The server is stateless, so there are no sessions to count. Use this to verify the server is running and reachable.