Go from no account to a running workflow using only the Kestrel MCP server, with every human step called out
This page is written for AI coding agents (Claude Code, Cursor, Codex, OpenClaw, and similar harnesses) operating Kestrel on a user’s behalf, and for the people configuring them. It is the shortest path from nothing to a running workflow, and it is explicit about the four moments where a human has to act.If you are a human reading this, the MCP and CLI pages cover the same ground in more depth.
What you need
The Kestrel CLI on the machine the agent runs on. It ships the MCP server as kestrel mcp.
brew install KestrelAI/tap/kestrel
An MCP configuration pointing at it. No account, API key, or login is required before the agent starts. The server starts unauthenticated and the agent creates the account itself.
Set KESTREL_SERVER_URL (or pass --server) only for staging or self-hosted deployments.
The sequence
Step 1: identify yourself
Call whoami. It reports the server, whether you are authenticated, and, if not, exactly which tools to call next. Every request you make is tagged with your harness name from the MCP handshake (X-Kestrel-Client: mcp/<harness>/<version>), so there is nothing to configure.
Step 2: create the account (or log in)
New user: register(email, password). Ask the user for their work email; personal domains get a smaller trial and disposable domains are rejected. Generate a strong password and tell the user what it is, or ask them for one.
HUMAN STEP 1 — the verification code. Kestrel emails a 6-character code. It only exists in the user’s inbox. Ask them for it, then call verify_email(code). Do not guess or retry random codes.
verify_email logs the account in, creates an API key named mcp-<harness> (saved to ~/.kestrel/config.json so it survives restarts), and registers the full tool set. Your harness receives tools/list_changed; refresh the tool list if it does not do so automatically.Existing user: login(email, password) does the same key creation. Accounts protected by 2FA or SSO cannot be logged in by a tool; the response says so and asks the user to create a key under Settings → API Keys and run kestrel auth <key>.
Step 3: see what is left
get_onboarding_status returns a checklist (account, API keys, connected integrations, workflows, subscription) and one next_recommended_step. Call it whenever you are unsure what to do. get_account_status explains the trial (days left, credit used, daily execution cap) and whether anything is blocked.
Step 4: connect integrations
list_integrations shows every integration, its kind, and the fields it needs. Then connect_integration(name, credentials):
Connects immediately with the credentials you pass. Ask the user for the values; never invent them.
Only to obtain the token
OAuth (GitHub, GitLab, Slack)
Returns a URL.
HUMAN STEP 2: the user opens it and approves. Then call wait_for_connection(name).
aws
Returns a CloudFormation launch URL, the equivalent aws cloudformation create-stack command, and an external_id.
HUMAN STEP 3 unless you hold AWS credentials for the target account, in which case run the CLI command yourself. Then connect_integration(name="aws", verify=true, credentials={role_arn, external_id}).
gcp
Returns a Cloud Shell setup script.
HUMAN STEP 3 unless you can run gcloud against the project. Then connect_integration(name="gcp", verify=true, credentials={project_id}).
oci
Returns setup instructions until all five credentials are supplied.
The user creates an API key in the OCI console.
kubernetes
Returns Helm values (containing the operator token) and the helm install command.
HUMAN STEP 3 unless you have kubectl/helm access to the cluster. Then wait_for_connection("kubernetes").
wait_for_connection polls for up to 240 seconds by default (max 600) and returns the current state either way. If it comes back connected: false, remind the user what is pending and call it again.
Step 5: build the first workflow
generate_workflow(prompt) turns plain English into a workflow definition. Review it, then create_workflow(...) and activate_workflow(id). test_workflow(id) runs it with mocked inputs first if the user wants a dry run.
Nothing connected yet? Pass simulated=true to generate_workflow and create_workflow. The workflow is built as if every integration were connected, can be tested with mocked outputs, and is marked simulated. It cannot be activated until its integrations are actually connected. This is the right move right after signup when the user wants to see whether Kestrel can automate their case before wiring anything up.
If generate_workflow fails because an integration is not connected, the error says so and names both remedies: connect it, or retry with simulated=true.
Human steps, summarized
Email verification code after register.
Browser authorization for GitHub, GitLab, and Slack.
Cloud IAM or Helm install for AWS, GCP, OCI, and Kubernetes, when you do not have credentials for the target environment.
Billing. Subscribing requires card entry in the browser. get_account_status returns the URL to hand to the user; you cannot complete checkout.
Everything else, including account creation, key management, every token integration, workflow generation, creation, testing, activation, executions, and approvals, is available to you directly.
Errors you will see and what they mean
Error
Meaning
Do this
not authenticated
No key or session yet
register or login
subscription_required: …
Trial ended or no subscription
get_account_status; hand the billing URL to the user (human step 4)
… is not connected …
A block needs an integration that is not connected
connect_integration + wait_for_connection, or retry with simulated=true
wait_for_connection returns connected: false
The human step has not been completed
Remind the user; call it again
… requires 2FA or SSO
Tools cannot log this account in
The user creates an API key in the web app and runs kestrel auth <key>
From the terminal instead
Every tool has a CLI twin for agents that shell out rather than speak MCP. Set KESTREL_AGENT=<your-name> so Kestrel can attribute the usage.
kestrel register --create-api-key # account + key in one go (prompts for the emailed code)kestrel whoamikestrel status # onboarding checklist + next stepkestrel account # trial and creditskestrel integrations listkestrel integrations connect github --wait # prints the URL, polls until approvedkestrel integrations connect gcp --bootstrap --project-id my-projkestrel integrations connect gcp --project-id my-projkestrel integrations status awskestrel workflows generate "when a pod crash-loops in prod, run RCA and post to #oncall" --simulated --savekestrel workflows listkestrel workflows activate <id>
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Kestrel AI","colors":{"primary":"#18181B","light":"#FAFAFA","dark":"#18181B"},"favicon":"https://mintcdn.com/kestrelai/Nv5TRbbmVLTb5lrR/logo/light.svg?fit=max\u0026auto=format\u0026n=Nv5TRbbmVLTb5lrR\u0026q=85\u0026s=9d25c0b9f704cc77893001276fe9c9e6","logo":{"light":"https://mintcdn.com/kestrelai/Nv5TRbbmVLTb5lrR/logo/light.svg?fit=max\u0026auto=format\u0026n=Nv5TRbbmVLTb5lrR\u0026q=85\u0026s=9d25c0b9f704cc77893001276fe9c9e6","dark":"https://mintcdn.com/kestrelai/Nv5TRbbmVLTb5lrR/logo/dark.svg?fit=max\u0026auto=format\u0026n=Nv5TRbbmVLTb5lrR\u0026q=85\u0026s=8fa1443e001155c6b57a697c79b0a005","href":"https://usekestrel.ai"},"appearance":{"default":"dark","strict":false},"background":{"decoration":null,"color":{"light":"#FFFFFF","dark":"#09090B"}},"navbar":{"links":[{"label":"Support","href":"mailto:hello@usekestrel.ai"},{"label":"GitHub","href":"https://github.com/kestrelai"}],"primary":{"type":"button","label":"Login","href":"https://platform.usekestrel.ai"}},"search":{"prompt":"Search documentation..."},"seo":{"metatags":{"og:image":"https://usekestrel.ai/og-image.png","twitter:card":"summary_large_image"},"indexing":"navigable"},"footer":{"socials":{"github":"https://github.com/kestrelai","linkedin":"https://www.linkedin.com/company/kestrelhq","x":"https://x.com/kestrel__ai"}},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Blog","href":"https://usekestrel.ai/blog","icon":"newspaper"},{"anchor":"Changelog","href":"https://usekestrel.ai/changelog","icon":"megaphone"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"kestrelai","hasAudioNarration":false,"actualSubdomain":"kestrelai","customDomains":["docs.usekestrel.ai"],"gitSource":{"type":"github","owner":"kestrelai","repo":"kestrel-operator","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6ac9c119ead2f02d7fc88561","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"Documentation","count":66},{"language":"default","tag":"Integrations","count":43},{"language":"default","tag":"Workflows","count":8},{"language":"default","tag":"Cloud AI Copilot","count":6},{"language":"default","tag":"Get Started","count":4},{"language":"default","tag":"Enterprise","count":3},{"language":"default","tag":"Incident Response","count":2}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"@font-face{font-family:'Geist Mono';src:url('/fonts/GeistMono-Variable.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}code,pre code,.prose code,.prose pre code,[class*=\"language-\"],pre[class*=\"language-\"]{font-family:'Geist Mono', 'SF Mono', 'Fira Code', monospace!important}"}]}
{"page":{"pagePath":"workflows/agent-quickstart","slug":"/workflows/agent-quickstart","pageMetadata":{"title":"Agent Quickstart","description":"Go from no account to a running workflow using only the Kestrel MCP server, with every human step called out","href":"/workflows/agent-quickstart"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Go from no account to a running workflow using only the Kestrel MCP server, with every human step called out\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Mermaid,Tab,Table,Tabs,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Mermaid)_missingMdxReference(`Mermaid`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`This page is written for AI coding agents (Claude Code, Cursor, Codex, OpenClaw, and similar harnesses) operating Kestrel on a user’s behalf, and for the people configuring them. It is the shortest path from nothing to a running workflow, and it is explicit about the four moments where a human has to act.`}),`\n`,_jsxs(_components.p,{children:[`If you are a human reading this, the `,_jsx(_components.a,{href:`/workflows/mcp`,children:`MCP`}),` and `,_jsx(_components.a,{href:`/workflows/cli`,children:`CLI`}),` pages cover the same ground in more depth.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-you-need`,children:`What you need`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The Kestrel CLI on the machine the agent runs on. It ships the MCP server as `,_jsx(_components.code,{children:`kestrel mcp`}),`.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`brew`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` KestrelAI/tap/kestrel`})]}),`\n`]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`An MCP configuration pointing at it. `,_jsx(_components.strong,{children:`No account, API key, or login is required before the agent starts.`}),` The server starts unauthenticated and the agent creates the account itself.`]}),`\n`]}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`Claude Code`,id:`claude-code`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`claude`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mcp`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` kestrel`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` kestrel`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mcp`})]}),`\n`]})})})}),_jsxs(Tab,{title:`Cursor`,id:`cursor`,children:[_jsxs(_components.p,{children:[`Add to `,_jsx(_components.code,{children:`~/.cursor/mcp.json`}),`:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mcpServers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"kestrel\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"command\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"kestrel\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"args\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mcp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsx(Tab,{title:`Codex`,id:`codex`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`codex`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mcp`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` kestrel`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` kestrel`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mcp`})]}),`\n`]})})})})]}),`\n`,_jsxs(_components.p,{children:[`Set `,_jsx(_components.code,{children:`KESTREL_SERVER_URL`}),` (or pass `,_jsx(_components.code,{children:`--server`}),`) only for staging or self-hosted deployments.`]}),`\n`,_jsx(Heading,{level:`2`,id:`the-sequence`,children:`The sequence`}),`\n`,_jsx(Mermaid,{chart:`flowchart TD\n whoami[\"whoami\"] -->|not authenticated| register[\"register(email, password)\"]\n register --> H1[\"HUMAN STEP 1: read the 6-character code from the inbox\"]\n H1 --> verify[\"verify_email(code)\"]\n verify -->|creates API key, unlocks all tools| status[\"get_onboarding_status\"]\n status --> connect[\"connect_integration(name, credentials)\"]\n connect -->|OAuth: GitHub, GitLab, Slack| H2[\"HUMAN STEP 2: approve in the browser\"]\n connect -->|aws, gcp, oci, kubernetes| H3[\"HUMAN STEP 3 (if the agent has no cloud access): apply IAM / Helm setup\"]\n H2 --> wait[\"wait_for_connection(name)\"]\n H3 --> wait\n wait --> gen[\"generate_workflow(prompt)\"]\n gen --> create[\"create_workflow(definition)\"]\n create --> activate[\"activate_workflow(id)\"]\n activate --> done[\"get_onboarding_status: complete\"]\n gen -. nothing connected yet .-> sim[\"generate_workflow(prompt, simulated=true)\"]`}),`\n`,_jsx(Heading,{level:`3`,id:`step-1-identify-yourself`,children:`Step 1: identify yourself`}),`\n`,_jsxs(_components.p,{children:[`Call `,_jsx(_components.code,{children:`whoami`}),`. It reports the server, whether you are authenticated, and, if not, exactly which tools to call next. Every request you make is tagged with your harness name from the MCP handshake (`,_jsx(_components.code,{children:`X-Kestrel-Client: mcp/\u003charness>/\u003cversion>`}),`), so there is nothing to configure.`]}),`\n`,_jsx(Heading,{level:`3`,id:`step-2-create-the-account-or-log-in`,children:`Step 2: create the account (or log in)`}),`\n`,_jsxs(_components.p,{children:[`New user: `,_jsx(_components.code,{children:`register(email, password)`}),`. Ask the user for their `,_jsx(_components.strong,{children:`work`}),` email; personal domains get a smaller trial and disposable domains are rejected. Generate a strong password and tell the user what it is, or ask them for one.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`HUMAN STEP 1 — the verification code.`}),` Kestrel emails a 6-character code. It only exists in the user’s inbox. Ask them for it, then call `,_jsx(_components.code,{children:`verify_email(code)`}),`. Do not guess or retry random codes.`]})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`verify_email`}),` logs the account in, creates an API key named `,_jsx(_components.code,{children:`mcp-\u003charness>`}),` (saved to `,_jsx(_components.code,{children:`~/.kestrel/config.json`}),` so it survives restarts), and registers the full tool set. Your harness receives `,_jsx(_components.code,{children:`tools/list_changed`}),`; refresh the tool list if it does not do so automatically.`]}),`\n`,_jsxs(_components.p,{children:[`Existing user: `,_jsx(_components.code,{children:`login(email, password)`}),` does the same key creation. Accounts protected by 2FA or SSO cannot be logged in by a tool; the response says so and asks the user to create a key under `,_jsx(_components.strong,{children:`Settings → API Keys`}),` and run `,_jsx(_components.code,{children:`kestrel auth \u003ckey>`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`step-3-see-what-is-left`,children:`Step 3: see what is left`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`get_onboarding_status`}),` returns a checklist (account, API keys, connected integrations, workflows, subscription) and one `,_jsx(_components.code,{children:`next_recommended_step`}),`. Call it whenever you are unsure what to do. `,_jsx(_components.code,{children:`get_account_status`}),` explains the trial (days left, credit used, daily execution cap) and whether anything is blocked.`]}),`\n`,_jsx(Heading,{level:`3`,id:`step-4-connect-integrations`,children:`Step 4: connect integrations`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`list_integrations`}),` shows every integration, its kind, and the fields it needs. Then `,_jsx(_components.code,{children:`connect_integration(name, credentials)`}),`:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Kind`}),_jsx(_components.th,{children:`What happens`}),_jsx(_components.th,{children:`Human step?`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Token (Datadog, PagerDuty, Cloudflare, Jira, Databricks, …)`}),_jsx(_components.td,{children:`Connects immediately with the credentials you pass. Ask the user for the values; never invent them.`}),_jsx(_components.td,{children:`Only to obtain the token`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`OAuth (GitHub, GitLab, Slack)`}),_jsx(_components.td,{children:`Returns a URL.`}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`HUMAN STEP 2:`}),` the user opens it and approves. Then call `,_jsx(_components.code,{children:`wait_for_connection(name)`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`aws`})}),_jsxs(_components.td,{children:[`Returns a CloudFormation launch URL, the equivalent `,_jsx(_components.code,{children:`aws cloudformation create-stack`}),` command, and an `,_jsx(_components.code,{children:`external_id`}),`.`]}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`HUMAN STEP 3`}),` unless you hold AWS credentials for the target account, in which case run the CLI command yourself. Then `,_jsx(_components.code,{children:`connect_integration(name=\"aws\", verify=true, credentials={role_arn, external_id})`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`gcp`})}),_jsx(_components.td,{children:`Returns a Cloud Shell setup script.`}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`HUMAN STEP 3`}),` unless you can run `,_jsx(_components.code,{children:`gcloud`}),` against the project. Then `,_jsx(_components.code,{children:`connect_integration(name=\"gcp\", verify=true, credentials={project_id})`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`oci`})}),_jsx(_components.td,{children:`Returns setup instructions until all five credentials are supplied.`}),_jsx(_components.td,{children:`The user creates an API key in the OCI console.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`kubernetes`})}),_jsxs(_components.td,{children:[`Returns Helm values (containing the operator token) and the `,_jsx(_components.code,{children:`helm install`}),` command.`]}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`HUMAN STEP 3`}),` unless you have `,_jsx(_components.code,{children:`kubectl`}),`/`,_jsx(_components.code,{children:`helm`}),` access to the cluster. Then `,_jsx(_components.code,{children:`wait_for_connection(\"kubernetes\")`}),`.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`wait_for_connection`}),` polls for up to 240 seconds by default (max 600) and returns the current state either way. If it comes back `,_jsx(_components.code,{children:`connected: false`}),`, remind the user what is pending and call it again.`]}),`\n`,_jsx(Heading,{level:`3`,id:`step-5-build-the-first-workflow`,children:`Step 5: build the first workflow`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`generate_workflow(prompt)`}),` turns plain English into a workflow definition. Review it, then `,_jsx(_components.code,{children:`create_workflow(...)`}),` and `,_jsx(_components.code,{children:`activate_workflow(id)`}),`. `,_jsx(_components.code,{children:`test_workflow(id)`}),` runs it with mocked inputs first if the user wants a dry run.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Nothing connected yet?`}),` Pass `,_jsx(_components.code,{children:`simulated=true`}),` to `,_jsx(_components.code,{children:`generate_workflow`}),` and `,_jsx(_components.code,{children:`create_workflow`}),`. The workflow is built as if every integration were connected, can be tested with mocked outputs, and is marked simulated. It cannot be activated until its integrations are actually connected. This is the right move right after signup when the user wants to see whether Kestrel can automate their case before wiring anything up.`]})}),`\n`,_jsxs(_components.p,{children:[`If `,_jsx(_components.code,{children:`generate_workflow`}),` fails because an integration is not connected, the error says so and names both remedies: connect it, or retry with `,_jsx(_components.code,{children:`simulated=true`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`human-steps-summarized`,children:`Human steps, summarized`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Email verification code`}),` after `,_jsx(_components.code,{children:`register`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Browser authorization`}),` for GitHub, GitLab, and Slack.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Cloud IAM or Helm install`}),` for AWS, GCP, OCI, and Kubernetes, when you do not have credentials for the target environment.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Billing.`}),` Subscribing requires card entry in the browser. `,_jsx(_components.code,{children:`get_account_status`}),` returns the URL to hand to the user; you cannot complete checkout.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Everything else, including account creation, key management, every token integration, workflow generation, creation, testing, activation, executions, and approvals, is available to you directly.`}),`\n`,_jsx(Heading,{level:`2`,id:`errors-you-will-see-and-what-they-mean`,children:`Errors you will see and what they mean`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Error`}),_jsx(_components.th,{children:`Meaning`}),_jsx(_components.th,{children:`Do this`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`not authenticated`})}),_jsx(_components.td,{children:`No key or session yet`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`register`}),` or `,_jsx(_components.code,{children:`login`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`subscription_required: …`})}),_jsx(_components.td,{children:`Trial ended or no subscription`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`get_account_status`}),`; hand the billing URL to the user (human step 4)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`… is not connected …`})}),_jsx(_components.td,{children:`A block needs an integration that is not connected`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`connect_integration`}),` + `,_jsx(_components.code,{children:`wait_for_connection`}),`, or retry with `,_jsx(_components.code,{children:`simulated=true`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`wait_for_connection`}),` returns `,_jsx(_components.code,{children:`connected: false`})]}),_jsx(_components.td,{children:`The human step has not been completed`}),_jsx(_components.td,{children:`Remind the user; call it again`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`… requires 2FA or SSO`})}),_jsx(_components.td,{children:`Tools cannot log this account in`}),_jsxs(_components.td,{children:[`The user creates an API key in the web app and runs `,_jsx(_components.code,{children:`kestrel auth \u003ckey>`})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`from-the-terminal-instead`,children:`From the terminal instead`}),`\n`,_jsxs(_components.p,{children:[`Every tool has a CLI twin for agents that shell out rather than speak MCP. Set `,_jsx(_components.code,{children:`KESTREL_AGENT=\u003cyour-name>`}),` so Kestrel can attribute the usage.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`kestrel`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` register`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --create-api-key`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # account + key in one go (prompts for the emailed code)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`kestrel`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` whoami`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`kestrel`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` status`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # onboarding checklist + next step`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`kestrel`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` account`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # trial and credits`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`kestrel`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` integrations`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` list`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`kestrel`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` integrations`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` connect`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` github`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --wait`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # prints the URL, polls until approved`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`kestrel`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` integrations`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` connect`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` gcp`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --bootstrap`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --project-id`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` my-proj`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`kestrel`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` integrations`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` connect`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` gcp`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --project-id`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` my-proj`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`kestrel`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` integrations`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` status`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` aws`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`kestrel`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` workflows`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` generate`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"when a pod crash-loops in prod, run RCA and post to #oncall\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --simulated`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --save`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`kestrel`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` workflows`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` list`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`kestrel`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` workflows`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` activate`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Agent Quickstart","description":"Go from no account to a running workflow using only the Kestrel MCP server, with every human step called out","href":"/workflows/agent-quickstart"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"What you need","slug":"what-you-need","depth":2,"children":[]},{"title":"The sequence","slug":"the-sequence","depth":2,"children":[{"title":"Step 1: identify yourself","slug":"step-1-identify-yourself","depth":3,"children":[]},{"title":"Step 2: create the account (or log in)","slug":"step-2-create-the-account-or-log-in","depth":3,"children":[]},{"title":"Step 3: see what is left","slug":"step-3-see-what-is-left","depth":3,"children":[]},{"title":"Step 4: connect integrations","slug":"step-4-connect-integrations","depth":3,"children":[]},{"title":"Step 5: build the first workflow","slug":"step-5-build-the-first-workflow","depth":3,"children":[]}]},{"title":"Human steps, summarized","slug":"human-steps-summarized","depth":2,"children":[]},{"title":"Errors you will see and what they mean","slug":"errors-you-will-see-and-what-they-mean","depth":2,"children":[]},{"title":"From the terminal instead","slug":"from-the-terminal-instead","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"kestrelai","siteName":"Kestrel AI","title":"Agent Quickstart - Kestrel AI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-10T04:37:50.380Z","originalFileLocation":"workflows/agent-quickstart.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Go from no account to a running workflow using only the Kestrel MCP server, with every human step called out\">\u003cmeta data-mint-head name=\"application-name\" content=\"Kestrel AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kestrelai/5q4sa5gdOZZMTG2D/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/kestrelai/5q4sa5gdOZZMTG2D/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kestrelai/5q4sa5gdOZZMTG2D/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kestrelai/5q4sa5gdOZZMTG2D/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kestrelai/5q4sa5gdOZZMTG2D/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kestrelai/5q4sa5gdOZZMTG2D/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kestrelai/5q4sa5gdOZZMTG2D/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kestrelai/5q4sa5gdOZZMTG2D/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kestrelai/5q4sa5gdOZZMTG2D/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Agent Quickstart - Kestrel AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Go from no account to a running workflow using only the Kestrel MCP server, with every human step called out\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Kestrel AI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.usekestrel.ai/workflows/agent-quickstart\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://usekestrel.ai/og-image.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Agent Quickstart - Kestrel AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Go from no account to a running workflow using only the Kestrel MCP server, with every human step called out\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://usekestrel.ai/og-image.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/kestrelai/5q4sa5gdOZZMTG2D/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Kestrel AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#18181B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.usekestrel.ai/workflows/agent-quickstart\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/workflows/agent-quickstart.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.usekestrel.ai/#organization\",\"name\":\"Kestrel AI\",\"url\":\"https://docs.usekestrel.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/kestrelai/Nv5TRbbmVLTb5lrR/logo/light.svg?fit=max\u0026auto=format\u0026n=Nv5TRbbmVLTb5lrR\u0026q=85\u0026s=9d25c0b9f704cc77893001276fe9c9e6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.usekestrel.ai#website\",\"name\":\"Kestrel AI\",\"url\":\"https://docs.usekestrel.ai\",\"publisher\":{\"@id\":\"https://docs.usekestrel.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.usekestrel.ai/workflows/agent-quickstart#webpage\",\"url\":\"https://docs.usekestrel.ai/workflows/agent-quickstart\",\"name\":\"Agent Quickstart\",\"description\":\"Go from no account to a running workflow using only the Kestrel MCP server, with every human step called out\",\"dateModified\":\"2026-10-10T04:37:50.380Z\",\"isPartOf\":{\"@id\":\"https://docs.usekestrel.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.usekestrel.ai/workflows/agent-quickstart#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.usekestrel.ai/workflows/agent-quickstart#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Workflows\",\"item\":\"https://docs.usekestrel.ai/workflows/create-workflows\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Agent Quickstart\",\"item\":\"https://docs.usekestrel.ai/workflows/agent-quickstart\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.usekestrel.ai/workflows/agent-quickstart#article\",\"headline\":\"Agent Quickstart\",\"name\":\"Agent Quickstart\",\"description\":\"Go from no account to a running workflow using only the Kestrel MCP server, with every human step called out\",\"url\":\"https://docs.usekestrel.ai/workflows/agent-quickstart\",\"mainEntityOfPage\":{\"@id\":\"https://docs.usekestrel.ai/workflows/agent-quickstart#webpage\"},\"image\":\"https://usekestrel.ai/og-image.png\",\"dateModified\":\"2026-10-10T04:37:50.380Z\",\"publisher\":{\"@id\":\"https://docs.usekestrel.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.usekestrel.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Kestrel AI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Kestrel AI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/workflows/agent-quickstart.md","siteName":"Kestrel AI","nav":{"global":{"anchors":[{"anchor":"Blog","href":"https://usekestrel.ai/blog","icon":"newspaper"},{"anchor":"Changelog","href":"https://usekestrel.ai/changelog","icon":"megaphone"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Workflows Quickstart","href":"/quickstart/workflows"},{"title":"Incident Response Quickstart","href":"/quickstart/incident-response"},{"title":"Cloud AI Copilot Quickstart","href":"/quickstart/copilot"}]},{"group":"Workflows","pages":[{"title":"Create Workflows","href":"/workflows/create-workflows"},{"title":"Custom Integrations","href":"/workflows/custom-integrations"},{"title":"Workflow Integrations Setup","href":"/workflows/setup-integrations"},{"title":"Workflow Observability","href":"/workflows/observability"},{"title":"CLI","href":"/workflows/cli"},{"title":"Python SDK","href":"/workflows/sdk"},{"title":"MCP","description":"Manage Kestrel workflows through the Model Context Protocol for AI agent integration","href":"/workflows/mcp"},{"title":"Agent Quickstart","href":"/workflows/agent-quickstart"}]},{"group":"Incident Response","pages":[{"title":"Kubernetes Incident Response","description":"AI-powered detection, root cause analysis, and remediation for Kubernetes incidents","href":"/incident-response/kubernetes"},{"title":"Cloud Incident Response","href":"/incident-response/cloud"}]},{"group":"Cloud AI Copilot","pages":[{"title":"Cloud AI Copilot","href":"/copilot/overview"},{"title":"Kubernetes Investigation","href":"/copilot/kubernetes"},{"title":"Cloud Investigation","href":"/copilot/cloud"},{"title":"Code Investigation","href":"/copilot/code"},{"title":"Cost Analysis","href":"/copilot/costs"},{"title":"Configuration Changes","href":"/copilot/config-changes"}]},{"group":"Integrations","pages":[{"title":"Kubernetes","href":"/integrations/kubernetes"},{"title":"AWS","href":"/integrations/aws"},{"title":"Google Cloud","href":"/integrations/gcp"},{"title":"OCI","href":"/integrations/oci"},{"title":"Cloudflare","href":"/integrations/cloudflare"},{"title":"Slack","href":"/integrations/slack"},{"title":"GitHub","href":"/integrations/github"},{"title":"GitLab","href":"/integrations/gitlab"},{"title":"PagerDuty","href":"/integrations/pagerduty"},{"title":"Jira","href":"/integrations/jira"},{"title":"Confluence","href":"/integrations/confluence"},{"title":"Glean","href":"/integrations/glean"},{"title":"Linear","href":"/integrations/linear"},{"title":"PostHog","href":"/integrations/posthog"},{"title":"Vercel","href":"/integrations/vercel"},{"title":"Railway","href":"/integrations/railway"},{"title":"Fly.io","href":"/integrations/flyio"},{"title":"Nebius","href":"/integrations/nebius"},{"title":"Beam","href":"/integrations/beam"},{"title":"Daytona","href":"/integrations/daytona"},{"title":"Supabase","href":"/integrations/supabase"},{"title":"PlanetScale","href":"/integrations/planetscale"},{"title":"Neon","href":"/integrations/neon"},{"title":"ClickHouse","href":"/integrations/clickhouse"},{"title":"Databricks","href":"/integrations/databricks"},{"title":"Datadog","href":"/integrations/datadog"},{"title":"OpenTelemetry","href":"/integrations/opentelemetry"},{"title":"ArgoCD","href":"/integrations/argocd"},{"title":"Argo Rollouts","href":"/integrations/argo-rollouts"},{"title":"Flux CD","href":"/integrations/fluxcd"},{"title":"Karpenter","href":"/integrations/karpenter"},{"title":"Kyverno","href":"/integrations/kyverno"},{"title":"Trivy","href":"/integrations/trivy"},{"title":"Helm","href":"/integrations/helm"},{"title":"Terraform Cloud","href":"/integrations/terraform"},{"title":"Pulumi Cloud","href":"/integrations/pulumi"},{"title":"Jenkins","href":"/integrations/jenkins"},{"title":"CircleCI","href":"/integrations/circleci"},{"title":"SonarCloud","href":"/integrations/sonarcloud"},{"title":"Okta","href":"/integrations/okta"},{"title":"HashiCorp Vault","href":"/integrations/vault"},{"title":"Infisical","href":"/integrations/infisical"},{"title":"Knowledge Sources","href":"/integrations/knowledge-sources"}]},{"group":"Enterprise","pages":[{"title":"Security \u0026 Compliance","href":"/enterprise/security"},{"title":"On-Premise Overview","href":"/on-premise/overview"},{"title":"On-Premise Setup Guide","href":"/on-premise/setup"}]}]}]},"basePath":"","title":"Agent Quickstart - Kestrel AI","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":[],"chunks":[]}