Manage Your AI Support Agent From Your Terminal and Coding Assistant

Sign in to the Agentkit CLI or connect with hosted MCP. Review widget conversations, fix missing answers and test the change in Playground.

Cover Image for Manage Your AI Support Agent From Your Terminal and Coding Assistant

Use the Agentkit CLI to run support tasks in your terminal. Use hosted MCP to give your coding assistant access to the same workspace through browser approval. Start with read access if you only want to review conversations and find missing answers.

Both work on Free and paid plans. The CLI requires Node.js 22 or newer. For a client that supports remote MCP with OAuth, use the hosted MCP setup without installing the CLI.

Sign in to the CLI from your browser

Install the CLI from npm and start browser sign-in:

npm install -g @agikits/agentkit
agentkit auth login --browser
agentkit auth status
agentkit agents list

Choose your workspace on the activation page, check that the code matches your terminal, and approve the scopes you need. The CLI saves a key on your machine. Check the workspace and scopes in auth status before continuing. If you already have a workspace key, use the hidden prompt in agentkit auth login. See the CLI docs for script and CI setup.

Copy the agent ID from agents list. Replace YOUR_AGENT_ID below to create the support alias used in the rest of this guide:

agentkit projects --add support 'YOUR_AGENT_ID'

Connect your coding assistant with hosted MCP

Add https://agentkit.ai/api/mcp as a remote server in your client. For example, in Claude Code:

claude mcp add --transport http agentkit-hosted https://agentkit.ai/api/mcp

Open /mcp in Claude Code and authenticate agentkit-hosted. The MCP setup docs have the steps for Codex, Cursor and other clients.

Sign in and choose the workspace you want the assistant to access. For a conversation review, keep Read and clear Write if it is selected. The usual connection requests both by default. Leave Delete and Export off if they are offered. Ask the assistant which Agentkit workspace it is connected to, then ask it to list that workspace’s agents.

Read access includes individual conversation transcripts, which may contain email addresses, order numbers and other customer information. The assistant's provider receives the tool results. Only connect a workspace whose data your organization allows you to share with that provider. To remove hosted access, revoke the grant in Connected apps.

If your client needs a local stdio process, the CLI can register that separately with agentkit mcp add and the --local option. Local stdio uses your saved key or environment key and still calls the Agentkit API. It starts with read tools. Use --agent with the local setup to limit which agents the process can address. The key itself still has workspace access within its granted scopes. See the local stdio setup for launch flags.

Find an unanswered question in widget chats

In the CLI, pass --source widget so your sample contains website conversations:

agentkit conversations list support --source widget --limit 20
agentkit conversations get support 'YOUR_CONVERSATION_ID' --source widget
agentkit sources list support

Or give your assistant a bounded review task:

List up to 20 recent widget conversations for my support agent. Open the conversations where a visitor asked about returns. Identify questions the agent left unanswered or answered without a clear policy. For each example, give me the conversation ID so I can check the transcript. Then list the knowledge sources that look relevant.

Read the cited transcripts and compare the answer with the approved policy. A relevant source may already exist under a different name. If the source is current, check whether the chatbot simply missed it before adding another copy. If the source is outdated, correct it in place. Add a source only when the approved answer is missing.

Fix the source and test the answer

With Read and Write on your CLI key, you can inspect an existing source and replace its stored text with an approved file. Check the source ID and current content first:

agentkit sources get support 'YOUR_DOCUMENT_ID'
agentkit sources update support 'YOUR_DOCUMENT_ID' --file approved-returns.md

Use that example for a text source. For an approved answer with no existing source, add it as text:

agentkit sources add-text support --title "Returns policy" --file approved-returns.md

New text and Q&A sources are available without a website re-crawl. If the correction was made on your website, use agentkit train support to re-crawl the agent's web sources. Training uses credits. agentkit train support --status checks progress without starting a run.

Test the exact question from the reviewed conversation. For example:

agentkit chat support "Can I return an item bought on sale?"

The CLI sends that test to Playground by default. Compare the answer with the approved source, then send the same question through the published widget you reviewed. The second check exercises the channel where visitors encountered the problem.

Gratis aan de slagGeen creditcard nodig