MCP server

Drive Tracemill from an AI agent over the Model Context Protocol.

Tracemill Cloud exposes a hosted MCP (Model Context Protocol) server, so an AI agent can drive the platform directly: bind a Splunk target, read its detection coverage, author validation content, run it, and enroll a detection into a suite.

There is nothing to install. The server is a URL and an API token.

https://api.tracemill.io/mcp

Authenticate with a workspace API token (tmk_…) as a bearer token, or connect an OAuth-capable client as yourself. Target tokens (tmv_…) and agent tokens are rejected — see Setup.

What it is for

The flow it was built for is enrolling a custom detection: taking one of your own Splunk saved searches and verifying Tracemill can make it fire on demand. Doing that by hand means exporting events, hand-authoring a scenario that reproduces them, checking the reproduction is faithful, running it, and reading the result. The MCP server lets an agent do that with you.

The second flow is investigating a failed run: when a validation run fails, the dossier Tracemill exports and the probe chain it renders let your agent walk the path from Tracemill to your Splunk with your own credentials and report the root cause, without Tracemill ever touching your systems.

The server ships a guided prompt for each flow, enroll-custom-detection and investigate. Most MCP clients surface prompts in a slash-command or template menu. The investigate recipe also comes back from get_investigation itself, so the investigation flow works in clients that do not surface prompts. The enroll recipe also comes back from get_authoring_brief.

Tools

GroupTools
Targetsresolve_target, get_target_detections, get_authoring_brief, request_inventory_refresh
Authoringcreate_dataset_upload, extract_events, put_draft, get_draft, list_drafts, validate_content, render_and_check_fidelity, list_event_types, get_authoring_guide, reduce_spl_groupby
Contentupload_content, delete_content
Runsstart_validation_run, get_run
Investigationsget_investigation (dossier plus a read-only probe chain your own agent runs against your Splunk, and the recipe for walking it), get_investigation_events, attach_investigation, list_investigations, delete_investigation — see Investigate a failed run
Suiteslist_suites, enroll_detection

Every tool is authorized with the same role permissions as the REST API, so a token whose role cannot write content cannot write content over MCP either. The guided prompt itself is readable by any role; the tools it describes still fail closed.

Working with Splunk

Tracemill's MCP server never connects to your Splunk. It keeps the same push-only relationship the rest of the platform has: events are delivered out, and the TA-Tracemill add-on reports observations back.

Reading from Splunk — listing saved searches, fetching a detection's SPL, exporting events — is the agent's job, from your side. The official Splunk MCP server covers this, and Tracemill duplicates none of it. If you cannot install Splunkbase apps, the same reads work as curl calls against Splunk's REST API, and your agent can make them directly.

Credentials for your Splunk stay on your side throughout.

The authoring workspace

To check that a generated event faithfully reproduces a real one, the fidelity oracle has to read the real one. So the events you export land in an authoring workspace: tenant-scoped, size-capped, and short-lived object storage.

(This is a different thing from the workspace that means your tenant. The authoring workspace is scratch space inside it.)

  • Raw exported events are uploaded straight from your machine to a presigned URL. They never pass through the agent's context.
  • Authoring sessions expire 7 days after their last write. The objects behind them are deleted within 14 days.
  • Nothing there is a source of truth. Drafts can be re-written and datasets re-exported; if a session expires mid-flow, start a new one.
  • Only the small artifacts travel through the agent: YAML drafts, the event summary, one sample event per category, and the fidelity diff.

Two authoring tools touch no workspace data. get_authoring_guide returns one of the authoring reference guides (engine-capabilities, job-authoring, splunk-spl). reduce_spl_groupby takes the JSON your agent got back from your Splunk's /services/search/parser for a detection and returns the fields it groups by; Tracemill never calls your Splunk to get it.

If exporting raw events to Tracemill is not acceptable for your telemetry, use the open-source authoring flow with the CLI instead. It runs entirely on your machine and needs no account. See Scenarios and the CLI quickstart.

Availability

The MCP server is enabled per environment. If https://api.tracemill.io/mcp returns 404 for your workspace, it is not switched on yet — contact us.

What a workspace API token (tmk_…) may do over MCP depends on the workspace's plan, through its API scope. On the Teams and Trial plans the scope is content by default: a token can author and validate content (drafts, extraction, fidelity checks, uploads) but cannot read a target's detections, start runs, enroll into suites, or read investigations — so it cannot run the enroll or investigate flows end to end. Connecting your MCP client with OAuth (Setup) acts as you, with your role's permissions, and the API scope does not apply. See Billing.