xAIAgent integration

Connect Artifact to Grok API

Connect Artifact to Grok so it retrieves company direction before drafting a consequential answer.

Short answer

Add Artifact as an MCP tool or custom connector, include the Artifact instructions, and run a test task to confirm the connection.

For: Teams using the xAI Responses API or Grok custom connectors.

Configure Artifact for Grok API

Built for Grok API

The MCP tool exposes only the steering and interaction methods the agent needs.

Direction before the response

Artifact supplies the matching directive version at task time so the agent can revise before it answers.

Evidence without transcripts

Receipts record directive versions, outcomes, latency, and token counts—not raw prompts or replies.

Why teams connect Artifact to Grok API

Grok API stays the agent your team already uses. Artifact adds the missing layer: owned, scoped, versioned company direction before the response, then metadata that shows which version applied.

  • The MCP tool exposes only the steering and interaction methods the agent needs.
  • Custom instructions make the pre-response check explicit.
  • The same directive can govern Grok alongside the rest of the team's agents.

What is awesome about Grok API + Artifact

You stop pasting the same priorities into every Grok API chat. When the decision changes, you edit the directive once. The next Grok API run—and every other connected agent—uses the new version.

  • Persistent instructions in The request’s system or instructions message (or custom instructions on grok.com) keep the steering check part of each task.
  • Scope a directive to the company, a team, Just me, or named agent connections.
  • The same profile can govern Claude, ChatGPT, Codex, Gemini, Grok, and Cursor together.

What Artifact records

Artifact records directive versions, outcomes, latency, and token counts. It does not store raw prompts or replies.

  • The directive version available for the task.
  • Whether steering changed the agent response or raised a disagreement.
  • Latency and governed-token metadata for operating and billing evidence.
Configuration reference

MCP configuration

Add to the tools array of each xAI Responses API request (or grok.com/connectors)

{
  "type": "mcp",
  "server_url": "https://app.artifactcomputing.com/mcp",
  "server_label": "artifact",
  "server_description": "Company steering directives, personal context, and metadata-only receipts.",
  "authorization": "YOUR_ARTIFACT_TOKEN",
  "allowed_tools": [
    "artifact_get_steering_context",
    "artifact_list_directives",
    "artifact_save_directive",
    "artifact_manage_profile",
    "artifact_record_setup_profile",
    "artifact_check_work",
    "artifact_record_receipt",
    "artifact_raise_disagreement",
    "artifact_backfill_sessions",
    "artifact_backfill_directives",
    "artifact_sync_client_context"
  ]
}

Replace the placeholder with a private token created inside your Artifact workspace. Do not publish or share the token.

Frequently asked questions

Does Artifact store Grok prompts or replies?

No. Artifact records directive versions, outcomes, latency, and token counts, and does not retain raw prompt or reply content.

Can I scope directives to only Grok?

Yes. A directive can apply company-wide, to one team, or to a specific tool or agent connection.

How do I verify the Grok connection?

Run the verification task after setup, then confirm that the interaction appears in Artifact with the applied directive and outcome metadata.

Get started

Configure Artifact for Grok API

Connect Grok API over MCP so current company direction reaches the agent before it responds. Raw prompts and replies are not stored.

Configure Artifact for Grok API