Public Beta. This content is updated as features change.

Connect the MCP server

Let your agent read issue history and session records from Harnessforce. What it can read depends on your role and your workspace settings.

View as Markdownllms.txt

Once you connect the Harnessforce MCP server, your agent can read issue history, sessions, traces, and alerts with the same permissions you have. You don't need an API key. You approve access once in the browser and pick the one project the agent reads and writes.

What you need first

  • Membership in a Harnessforce workspace. The Viewer role is enough to connect.
  • At least one project in that workspace. You choose one project on the authorization screen.
  • A client that supports remote MCP servers (Streamable HTTP). For Claude Code and Codex, the Harnessforce plugin and CLI write the configuration for you.
Setup

In Claude Code, installing the plugin with the three lines on this screen also registers the MCP server.

Setup (sample data)

Add the server to your client

Claude Code

  1. Install the Harnessforce plugin. The plugin registers the harnessforce MCP server.
  2. In Claude Code, run /mcp, select harnessforce, and start authentication.
  3. The authorization screen opens in your browser. Continue to the next section.

Codex

harnessforce login adds harnessforce to [mcp_servers] in your Codex config.toml. See Set up Codex with the CLI for the steps.

Other clients

Set the server URL to https://harnessforce.dev/mcp. Your client handles authentication with OAuth.

Choose a project on the authorization screen

The screen is titled "Allow access to Harnessforce". If you aren't signed in, the sign-in screen comes first.

  1. Choose a workspace. Even if you belong to only one, select it to continue.
  2. Choose one project. The agent reads and writes the issues, sessions, traces, and alerts of this project.
  3. Check "App" and "Returns to". The app name is the name the app gave itself; Harnessforce has not verified it. If "Returns to" shows an app running on this device and you don't recognize it, deny the request.
  4. Click "Allow" to return to your client.
Authorization screen

Choose a workspace and one of its projects, check the app and where it returns, then click Allow.

Authorization screen (sample data)

Note

Before you allow access

The token you issue can also read the workspace settings and members, not just the chosen project. If your role permits, it can change workspace settings too, such as inviting members, revoking ingest keys, and deleting content and per-user data across every project in the workspace.

Check that it works

  1. Ask your agent about an issue in the chosen project by its key, for example "Walk me through the history of HF-123."
  2. The agent calls get_issue and get_issue_timeline and returns the history in the same order as the issue screen in the app.
  3. If you use the Claude Code plugin, sessions you start by naming an issue join that issue's history.
Issue screen (Timeline)

The history your agent returns follows the order of this screen. Sessions started from MCP appear here too.

Issue screen (Timeline) (sample data)

What your role and settings let the agent read

The agent acts as you, the person who approved access. The same role checks as the app decide which tools it can call; agents get no separate permissions.

RoleWhat the agent can do
ViewerRead issues, sessions, traces, logs, alerts, and metrics. Delete content you sent yourself
MemberAlso register sessions and link them to issues
Owner and AdminAlso configure alerts, invite members, revoke ingest keys, and change content settings and delete content
Owner onlyAlso accept deletion of a user's data

Content of a session can be deleted by Owners, Admins, and the person who sent it.

  • Content: Prompt and output text is never included in lists or details. The agent reads it one row at a time and gets only the rows your workspace's "who can read content" setting allows you to read. Each read is recorded in the access log.
  • Developer seats: Having a seat or not changes neither the tools the agent can call nor what they return. A seat only decides whether your telemetry is accepted and how you're billed.
  • Read-only workspaces: While a workspace is read-only because of its billing status, write tools are refused without writing anything.
  • Other projects: Issues in projects you didn't choose come back as not found.
Collection & retention

An Owner or Admin chooses who can read content in the collection and retention settings.

Collection & retention (sample data)

Switch projects or reconnect

  1. To read a different project, clear the harnessforce authentication in your client and authenticate again. Choose the other project on the authorization screen.
  2. If the authorization screen says "This authorization request cannot be used", remove the connection to this server in your client and add it again.
  3. The token issued when you allow access expires after one hour, and your client gets a new one with its refresh token. If you leave the workspace, the agent's calls stop working from that moment.

FAQ

Can I use an API key or an ingest key instead?

No. The MCP server accepts only tokens issued when you allow access in the browser. A machine's ingest key can't read data.

Can one connection read two projects?

No. One connection reads one project. Workspace-wide tools, such as members and data settings, cover the whole workspace whichever project you chose.

Will the agent call delete tools on its own?

The server tells the agent to confirm with you before any action that can't be undone. No tool goes beyond what your role allows.

Can members without a developer seat use it?

Yes. Seats decide which telemetry is accepted and what you're billed, not what you can view or do.