/iblai-vibe:iblai-api-agent-chatfrom ibl.ai vibe
Wires the hosted iblai-api-agent-chat MCP server into a project to enable live conversations with a deployed ibl.ai agent. Use after configuring an agent to start runtime chat sessions.
Ships in ibl.ai vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Enable live chat with a deployed agent. Unlike the other iblai-* skills
(which call the REST API directly), runtime chat (the agent's tools, RAG and
memory) is served by the hosted iblai-api-agent-chat MCP server. This
skill does the one-time wiring so your assistant can talk to an agent; the conversation
itself then runs through that server's MCP tools.
/iblai-api-agent-* skills; to find an agent's unique_id use
/iblai-api-search.IBLAI_API_KEY — your Platform API Token (from .env; run /iblai-api-login
if it is not set).unique_id — the agent to chat with. Get one from
/iblai-api-search (each result's unique_id), then confirm the choice
with the user.The agent's unique_id goes in the URL, and the server authenticates with one
header, Authorization: Api-Token <key>:
https://asgi.data.iblai.app/mcp/agent-chat/<unique_id>
No agent header is needed. (The older X-Mentor-Unique-Id / X-Agent-Unique-Id
header still works for existing configs; a URL id and a header naming different
agents are refused.)
claude mcp add iblai-api-agent-chat \
--transport http "https://asgi.data.iblai.app/mcp/agent-chat/$MENTOR" \
--header "Authorization: Api-Token $IBLAI_API_KEY"
Add to the project's .mcp.json (or the client's MCP config). Substitute the real
token and unique_id - do not commit secrets:
{
"mcpServers": {
"iblai-agent-chat": {
"transport": "streamable-http",
"url": "https://asgi.data.iblai.app/mcp/agent-chat/YOUR_AGENT_UNIQUE_ID",
"headers": {
"Authorization": "Api-Token YOUR_API_TOKEN"
}
}
}
}
After adding it, the assistant gains the server's
get_mentor_response(prompt, session_id?) tool. Each call is one chat turn:
the agent replies as it does in the chat screen, with its own instructions,
tools and trained documents. The tool returns the full reply text, ending with
a session_id: <id> line (also in the result's structured content).
App stores and connector dialogs give the user no box for a key. On
platforms where OAuth sign-in is on (hosted iblai.app included), the same
URL works with no header at all: the app discovers the sign-in from the
server's 401, registers itself, and opens an ibl.ai page in the browser.
https://asgi.data.iblai.app/mcp/agent-chat/<unique_id>,
and keep its default sign-in (claude.ai: Settings > Connectors > Add
custom connector, Authentication left as OAuth; ChatGPT: chatgpt.com/plugins
Add custom MCP server, Authentication OAuth; Claude Desktop: the same connector dialog).
get_mentor_response works as with a key. The user must
be an active member of the agent's organization; for a main agent shared
with every organization the connection is on the user's organization, picked
on the page when they are on several.What the token can do: chat with the agent in its URL, and nothing else. It is refused by the other MCP servers and by the REST API. The access token lasts an hour and the app refreshes it silently for up to 30 days of inactivity, so the user signs in again only after a month unused or after disconnecting. The turn is attributed to the signed-in user and billed to the connection's organization, exactly as a key's would be.
Registration takes public clients only (token_endpoint_auth_method none,
PKCE S256, https redirect URIs or http on localhost): claude.ai and ChatGPT
both register that way. A client that asks for a secret gets
invalid_client_metadata.
Apps a user connected this way are listed and disconnected with the user's
own session token (Authorization: Token <dm_token>, the browser SDK's
token), never a Platform API Token: each user sees only their own.
# List: app, host, agent, organization, connected and last-used dates, expired flag.
# Standard page envelope (count, next_page, previous_page, results); page_size=,
# and date_filter= / start_date= / end_date= on the connected date.
curl -s "https://api.iblai.app/dm/v1/mcp/connected-apps" \
-H "Authorization: Token $DM_TOKEN"
# Disconnect one: its tokens stop at once; the app must be connected again.
curl -s -X DELETE "https://api.iblai.app/dm/v1/mcp/connected-apps/<id>" \
-H "Authorization: Token $DM_TOKEN" # 204, or 404 when it is not theirs
POST /dm/api/core/session/logout/ ("invalidate all tokens") disconnects
them all and reports the count as tokens_deleted.mcp. Disconnecting the app
on the claude.ai or ChatGPT side revokes the token too.
iblai-api-agent-chat-tutor, iblai-api-agent-chat-advisor), each with its
own unique_id in the URL.session_id from the previous reply to
continue the conversation; the agent sees the earlier turns. Omit it to start
a new conversation. A session belongs to the token's owner and its agent; a
session id of another user, organization or agent is refused.main agents shared with
every organization (visibility "viewable by anyone"). Those are chattable with
any organization's token, and the turn is billed to the caller's organization..env - never commit it; .env and local
MCP config should stay gitignored.iblai-api-* skills; everything else (configure,
search, recommend, profile, analytics, admin) is a direct-REST skill.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub iblai/base --plugin iblai-vibe166 skills in this plugin
/iblai-api-agent-accessManage role-based access to an ibl.ai agent via the platform API — list role policies, search users/groups, and grant/revoke editor, chat, or analytics_viewer roles for users, groups, and emails. Use when controlling who can edit, chat with, or view analytics for an agent./iblai-api-agent-auditRead an ibl.ai agent's audit log via the platform API — a who-changed-what trail filterable by action, actor email, and date range. Read-only. Use when investigating configuration changes to an agent./iblai-api-agent-createCreate a new ibl.ai agent from a template via the platform API — set name, display name, description, categories, visibility, prompts, and LLM provider; returns the new agent's unique id. Read which create fields the caller may write (field-permissions) first, since a create that sends a forbidden field is refused. Use when creating an agent from scratch, checking what a user may set when creating one, then configure it with the other /iblai-api-agent-* skills.Other plugins' skills for the same job