Docs AI Features

AI Features

In the full-page Assistant, paste a PNG, JPEG, GIF or WebP image into the message field to attach it. Image files show a thumbnail, name and size. Other files show a type icon. Remove a file with its own button;
keyboard focus moves to the next available file or back to the composer. Document
links use compact cards, and an image preview can be opened with Enter. While a
response is being processed, a small flock forms the Mockarty mark; it stays still
when reduced motion is enabled in your system. This indicates activity, not a
percentage of work completed.

Connection settings use the same dialog controls as the rest of the application: keyboard focus stays inside, Escape closes the dialog, and focus returns to the button that opened it. Save, Cancel and Reset to Defaults remain available. Leaving the chat closes its connection dialog. If saving cannot be confirmed, the settings window stays open with your edits and displays an error. The application reports the settings as applied only after confirming the save. The assistant settings panel can be reopened after navigating to another page and returning to the chat.

Reset to Defaults applies only after the server defaults and local removal are confirmed. Closing the dialog, editing a field, or changing account or Space retires an older pending reset. Replies from an earlier account or Space do not update the current conversation; returning to the original Space can retrieve an identified pending reply without sending it again. Older pending replies without a confirmed account and Space are not restored automatically.

Conversation tabs keep separate unsent drafts. Use the arrow keys, Home or End to select a conversation. Text drafts are saved in this browser; attached file contents are not saved across a reload. In the assistant setup panel, expand Show details to inspect models, tools and connections. Status and required setup steps remain visible.

Mockarty can help you generate mocks, write test scripts, diagnose errors and analyze test results. Start with an AI action on the page where you work, or open Agent Chat for a longer task. Some AI actions have a settings button for choosing a model or adjusting the request.

When the model streams text, the full Agent Chat page shows the reply as it is written. The conversation history records the final reply once it arrives.

A tracked Agent Chat continues when you refresh or leave the page; use the stop action to request cancellation. In a cluster, a leader change does not restart work still running on another node. The task remains owned until its result and execution history finish saving. If a node fails, inspect any external action with an unknown outcome before repeating it.

Agent Chat — response
Agent Chat — approval

About URLs in examples: All examples use localhost:5770 as the default Mockarty address. If your instance runs on a remote server, replace localhost:5770 with its actual address (e.g. https://mockarty.company.com or http://192.168.1.50:5770). See Tips & Useful Features for details.


What Is an AI Agent? Why Would I Need One for Testing?

An AI agent is a software assistant powered by a large language model (LLM) that can understand natural-language instructions and take actions on your behalf. Instead of clicking through menus and filling out forms, you describe what you need in plain English (or any language), and the agent figures out how to do it.

In the context of API testing and mocking, an AI agent can:

  • Generate mocks from a description – “Create a mock for GET /api/users that returns 10 users with realistic names and emails” becomes a fully configured mock in seconds.
  • Diagnose failures – paste an error response and the agent explains the root cause and suggests a fix.
  • Write test scripts – the agent examines your request/response and writes assertions automatically.
  • Run security scans – ask the agent to fuzz an endpoint and it configures and launches a security test.
  • Query databases, call APIs, send notifications – the agent has access to 90+ built-in tools that let it interact with real systems on your behalf.

You do not need any AI or machine learning expertise. If you can describe what you want in a chat message, the agent can help.


Quickstart: Your First AI-Generated Mock

Follow these steps to create your first mock using AI. Total time: under 2 minutes.

Prerequisites: An admin must have configured at least one LLM profile (see Getting Started).

  1. Open the Mock Constructor – navigate to Mocks in the sidebar, then click Create Mock.
  2. Click the “Generate Mock” button – it is located in the toolbar above the mock editor.
  3. Describe what you need – for example:

    Create a REST mock for GET /api/products that returns a JSON array of 5 products. Each product should have an id (integer), name (realistic product name), price (decimal between 10 and 500), and inStock (boolean).

  4. Review the generated mock – the AI fills in the route, HTTP method, response body with Faker functions, and a 200 status code.
  5. Click Save – your mock is live. Send a request to http://localhost:5770/stubs/sandbox/api/products to see it in action.

That is it. You can iterate by clicking Improve Mock to add error responses, edge cases, or additional conditions.


Table of Contents


Getting Started

AI features require at least one enabled LLM profile. Navigate to Admin → AI & LLM → LLM Profiles to create one. Mockarty supports these LLM providers:

Provider Description API Key Required
OpenAI GPT-4o, GPT-4o-mini, and other OpenAI models Yes
Anthropic Claude Sonnet, Claude Haiku, and other Anthropic models Yes
Google Gemini models via Google AI Studio Yes
OpenRouter Access 200+ models through a single API key Yes
Ollama Run models locally (Qwen, Llama, Mistral, etc.) – no data leaves your machine No
Mistral Mistral AI models Yes
Groq Ultra-fast inference for supported models Yes
DeepSeek DeepSeek Flash and other API models Yes
Qwen Models behind a self-hosted OpenAI-compatible gateway Depends on gateway
Z.AI GLM models with a standard API key Yes
Z.AI · GLM Coding Plan / BigModel · GLM Coding Plan Dedicated global and China-region Coding Plan endpoints Yes
Kimi · Moonshot AI Kimi models on the global or China-region API Yes
xAI · Grok Grok models on the xAI chat API Yes
NVIDIA NIM Models hosted by NVIDIA Yes
YandexGPT / GigaChat Models from Yandex Cloud and Sber Yes
Custom Any OpenAI-compatible endpoint (e.g., vLLM, LocalAI, LiteLLM) Depends

Once a profile is configured, AI buttons appear throughout the platform.

Admin panel — AI & LLM Configuration

Agent Chat — AI Assistant interface


In Guardrails, changing a built-in rule keeps keyboard focus and the open list position. Group and individual rule changes remain drafts until you save; the master enable switch is applied immediately.

The Remote Agents panel refreshes for the current account and Space. Enable and disable controls show the confirmed state after the server responds. If a list refresh fails, the next successful refresh restores the inventory, including when the agents have not changed.

On the Agent Chat page, Escape closes the Assistant settings panel and returns keyboard focus to its header button. In Admin → AI & LLM, use the left and right arrows to switch subsections, or Home and End to reach the first and last. On narrow screens the subsection strip scrolls horizontally. Switching subsections does not save profile or agent edits.

LLM Profiles

Each profile defines:

  • Provider — which LLM service to use
  • Model — the default model (e.g., gpt-4o, claude-sonnet-4-20250514, qwen3:8b)
  • API Key — credentials (not needed for Ollama)
  • Base URL — override for self-hosted or custom endpoints
  • Available Models — models users can choose from in this profile
  • Enabled — toggle profile on/off
  • Reasoning — how hard the model thinks before answering where a task needs
    depth: planning a test strategy, judging a verdict, reviewing code, designing
    tests, analysing a run. Auto (the default) lets each task use its own level;
    Low / Medium / High fix the level for this profile; Off switches it
    off for the extra reasoning requested by Mockarty. For Ollama, Off
    explicitly disables thinking; if the model rejects that control, the request
    returns an error. With Auto, quick requests can use the model’s own
    default thinking mode, so response time depends on the model. Reasoning is
    billed as output tokens.

Routine request log entries for OpenAI-compatible providers, OpenRouter, Ollama and YandexGPT omit the configured endpoint address. Check Base URL in the profile when troubleshooting the destination.

For a GLM Coding Plan key, choose the Coding Plan provider for the account’s region. For a standard Z.AI API key, choose Z.AI. The selection fills in the corresponding address and default model.

On providers with a model catalog, choose Fetch models, search and tick the models you want to offer, then choose Apply model selection and save the profile. This fetches a list from the provider’s standard address using the API key in the form or the saved key for that same address. Local Ollama uses its default port and needs no key. The default model is selected separately. Models you added manually that are absent from the catalog stay in the profile. If fetching is unavailable, enter model IDs with Add model.

The connection test for a saved profile uses its reasoning setting. An empty text response from the model is a failed check. Save profile changes before testing; for an Ollama model that supports thinking, you can explicitly select Off.

If only one profile is enabled, it’s used automatically. When multiple profiles exist, users select which one to use per AI feature.

For ordinary budgeted assistant responses, increasing the task budget does not increase the response size set in the profile. A small remaining budget can shorten the response.

For a new DeepSeek profile, the provider selector suggests deepseek-flash and
https://api.deepseek.com/v1. You can enter another model or endpoint. Changing
the provider updates suggestions you have not edited. It does not replace
a model or address you have already entered;
check both fields before saving. Existing saved profiles keep their model choice.

Namespace profiles. Besides the server-wide profiles the admin manages, a
namespace owner can add the team’s OWN profiles in Autonomous Missions →
Capacity
— the team’s API key, its proxy, its custom headers, and its model choice.
Agents working in that namespace prefer these over the server pool (the
starred profile is tried first); other namespaces never see them, and API
keys, proxy credentials, and custom-header values are write-only and never
displayed back. When field encryption is enabled by the administrator, all
three are encrypted at rest.
Header names remain visible so owners can audit which integrations are set.
Delete the namespace
profiles and agents silently fall back to the server-wide ones.

When creating a namespace profile or agent, a connection failure may leave the result unconfirmed even if the server saved it. The editor keeps your draft and refreshes the list, while ordinary Save stays blocked. Closing and reopening the dialog does not retry the request. If you need a separate item, choose Start a separate creation, read the warning and fill in the new blank form. Changing namespace closes the old editor so its draft cannot be saved into the new namespace.

Choosing the right profile:

  • For quick operations (script generation, error diagnosis): use a fast model like gpt-4o-mini or claude-haiku
  • For complex analysis (performance analysis, security audit, report generation): use a powerful model like gpt-4o or claude-sonnet
  • For cost-sensitive environments: use Ollama with a local model
  • For experimentation: OpenRouter provides access to many models through a single API key

Model Selection

You can choose which LLM model to use at two levels:

Per AI Feature

Every AI button (Generate Mock, Diagnose Error, etc.) has a gear icon that lets you select:

  1. LLM Profile — which provider and credentials to use
  2. Model — which specific model within that profile

Different features can use different models. For example, use a fast model for script generation but a powerful model for security analysis.

In Agent Chat

The agent chat widget has a model selector in the header. You can switch models mid-conversation — the new model applies to subsequent messages while the conversation context is preserved.

A namespace can also pin the chat endpoint to one profile: an administrator assigns a profile to the agent.chat component (the same per-component assignment used for the coder components), and every assistant chat request then uses it — the header selector still overrides for that conversation. If the assigned profile is renamed or deleted, chat falls back to the namespace default instead of failing, and the header selector keeps working.

If the server cannot read the component assignment settings, the chat request stops with a temporary-unavailability error before contacting a model. This differs from a successfully read setting with no usable assignment: only that case uses the normal default.

When the full-page Assistant asks for approval, review the listed tools and their inputs. Approving or declining applies to that group of calls and continues the same message.

Finish or clear your current draft before using Undo to this message in the Assistant.

In the full-page Assistant, Undo to this message returns your message to the composer, including references to any uploaded attachments. Check the draft before sending it again. Uploads expire after 30 minutes, so attach the original file again if its temporary copy has expired.

Custom Agent Model Binding

Admins can bind a specific LLM profile and model override to a custom agent. When a message is routed to that agent, its bound model is used automatically, regardless of the user’s default selection. See LLM Profile Binding.

Computer Use status in Desktop

The assistant’s local Computer Use status shows whether the current configuration, macOS permissions, helper and stop policy could be checked. Select the status to open the Desktop control panel. If a check fails or the effective policy cannot be read, the status stays unavailable rather than announcing readiness. An empty application allowlist or a policy without snapshot access does not establish readiness.

The observation belongs to the current workspace and signed-in user. Changing workspace, Desktop profile or account retires the previous status while new checks run; leaving the page cancels its pending checks. A status indicator does not authorize an action or change macOS permissions, application allowlists or the operator stop policy.

For local actions requested in Harness or Agent Chat, open Desktop → Control Panel → Computer Use when the action requires approval. The approval card shows the application, window, element and proposed change. After approving, check Recent actions for the result. A Harness session needs Full access and the Mockarty MCP connection to request these actions.

An MCP client using the computer_use group can discover executors with get_mesh-targets before calling post_computer-use_execute with an explicit executor. Device-mesh read permission still applies; discovery grants no execution rights. The targets observation returns bounded application/window metadata and keeps the actual executor reference. Check truncated and returnedTargetCount; if the list is incomplete, ask an operator to narrow the application policy or inspect a known window with a fresh snapshot on the same executor. Repeating discovery alone does not guarantee that omitted windows will appear. value.targetState is no_eligible_windows when a complete search on that executor found no open window permitted by the current policy. Open an already allowed app window on the selected host, then check again. incomplete means the result could not cover every target. If the tool returns an error code, use that code to check the helper, permissions or stop policy.

Local coding (Desktop)

A local mission run on this computer uses the provider and model from Desktop → Control Panel → AI and models → Local coding. The default provider and model are deepseek and deepseek-chat. Running a session requires an admitted local host and configured access to the model. A provider/model named by the run envelope still wins over the saved setting. This card exists only in the Desktop app; an admin-node installation has no local coding executor and no such setting.

The setting is stored, not read from the environment at request time. Advanced/headless option: MOCKARTY_LOCAL_CODING_PROVIDER and MOCKARTY_LOCAL_CODING_MODEL seed the setting on the first start only; change the values in the UI afterwards.

A local coding session uses the tools admitted to that session. Mockarty MCP is unavailable in a local coding session without session authorization. Server-run missions can use Mockarty MCP through their own Space-scoped authorization.

Meeting agent mode

What the agent does after a meeting transcript is decided in Settings → AI → AI & Meetings → Meeting agent for each Space (off, suggest or auto). A saved value always wins, including a saved suggest. Spaces without a saved value inherit the installation default. For a headless installation, the advanced option MOCKARTY_MEETING_AGENT seeds that default on the first start only; the per-Space setting in Settings → AI → AI & Meetings → Meeting agent always wins.


AI Buttons Reference

Mock Constructor

Button What It Does When to Use
Generate Mock Describe what you need in natural language → AI creates a complete mock with routes, conditions, faker fields Starting from scratch or prototyping quickly
Improve Mock Send your current mock to AI → get suggestions for error responses, edge cases, faker enrichment After creating a basic mock, to make it more realistic

API Tester

Button What It Does When to Use
Generate Script AI writes a test script based on your request/response. Supports mk.* scripting API and Visual Script Builder format After executing a request, to add assertions
Generate Perf Script AI writes a k6-compatible performance test with VU stages, checks, thresholds Planning a load test for an endpoint
Diagnose Error Send a failed request/response to AI → get root cause analysis and fix suggestions When you get unexpected errors (4xx/5xx)
Analyze Report AI analyzes test run results for release readiness: risk assessment, root causes, recommendations After a test run completes, before deciding to release

Fuzzing

Button What It Does When to Use
Analyze Finding AI reviews a single security finding: severity, impact, remediation Understanding a specific finding
Batch Analyze Select multiple findings → AI analyzes all with executive summary Reviewing multiple findings at once
Batch Auto-Triage Select findings → AI classifies each as confirmed / false_positive / fixed / accepted Quickly triaging a large findings list

Recorder

Button What It Does When to Use
Analyze Traffic AI reviews recorded API traffic for patterns, chains, anomalies After recording a session, to understand traffic flow
Security Audit AI performs security analysis on recorded traffic Checking recorded traffic for vulnerabilities
Find Scenarios AI identifies test scenarios from recorded request patterns Creating test cases from real traffic

Performance

Button What It Does When to Use
Analyze Results AI reviews load test metrics (latency, error rate, APDEX) with actionable recommendations After a performance test completes

AI Settings (Gear Button)

Every AI button has a gear icon that opens a settings panel with three controls:

AI Settings Modal

1. AI Profile

Select which LLM profile to use for this specific operation. Different profiles may have different models (fast vs. smart) or different cost tiers.

Example: Use a fast model for script generation but a powerful model for security analysis.

2. Custom Prompt

Add additional instructions for the AI. This is appended to the system prompt and lets you customize the AI’s behavior without changing any code.

Practical examples:

Use Case Custom Prompt
Language “Write the response in Russian” or “Respond in Japanese”
Focus area “Focus specifically on SQL injection vulnerabilities”
Format “Output the result as a numbered list with severity ratings”
Domain context “This is a healthcare API, pay attention to HIPAA compliance”
SLA validation “Compare against our SLA: p95 < 200ms, error rate < 0.1%”
Style “Use our company’s coding style: camelCase, JSDoc comments”
Detail level “Give a brief summary, no more than 3 paragraphs”

The custom prompt is saved per feature — your “Generate Script” prompt won’t affect “Diagnose Error”.

3. MCP Tools

If your admin has configured MCP Marketplace tools, you can select which external tools the AI can use during this operation. When tools are selected:

  1. They are sent to the LLM alongside your request
  2. The LLM may call tools during generation (e.g., querying a live API, fetching real data)
  3. Tool results are fed back to the LLM for a more accurate response
  4. The final response incorporates real-time data from the tools

Example: You have an OpenAPI tool pointing at your staging server. When generating a mock, the AI can call the real API to understand response structure, then create a mock that matches the actual behavior.

Each feature stores its tool selections independently — tools enabled for “Generate Mock” don’t affect “Diagnose Error”.


MCP Marketplace

What Is the MCP Marketplace?

The MCP Marketplace is a tool integration system that lets your admin connect external APIs, services, and AI agents to Mockarty’s AI features. Once connected, their capabilities become tools that the AI can call during any operation.

The core idea: Instead of the AI only having its own knowledge, it gains the ability to call real APIs, query databases, interact with external services, and collaborate with other AI agents — all during a single AI operation.

Example workflow:

  1. Admin registers your staging API’s OpenAPI spec in the marketplace
  2. Each endpoint in the spec becomes an available tool (e.g., GET /api/users → getUsers tool)
  3. When you ask the AI to “generate a mock for the users API,” it can call the real getUsers endpoint
  4. The AI sees the actual response structure, field types, and realistic data
  5. It generates a mock that accurately mirrors your real API

MCP Marketplace Page

Source Types

The marketplace supports six integration types, each converting a different protocol into AI-callable tools:

Source Type What It Connects How Tools Are Created Best For
MCP Server Model Context Protocol server Server reports its own tools via JSON-RPC Purpose-built AI tool servers (e.g., Playwright, file system access, database tools)
OpenAPI REST API (Swagger/OpenAPI spec) Each endpoint becomes a tool automatically Any HTTP API with documentation
WSDL SOAP Web Service Each SOAP operation becomes a tool Legacy enterprise services
gRPC gRPC service Discovers methods via server reflection; tool calls proxied as real gRPC requests Microservice APIs
A2A Agent External AI agent Agent’s capabilities become tools Multi-agent AI workflows
RAG Knowledge base (RAGFlow, AnythingLLM, Dify, R2R) Adapter auto-discovers search/list tools Company documentation, API specs, coding standards. See Knowledge Base (RAG) for a detailed setup guide.

How Tools Are Created from APIs

OpenAPI (REST APIs)

When you register an OpenAPI/Swagger spec URL, Mockarty:

  1. Fetches and parses the spec (JSON or YAML)
  2. Converts each endpoint into a tool:
    • Tool name = operation ID or method + path (e.g., getUserById)
    • Tool description = endpoint summary from the spec
    • Tool inputs = path params, query params, headers, request body — all with types from the spec
    • Tool tag = first OpenAPI tag (for grouping)
  3. When the AI calls the tool, Mockarty constructs a real HTTP request and executes it

Example: An OpenAPI spec with GET /api/users/{id} becomes a tool named getUserById with an id parameter. The AI calls it with {"id": "123"}, and Mockarty makes the real HTTP request, returning the response to the AI.

WSDL (SOAP Services)

When you register a WSDL URL, Mockarty:

  1. Parses the WSDL document
  2. Extracts all operations from port types
  3. Creates tools with soap_ prefix (e.g., soap_GetCustomerInfo)
  4. Builds the SOAP XML envelope automatically when the AI calls the tool

This lets the AI interact with legacy SOAP services without knowing XML or SOAP protocols — it just passes JSON parameters.

MCP Server

MCP (Model Context Protocol) servers are purpose-built tool providers:

  1. Mockarty connects to the server via JSON-RPC
  2. Calls tools/list to discover available tools
  3. Each tool has a name, description, and JSON Schema input definition
  4. Tool calls go through tools/call with JSON-RPC

Stateful sessions: MCP servers can maintain state across tool calls within a single conversation. For example, a Playwright MCP server can open a browser in one tool call and navigate pages in subsequent calls — all within the same chat session.

A2A Agent

Agent-to-Agent integration connects to external AI agents:

  1. Mockarty fetches the agent card from /.well-known/agent.json
  2. The agent’s skills become available tools
  3. Tool calls are proxied to the external agent

Custom Headers and Credential Overrides

Many external APIs require authentication. Mockarty handles this at two levels:

Server-level authentication (set by admin):

Auth Type What It Sends
None No auth headers
Bearer Authorization: Bearer {token}
API Key Custom header (e.g., X-API-Key: {key})
Basic Authorization: Basic base64(user:pass)
Custom Headers Any set of headers (e.g., {"X-Tenant": "prod", "Authorization": "..."})

User-level header overrides:

Each user can override server authentication headers per feature. This is useful when:

  • Different team members need different credentials (e.g., dev vs. staging)
  • You want to test against different environments
  • A tool needs per-user API keys

How to set custom headers:

  1. Open the AI settings gear for any feature
  2. In the MCP Tools section, expand a server’s “Custom Headers” area
  3. Add or override headers with key-value pairs
  4. Click Save

Your header overrides are merged on top of the server’s default headers at execution time. If you set Authorization: Bearer my-token, it replaces the server’s default auth for your requests only.

AI Settings Custom Headers

Tool Lifecycle

Once a server is registered in the marketplace:

  1. Discovery: A background worker refreshes tool lists periodically (default: every 2 hours, configurable per server)
  2. Health check: The worker also checks server connectivity and updates status (online, offline, error)
  3. Caching: Discovered tools are stored in the database for fast loading
  4. Selection: Users select which tools to enable per AI feature via the settings gear
  5. Execution: When the AI calls a tool, Mockarty routes the call through the appropriate adapter
  6. Result: Tool output is returned to the AI for incorporation into the final response

Admins can trigger manual health checks and tool refreshes from the marketplace admin page.


AI Agent System

Overview

Use Agent Chat when one AI action is not enough. Describe the outcome you want; the agent can take several steps and show you the tools it uses. It can:

  • Route your request to a specialized sub-agent
  • Execute multiple tool calls in parallel
  • Maintain conversation context across messages
  • Run background tasks asynchronously
  • Use available tools for mocks, API tests, database queries, notifications and more

Agent Chat Widget

The floating chat widget in the bottom-right corner connects you to the AI agent system.

In compact and expanded chat, blue marks beside the messages jump through the recorded conversation. Focus a mark, move with the arrow keys, then press Enter to jump. These controls do not send messages or start tools. Closing the chat stops its event navigation; reopening uses the current conversation. The delegation tree remains available inside its recorded messages.

In compact chat, Media and actions is collapsed by default. Expand it when you need advanced tools; the tools scroll inside their own area so the conversation and message box remain available. Collapsing the section does not cancel or repeat an action. Start is disabled when the selected source is unavailable, permission was denied, or no conversation you own is selected. The reason is shown in the tools area; a permitted browser permission prompt still happens only after you explicitly start.

Changing the interface language also updates unavailable-source explanations and tooltips. After a mission control action, Mockarty rereads the full card so the workbench reflects the saved state; old action buttons stay unavailable during that read.

When the assistant starts an autonomous mission or creates a schedule, the conversation shows a live mission or schedule card with its actions. See Missions from the assistant chat.

For requests that change data or start tests, confirm completion from tool results and the saved task status. A text reply alone does not prove that an action ran.

Confirm Clear Chat in the conversation you intend to clear. If you switch conversations or change your session while the confirmation is open, the old confirmation is ignored; start the action again in the intended conversation. Closing and reopening the chat settings also cancels an older profile load, so it cannot replace your new selection. A delayed response for a previously selected model profile is ignored after you choose another profile or change workspace.

Agent Chat Widget

How it works:

  1. Type a message describing what you need
  2. The system routes your message to the most appropriate sub-agent
  3. The agent analyzes your request and may call tools (you’ll see tool calls in the chat)
  4. If tool calls require approval, you’ll be prompted to approve or decline
  5. The agent returns a response incorporating tool results
  6. The conversation context is preserved — follow-up messages build on previous context

Key features:

  • Streaming responses — the answer appears as it is generated
  • Tool call transparency — see which tools are called and their results
  • Tool approval — when a tool requires approval, you can accept or decline the request
  • Session persistence — close the chat and come back later, context is preserved
  • Multiple sessions — start new conversations or continue existing ones

Sub-Agent Architecture

Some requests go to a specialist agent for a particular kind of work, such as testing or analysis. The chat selects a specialist and shows the tools it uses. You can keep talking in the same conversation without choosing an agent yourself.

User Message "Start fuzzing /api/search for SQL injection" Assistant Analyzes keywords, routes to the best sub-agent. Falls back to handling general requests directly. mock_builder Mock CRUD, Faker api_tester Collections, runs fuzzer Security scans perf_tester Load tests, k6 recorder Traffic capture analyzer Read-only insights code_generator From specs db_specialist SQL, Mongo, Redis web_crawler Fetch and parse api_client HTTP, gRPC, MQ utility_belt Data transforms notifier 12+ channels contract_tester Spec validation 90+ Built-in Tools Mock CRUD, test runners, DB queries, notifications, data utils MCP Marketplace Tools OpenAPI, gRPC, WSDL, MCP servers, A2A agents, RAG Each sub-agent has a filtered tool set. The Assistant has access to all utility and notification tools. Custom agents (admin-created) are checked first during routing and take priority over built-in sub-agents.

How It Works

When you send a message, the Assistant routes it to the most appropriate sub-agent based on keywords in your message. Each sub-agent has:

  • A domain-specific system prompt that guides its behavior
  • A filtered tool set containing only the tools it needs
  • Routing keywords that determine when it is activated

If no sub-agent matches, the Assistant handles the request directly with access to all utility, database, and notification tools.

Built-in specialists

The chat selects the specialist for you; these are the ones you will meet most often.

Sub-Agent Domain What It Does Example Requests
mock_builder Mock management Creates, updates, and manages HTTP/gRPC/MCP/SOAP mocks. Generates mocks from OpenAPI specs. Uses Faker functions for dynamic data. Tests and validates mock configurations. “Create a mock for GET /api/users that returns 10 users with email and role”
api_tester API testing Manages test collections and test suites. Runs tests and reports results. Imports Postman and OpenAPI collections. Supports test assertions and environments. “Run my login test collection and show which tests failed”
recorder Recording Records and replays API traffic, manages proxy sessions, exports to HAR/collections/test scripts. Supports reverse proxy, forward proxy with MITM, WebSocket/SSE recording. “Start recording traffic from my staging server on port 8080”
fuzzer Security testing Configures and runs security fuzzing campaigns against APIs. Finds vulnerabilities (SQL injection, XSS, etc.). Lists, triages, and classifies findings by severity. “Start fuzzing my /api/search endpoint for SQL injection”
perf_tester Performance testing Runs load and stress tests with configurable virtual users. Generates k6-compatible test scripts. Compares performance metrics across runs (latency, throughput, error rate). “Run a load test against /api/orders with 50 VUs for 2 minutes”
contract_tester Contract testing Validates mocks against API specifications, verifies provider compatibility, checks backward compatibility. Supports OpenAPI, gRPC proto, GraphQL schemas. “Validate my mocks against the OpenAPI spec to check for breaking changes”
analyzer Analysis Read-only analysis of mocks, test results, logs, API specs, and fuzzing findings. Provides structured recommendations with markdown tables. Can query the database for insights. “Analyze my last test run — what failed and why?”
code_generator Code generation Generates mock configurations from OpenAPI, gRPC (.proto), and WSDL specifications. Creates standalone mock servers. Previews generated output before applying. “Generate mocks from this OpenAPI spec: https://api.example.com/swagger.json"
db_specialist Database queries Queries databases to support testing workflows. Supports PostgreSQL, MySQL, ClickHouse, MongoDB (via Atlas Data API), Elasticsearch, OpenSearch, Redis, and more. Lists tables, executes read-only queries. “Show me all users in the staging database where status is active”
web_crawler Web content Fetches and parses web pages using a lightweight HTML parser (no headless browser). Extracts text, links, tables, and structured content. Supports CSS selectors for targeted extraction. “Crawl the API docs at https://docs.example.com and list all endpoints”
api_client API calling Calls HTTP/REST, gRPC, GraphQL, Kafka, RabbitMQ, and MCP APIs. Discovers services via reflection/introspection. Publishes and consumes messages. Useful for testing real APIs from the chat. “Call GET https://api.staging.example.com/health and show the response”
utility_belt Data utilities Data transformation and generation tools. Format/validate JSON and XML. Encode/decode Base64, URL, HTML. Decode JWT tokens. Convert timestamps. Generate UUIDs, hashes, passwords. Test regex patterns. Diff texts. “Decode this JWT token: eyJhbGci…”
notifier Notifications Sends notifications and alerts to 12+ channels: email (SMTP), Slack, Microsoft Teams, Google Chat, Mattermost, Cisco Webex, Telegram, Discord, PagerDuty, Opsgenie, Jira, and generic webhooks. “Send a Slack message to our #testing channel: all smoke tests passed”
orchestrator General Handles general questions, greetings, and requests that don’t match a specific sub-agent. Has access to all utility, database, notification, cache, and todo tools. Routes complex tasks to specialists. “What can you help me with?”

How agent routing works

Routing is automatic — just describe what you want in plain language and
the assistant hands the request to the specialist best suited for it. If
nothing specific fits, it answers directly with its general tools. Admins
can add custom agents; when a custom agent matches, it takes priority over
the built-in ones.

Built-in Tools Reference

The agent system includes 90+ built-in tools organized by category. Each sub-agent has access to a subset of these tools relevant to its domain.

Mock Management Tools (via MCP)

Tool What It Does
create_mock Creates or updates a mock endpoint with routes, conditions, responses, and Faker functions. Use timeoutMs for the time budget when supplying a flat response script.
get_mock Retrieves a complete mock configuration by ID
list_mocks Lists all mock configurations with optional pagination
delete_mock Deletes a mock by ID (recoverable from the Recycle Bin)
bulk_delete_mocks Deletes many mocks in one call by their IDs
restore_mock Restores a previously deleted mock; requires write access
test_mock Sends a test request to a mock and returns the response. Pass ordinary HTTP headers as a headers object with string values.

For test_mock, prefer route and namespace or mockId. A full url can target a remote resolver, but it does not receive your Mockarty API key or session token. Redirects remain subject to the target access policy; they cannot carry platform credentials to a different origin.

Store Management Tools (via MCP)

Tool What It Does
get_global_store Gets all key-value pairs from the Global Store
add_to_global_store Adds key-value pairs to the Global Store
get_chain_store Gets all key-value pairs from a Chain Store
add_to_chain_store Adds key-value pairs to a Chain Store

Code Generation Tools (via MCP)

Tool What It Does
generate_from_openapi Creates mocks from an OpenAPI/Swagger spec (URL or inline JSON), one per operation
generate_from_asyncapi Creates messaging mocks (Kafka, RabbitMQ, NATS) from an AsyncAPI spec
generate_from_mocks Builds an OpenAPI 3.0 or AsyncAPI specification FROM your existing mocks (the reverse of generate_from_openapi): routes become paths, each mock’s response becomes the operation’s example and status code. Read-only; names the mocks it could not express instead of inventing them
post_generators_openapi_preview Shows what an OpenAPI spec would generate, without creating anything
post_generators_asyncapi_preview The same preview for an AsyncAPI spec
post_generators_graphql_preview The same preview for a GraphQL schema

For example, mock_bootstrap_from_spec accepts specSource.content, a URL, or an uploaded file ID. Its mocks list contains only the mocks saved by that import. To repeat a generation, use mergeUpdate to preserve edits or forceUpdate to replace conflicts.

Template and File Tools (via MCP)

Tool What It Does
upload_template Uploads a Go template file for use in mock responses
get_template Gets the content of an uploaded template file
delete_template Deletes an uploaded template file
list_templates Lists all uploaded template filenames
read_file Reads your own temporary file uploaded during a chat session; available with read-only access

API Testing Tools

Tool What It Does
list_collections Lists API test collections
run_collection Runs a test collection and returns results
list_test_runs Lists completed test runs with pass/fail status
import_postman Imports a Postman collection
import_openapi Imports endpoints from an OpenAPI spec
import_insomnia Imports an Insomnia export
import_curl Turns cURL command lines into requests
build_api_collection Creates a test collection with requests, headers, and assertions
update_collection_request Updates a saved request’s requestData, preRequestScript, or testScript. An empty script clears it. Set preScriptEnabled or testScriptEnabled to change whether a saved script runs.

Fuzzing Tools

Tool What It Does
start_fuzzing Starts a security fuzzing session against an API
stop_fuzzing Stops a running fuzzing session
list_fuzz_results Lists fuzzing session results
list_fuzz_findings Lists security findings from fuzzing
triage_fuzz_finding Classifies a finding (confirmed, false_positive, fixed, accepted)
configure_fuzzing Generates fuzzing configuration with seed requests

Performance Testing Tools

Tool What It Does
run_perf_test Runs a load/performance test
list_perf_results Lists performance test results
compare_perf_results Compares metrics across multiple test runs

Recorder Tools

Tool What It Does
start_recording Starts a new recording session with proxy configuration (reverse/forward/MITM)
stop_recording Stops an active recording session
list_recording_sessions Lists all recording sessions with status and entry counts
get_recording_session Gets details of a specific recording session
delete_recording Deletes a recording session and its entries
list_recording_entries Lists captured request/response entries for a session
create_mocks_from_recording Generates mock configurations from recorded traffic
export_recording_har Exports a recording session as HAR (HTTP Archive) format
export_recording_collection Exports a recording session as an API test collection
export_recording_perf_script Exports a recording session as a k6 performance test script

Contract Testing Tools

Tool What It Does
contract_validate_mocks Validates mock configurations against an API specification (OpenAPI, proto, GraphQL)
contract_verify_provider Verifies that a real provider endpoint matches the contract
contract_check_compatibility Checks backward compatibility between two versions of an API specification
contract_validate_payload Validates a specific request/response payload against a schema

CI Trigger Tools

Tool What It Does
list_ci_triggers Lists saved CI Triggers (webhooks that fire when a Mockarty task launches — GitLab pipeline, GitHub workflow, Jenkins job, CircleCI, custom)
get_ci_run_status Reads the live state of a CI run linked to a Mockarty task (queued, running, success, failed, cancelled, timeout)
cancel_ci_run Marks a CI run as cancelled and fails the linked Mockarty task
test_ci_trigger Dry-runs a saved CI Trigger against a synthetic task — exercises URL, auth, body template, and the upstream call without creating a real run. Useful to validate a trigger before referencing it in a launch.

HTTP and API Client Tools

Tool What It Does
http_request Sends HTTP requests (GET, POST, PUT, DELETE) with headers, body, query params
grpc_call Calls gRPC services — list services, list methods, invoke unary RPCs
graphql_query Introspects GraphQL schemas and executes queries/mutations
kafka_publish Publishes messages to Kafka topics
kafka_consume Consumes recent messages from Kafka topics
rabbitmq_publish Publishes messages to RabbitMQ exchanges/queues
rabbitmq_consume Peeks at messages in RabbitMQ queues
mcp_list_tools Lists available tools on an MCP server
mcp_call_tool Calls a specific tool on an MCP server

Database Tools

Tool What It Does
sql_query Executes read-only SQL queries against PostgreSQL, MySQL, or ClickHouse
mongodb_query Queries MongoDB via Atlas Data API or HTTP interfaces
elasticsearch_query Searches Elasticsearch/OpenSearch indices
redis_command Executes read-only Redis commands (GET, HGETALL, KEYS, etc.)
db_list_tables Lists tables/collections/indices in a database

Web and Content Tools

Tool What It Does
browse_url Fetches a public URL and extracts text content (HTML, JSON, XML). Blocks private IPs.
search_in_page Searches for specific text within a fetched web page
analyze_content Analyzes structured content (OpenAPI, Postman, HAR, JSON, YAML)

Data Transformation Tools

Tool What It Does
json_format Formats, validates, or minifies JSON
xml_format Formats or validates XML
base64_convert Encodes/decodes Base64 strings
url_encode Encodes/decodes URL components
html_encode Encodes/decodes HTML entities
jwt_decode Decodes JWT tokens (header + payload, no signature verification)
json_xml_convert Converts between JSON and XML formats
timestamp_convert Converts between Unix, ISO 8601, and human-readable timestamps
diff_compare Compares two texts or JSON structures, highlighting differences
generate_uuid Generates UUID v4 identifiers
generate_hash Generates SHA-256, MD5, or other hash digests
generate_text Generates realistic fake data using Faker (names, emails, addresses, lorem ipsum)
generate_password Generates secure random passwords with configurable complexity
regex_test Tests regex patterns against text with match group extraction
color_convert Converts between HEX, RGB, and HSL color formats
timestamp_now Returns the current timestamp in various formats

Notification Tools

Tool What It Does
send_email Sends email via configured SMTP (plain text + HTML)
send_slack Sends Slack messages via Incoming Webhook (supports Block Kit)
send_telegram Sends Telegram messages via Bot API (MarkdownV2/HTML)
send_teams Sends Microsoft Teams messages via Webhook (Adaptive Cards)
send_discord Sends Discord messages via Webhook (supports embeds)
send_google_chat Sends Google Chat messages via Webhook (Card v2)
send_mattermost Sends Mattermost messages via Webhook (Slack-compatible API)
send_webex Sends Cisco Webex messages via Bot API
send_pagerduty Triggers/acknowledges/resolves PagerDuty incidents (Events API v2)
send_opsgenie Creates Opsgenie alerts with priority P1-P5
send_jira_comment Adds comments to Jira issues via REST API v3
send_webhook Sends HTTP POST/PUT/PATCH to any webhook URL with JSON body
list_system_channels Lists all configured notification channels with their types and status
send_via_channel Sends a message through a pre-configured notification channel by name or ID

send_teams and send_discord are source-tested, not live-certified.
Their payload builders (Adaptive Card / embed), mention rendering and HTTP
error classification are covered by the source suite; delivery to a real
Teams tenant or Discord guild is not part of the current release evidence.
See Notification Channels for the status note.

Session Management Tools

Tool What It Does
current_time Returns current date/time in any timezone
cache_set Stores a key-value pair in temporary cache (1-hour TTL)
cache_get Retrieves a cached value by key
cache_delete Deletes a cached key
cache_list Lists all cached keys
todo_add Adds a task to the per-user todo list (5-day expiry)
todo_list Lists all tasks in the user’s todo list
todo_update Updates a task’s status or details
todo_remove Removes a task from the todo list

Knowledge Tools (Wiki, Semantic, Project Memory)

Tool What It Does
wiki_page_labels Reads one page’s labels. Requires current view access; a restricted page answers 404 rather than disclosing its labels
wiki_page_labels_set Replaces a page’s label set (an empty list clears it). Requires edit access to the page
wiki_labels Lists the labels used in the namespace. Built from the live, access-filtered page tree: labels of restricted pages you cannot read and of deleted pages are excluded
semantic_ingest Indexes text or an existing entity (ref: "issue:MK-1", tcm_case:<uuid>, wiki_page:<uuid>, whiteboard:<uuid>). Raw text under an entity kind must name a real entity you can currently read; a foreign or private source answers 404. A multipart .docx or .pdf file is accepted and its text is extracted locally before chunking
semantic_search Searches the workspace index. mode: "lexical" means text-term matching ran. This can happen when embeddings are unavailable or the vector search path fails. Wiki and whiteboard hits require current access and matching source content.
search_docs Finds relevant sections of the embedded EN/RU product docs by question or product terms. Returns short snippets and section links. Use read_product_doc for additional context.
read_product_doc Reads a public product guide by its slug. For a product_doc search hit, use its entityId as the slug and choose lang: "en" or "ru". When the response includes nextOffset, pass it as offset to read the next part.
project_memory_record Records an observation as a candidate. visibility: "private" keeps it readable only by the caller’s person and namespace owners; the default namespace shares it with the workspace

Parallel Tool Execution

The agent system executes multiple tool calls simultaneously when an LLM requests several tools in a single response turn. This significantly speeds up complex operations.

How it works:

  1. The LLM decides it needs to call multiple tools (e.g., list_mocks + list_collections + current_time)
  2. Mockarty dispatches all tool calls in parallel using goroutines
  3. Results are collected concurrently and returned to the LLM together
  4. The LLM processes all results in the next turn

Example: When asked “Show me all mocks and test collections in the payments namespace,” the agent calls list_mocks and list_collections simultaneously rather than sequentially, halving the response time.

Inline tools (such as form_update and permission checks) are handled synchronously before parallel execution begins, ensuring security checks are never bypassed.

Credentials Store

The Credentials Store allows you to provide API keys, database connection strings, tokens, and other secrets to the agent without including them in your chat messages.

Storage: Tool credentials stay in the current tab’s memory. They are cleared on page reload, sign-out or account change. Mockarty does not persist them on the server; values needed for a tool call are included in that request.

How to use:

  1. Click the key icon in the agent chat header to open the Credentials panel
  2. Add entries as key-value pairs (e.g., POSTGRES_DSN → postgres://user:pass@host:5432/db)
  3. Close the panel — credentials remain available in this tab for the current session
  4. When chatting, reference credentials by name: “Query the database using my POSTGRES_DSN credential”
  5. The agent automatically passes matching credentials to tools like sql_query, http_request, send_slack, etc.

Common credential names:

Key Used By Example Value
POSTGRES_DSN sql_query postgres://user:pass@host:5432/dbname
MYSQL_DSN sql_query mysql://user:pass@host:3306/dbname
MONGO_URL mongodb_query https://data.mongodb-api.com/...
ELASTICSEARCH_URL elasticsearch_query http://localhost:9200
REDIS_URL redis_command redis://:password@host:6379/0
SLACK_WEBHOOK send_slack https://hooks.slack.com/services/...
TELEGRAM_TOKEN send_telegram 123456:ABC-DEF...
TELEGRAM_CHAT_ID send_telegram -1001234567890
PAGERDUTY_KEY send_pagerduty your-routing-key
JIRA_URL send_jira_comment https://yourcompany.atlassian.net
JIRA_EMAIL send_jira_comment user@company.com
JIRA_TOKEN send_jira_comment your-api-token

Privacy note: Re-enter tool credentials after a reload or sign-out. Custom chat provider keys and authorization headers also stay in tab memory; provider/model choices and personal profile names are saved without secrets. Use an administrator-managed server LLM profile when the provider credential must survive a reload.

Sessions and Context

Agent chat sessions are persisted to the database:

  • Session creation: A new session starts when you open the chat or click “New Chat”
  • Message history: Up to 100 previous messages are loaded when you reopen a session
  • Context window: Active conversations are trimmed to 200 messages to prevent memory issues
  • Session expiry: Sessions expire after 24 hours of inactivity (configurable)
  • MCP session isolation: Each chat session gets its own MCP session — stateful MCP tools (like Playwright) maintain state per conversation

Agent Tasks (Background Operations)

For a direct task request, POST /api/v1/agent/tasks?namespace=… requires title and prompt. The optional nativeActionSelection contains exactly pluginId, action, expectedPublishedIdentityDigest and expectedPublishedRevision. This selection requires your signed-in human session and an available server runtime; an API key, integration or MCP client cannot select it on your behalf. A prompt, skill name or tool ID does not grant this permission. The server checks your current access and the published choice again before accepting the task.

Selection preparation returns 400 for invalid input, 403 without a human session, 409 for a changed choice, or 503 when execution or verification is unavailable. A later submission failure can return 500, including a change detected during the final access check; keep your draft and read task status before another submission. An explicit null is invalid; omit the field for an ordinary task. These checks bind a choice to a task; they do not confirm that the selected action ran. Check task status and its recorded result. If the response is lost or uncertain, read your tasks before submitting again. The current admission interface does not add a native-action picker to the task form or enable additional execution profiles.

For a selected native action, the server supplies its published input definition to the model. Do not also select an external tool with the same name: the task refuses this ambiguity before calling the model or either tool. If execution becomes unavailable or its outcome cannot be verified, read the recorded task state before another submission; an uncertain outcome does not prove that no action occurred.

For an uncertain external action, inspect its destination before recording a recovery decision. If that decision cannot be confirmed, a repeat in the same form uses the original request key and identical decision, note and result. The form blocks changing these fields for a repeat until you read the current receipt. Switching workspace, identity, session or page closes this dialog; a late response does not update the new context. A successful-looking response must identify the original task, workspace, receipt and decision actor before the form reports success.

An unconfirmed task launch stays locked for its original user and workspace when you switch away and return. A successful launch in another workspace does not clear it. Recovery identifiers remain in this browser tab across reloads; task text is not stored with them. A missing item in the task list is not proof of rejection. If recovery storage is unavailable or full, the form blocks a new launch. Switching identity or ending the session closes the form and clears its private fields; old cancellation confirmations are retired on workspace, session or page changes.

Use New task in the floating task panel to describe an objective and select a specialist. The form opens above the panel and keeps your draft when closed. If a launch cannot be confirmed, check the task list before starting again; Mockarty keeps the draft and blocks a repeated submission in this page session.

Some operations are too long for a chat response. Agent tasks run in the background:

  • Created via: Agent chat, AI buttons (when operation is complex), or the A2A protocol
  • Progress tracking: Real-time step-by-step execution log with SSE streaming
  • Tool call visibility: See which tools were called and their results
  • Cancellation: Cancel running tasks at any time
  • Edit & Rerun: Edit any step in the flow and re-execute from that point
  • Export: Download the full task flow as JSON for debugging or sharing
  • Completion notifications: Get notified via bell icon and (if configured) email
  • Concurrency limit: Configurable max concurrent tasks (default: 3)

Tasks are managed entirely within the Agent Chat Widget. Click the Tasks tab (clipboard icon) in the floating chat to see all your tasks. A badge appears when tasks complete while you’re working on other pages.

Flow Overlay: Click View Flow on any task to see the full step-by-step execution trace:

  • Steps are grouped by parent-child relationships (tool calls paired with their results)
  • Parallel tool call batches are visually grouped
  • Each step shows duration, token count, model, and agent name in micro-chips
  • LLM-generated text (thoughts, decisions, answers) is rendered as Markdown
  • Error steps show the full error description

Edit & Rerun: Click the pencil icon on any step to edit its content, then click Rerun from step N to re-execute the task from that point with your modifications applied.

Agent Chat Tasks Tab

Using Marketplace Tools in Agent Chat

When marketplace tools are configured, they become available in the agent chat:

  1. Open the agent chat settings gear
  2. Select which marketplace tools to enable
  3. Start chatting — the agent can now use both built-in and marketplace tools

Example: With a staging API registered as an OpenAPI source, you can ask:

“Call the getUsers endpoint on staging, then create a mock that returns the same response structure”

The agent will:

  1. Call the getUsers marketplace tool (real HTTP request to staging)
  2. Analyze the response structure
  3. Use built-in tools to create a mock with matching fields

Custom Agents

What Are Custom Agents?

Custom agents are admin-created specialists that extend the agent system. Mockarty already includes built-in specialists for the common testing domains, and your organization may also need domain-specific agents with:

  • Custom system prompts tailored to your domain
  • Specific tool whitelists (only the tools this agent should use)
  • Routing keywords that match your team’s vocabulary
  • Bound LLM profiles and model overrides
  • Feature key mapping to customize AI button behavior

Namespace Agents

Besides the server-wide custom agents the admin manages, a namespace owner can define the team’s own agents in Settings → AI & Meetings → Namespace agents. A namespace agent:

  • acts only inside its namespace — its keywords route only that namespace’s chats and tasks, and it is invisible everywhere else;
  • runs with exactly the tools you whitelist (at least one is required) — nothing extra is added, and each user’s own permissions and licence still apply on every call;
  • may shadow a same-named server agent inside the namespace (your triage wins over the server triage for your team), but can never replace a built-in specialist;
  • can bind one of the namespace’s own LLM profiles (or a server one) so its runs use the team’s key and model;
  • has its instruction screened on save — text that tries to override system rules is rejected with an explanation.

Creating, editing and deleting namespace agents requires the namespace owner role; every change is written to the audit log with its author. Administrators see all namespace agents in the admin panel with an ns: badge and can disable or delete one at any time.

The same management is available to AI agents over MCP: custom_agents_list, custom_agent_save, custom_agent_delete.

Creating a Custom Agent

Admins create custom agents from Admin → AI & LLM → Agent Settings.

Custom Agent Settings

Each custom agent requires:

Field Required Description
Name Yes Unique identifier (e.g., payment_specialist)
Description Yes Short description shown when the agent is selected
System Prompt Yes Instructions that guide the agent’s behavior (appended to the base system prompt)
Available Tools No List of tools this agent can use (empty = all tools available)
Routing Keywords No Keywords that trigger routing to this agent
LLM Profile No Bound LLM profile for this agent (empty = use user’s selection)
Model Override No Override the model within the bound LLM profile
Feature Key No Maps to an AI button feature (e.g., generate-mock)
Enabled Yes Toggle the agent on/off

LLM Profile Binding

Custom agents can be bound to a specific LLM profile and model. When a message is routed to this agent:

  1. The bound LLM profile is used instead of the user’s default selection
  2. If a model override is set, that specific model is used within the profile
  3. This ensures the agent always uses the optimal model for its domain

Use cases:

  • Bind a security review agent to a powerful model (e.g., claude-sonnet) for thorough analysis
  • Bind a simple FAQ agent to a fast model (e.g., gpt-4o-mini) to reduce cost
  • Bind a code generation agent to a code-optimized model

Routing Keywords

Keywords determine when the system routes a chat message to your custom agent. Custom agent keywords are checked before built-in agents, giving admin-defined agents priority.

Example: A payment_specialist agent with keywords ["payment", "checkout", "billing", "invoice"] will handle any chat message containing those words — even if built-in agents would otherwise match.

Tips for keywords:

  • Use domain-specific terms your team actually uses
  • Include synonyms (e.g., both “payment” and “billing”)
  • Avoid overly generic words (e.g., “test” would capture too many requests)
  • Keywords are case-insensitive

Tool Whitelists

By default, agents can use all available tools. A tool whitelist restricts an agent to only specific tools — useful for:

  • Security: An analysis-only agent shouldn’t modify mocks
  • Focus: A mock specialist doesn’t need fuzzing tools
  • Compliance: Limit which tools can access production data

Select tools from the list of built-in tools and any registered marketplace tools.

Feature Key Mapping

A custom agent can be mapped to an AI button feature key. When mapped, the agent’s system prompt is appended to the button’s default prompt, and the agent’s tool whitelist is applied.

Available feature keys:

Feature Key AI Button
generate-mock Generate Mock
improve-mock Improve Mock
generate-script Generate Script
generate-perf Generate Perf Script
diagnose Diagnose Error
analyze-test Analyze Test Results
recorder-ai Analyze Traffic
recorder-scenarios Find Scenarios

Example: Map payment_specialist to generate-mock → whenever anyone clicks “Generate Mock”, the payment specialist’s system prompt is added, giving the AI extra context about payment APIs.

Custom Agent Examples

Domain-Specific Mock Expert

Name: healthcare_mock_expert
Description: Creates HIPAA-compliant healthcare API mocks
System Prompt: |
  You are a healthcare API specialist. When creating mocks:
  - Never use real patient data — always use Faker functions
  - Follow HL7 FHIR resource structure for healthcare endpoints
  - Include proper error responses for auth failures (401, 403)
  - Add X-Request-ID and X-Correlation-ID headers to all responses
  - Use ICD-10 codes from the valid range for diagnosis fields
Keywords: [healthcare, patient, fhir, hl7, medical, hipaa, diagnosis]
Feature Key: generate-mock

Security Review Agent

Name: security_reviewer
Description: Reviews API configurations for security issues
System Prompt: |
  You are a security specialist. When analyzing:
  - Check for missing authentication on sensitive endpoints
  - Verify rate limiting is configured
  - Look for PII exposure in response payloads
  - Check CORS configuration
  - Verify TLS/HTTPS usage
  - Flag any hardcoded credentials or tokens
Keywords: [security review, audit, compliance, pentest, owasp]
Tools: [browse_url, analyze_content, sql_query]
LLM Profile: claude-sonnet-profile

CI/CD Integration Agent

Name: cicd_agent
Description: Generates test configurations for CI/CD pipelines
System Prompt: |
  You are a CI/CD integration specialist. Help users:
  - Create test collections suitable for pipeline execution
  - Generate performance test scripts with CI-friendly thresholds
  - Configure fuzzing with time-bounded durations
  - Format results for JUnit/TAP output parsers
Keywords: [ci, cd, pipeline, jenkins, github actions, gitlab ci, deploy]
Tools: [build_api_collection, export_recording_perf_script, configure_fuzzing]

Notification Router Agent

Name: alert_manager
Description: Routes test results and alerts to the right channels
System Prompt: |
  You are an alert routing specialist. Based on the severity and type of event:
  - Critical failures → PagerDuty incident + Slack #incidents
  - Test suite failures → Teams channel + email to QA lead
  - Performance degradation → Slack #performance + Opsgenie alert
  - Successful deployments → Slack #releases + Jira comment
  Always include: timestamp, environment, summary, and link to results.
Keywords: [alert, incident, notify team, send report, broadcast]
Tools: [send_slack, send_teams, send_pagerduty, send_opsgenie, send_email, send_jira_comment, current_time]

Marketplace Integration

The MCP Marketplace connects external services to the agent system, giving agents access to tools beyond the built-in set. This section explains how marketplace tools and agents work together.

Connecting External MCP Servers

MCP (Model Context Protocol) servers are the most powerful integration type. They provide custom tools that the agent can call during conversations.

Popular MCP servers:

  • Playwright — browser automation (navigate, click, screenshot, fill forms)
  • File System — read/write files on a server
  • Database — query external databases
  • GitHub — manage repositories, issues, PRs
  • Custom — build your own MCP server for any API

Stateful sessions: Each agent chat conversation gets its own MCP session. This means a Playwright MCP server can open a browser in one tool call, navigate in the next, and screenshot in the third — all within the same chat.

Connecting OpenAPI/gRPC/WSDL Services

Register your existing API documentation and the agent gains the ability to call your real APIs:

  1. OpenAPI — each endpoint becomes a callable tool. The agent can test real APIs, fetch data, and verify behavior.
  2. gRPC — discovers service methods via gRPC server reflection. Tool calls are proxied as real gRPC requests to the target server.
  3. WSDL — each SOAP operation becomes a tool with automatic XML envelope construction.

Connecting A2A Agents

Connect external AI agents that follow the Agent-to-Agent protocol:

  1. Register the agent’s base URL in the marketplace
  2. Mockarty fetches the agent card from /.well-known/agent.json
  3. The external agent’s skills become tools available in Mockarty’s agent chat

This enables multi-agent workflows where Mockarty delegates tasks to specialized external agents.

Tool Selection Per Feature

Each AI feature (and each agent chat session) maintains its own selection of marketplace tools. This prevents tool overload — the LLM only sees tools relevant to the current task.

Configure tool selection:

  • AI buttons: Click the gear icon → MCP Tools section
  • Agent chat: Click the gear icon in the chat header

A2A Protocol (Agent-to-Agent)

External AI agents can interact with Mockarty using the Agent-to-Agent protocol:

Endpoint Method Purpose
/.well-known/agent.json GET Agent card discovery — returns capabilities, skills, and supported protocols
/a2a/tasks/send POST Submit a task for execution
/a2a/tasks/:id GET Check task status and retrieve results
/a2a/tasks/:id/cancel POST Durably cancel a Mission or a legacy A2A task
/a2a/tasks/:id/events GET Replay persisted task activity and follow live updates over SSE

Use cases:

  • An external agent delegates mock creation to Mockarty
  • A CI/CD agent asks Mockarty to run tests and report results
  • A multi-agent system coordinates testing across services

Want the agent to run the whole testing job itself? See the Autonomous Tester — hand it a goal in plain language and it plans, optionally waits for your approval, runs the testing, and reports back.

Worked example — discover, submit, poll:

# 1. Discover the skills this Mockarty advertises
curl -s http://localhost:5770/.well-known/agent.json | jq '.skills[].id'
# → "mock_management", "api_testing", "fuzzing", "analysis", ... (16 skills)

# 2. Submit a task. skillId is OPTIONAL — pass any skill the card advertises to
#    route the task to the matching specialist, or omit it for a free-form task.
#    namespace is OPTIONAL — omit it to run in your default namespace.
curl -s -X POST http://localhost:5770/a2a/tasks/send \
  -H "Authorization: Bearer $MOCKARTY_API_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"description":"How many mocks exist? Reply with the number.",
       "skillId":"analysis"}'
# → {"id":"6e333787-...","status":"submitted"}

# 3. Poll for the result
curl -s http://localhost:5770/a2a/tasks/6e333787-... \
  -H "Authorization: Bearer $MOCKARTY_API_TOKEN"
# → {"id":"6e333787-...","status":"completed","result":{"content":"There are 171 mocks."}}

# 4. Cancel stale or mistakenly submitted work. Reuse the same key if the
#    response is lost; Mockarty will not create a second cancellation command.
curl -s -X POST 'http://localhost:5770/a2a/tasks/6e333787-.../cancel' \
  -H "Authorization: Bearer $MOCKARTY_API_TOKEN" \
  -H 'Idempotency-Key: cancel-6e333787'
# → {"status":"canceled"}

A client-supplied id is the reconnect identity of the task: resending the
same id with the same description returns the SAME task with replayed: true
instead of starting a second run, while reusing the id with different content
returns 409. The optional sessionId is projected onto the native task.
Responses and events carry projectionVersion (a2a-task-projection/v1).
Request fields outside the documented subset — including any body-supplied
actor or principal — are rejected with 400; the actor always comes from the
token, and a pinned token’s namespace cannot be widened from the body.

GET /a2a/tasks/:id/events is a read-only SSE projection of the same task: the
first frame replays the steps already persisted, later frames report new steps
and status changes, and reconnecting never creates or resumes a run. Tool
activity reports which tool ran, when and for how long; tool arguments and
results are deliberately not exposed by this projection.

Cancellation resolves a canonical autonomous Mission first and then falls back
to a legacy A2A task with the same external ID. For a token that is not pinned
to one namespace, add ?namespace=<name>; Mockarty applies the same membership
check as task submission. A successful response means the cancellation is
durably recorded. Running child executors are then stopped through their exact
generation bindings; an unavailable or uncertain cancellation is returned as a
retryable error rather than a false success.

Any skill listed on the agent card is accepted. A skill with a dedicated
specialist (for example fuzzing, security_scanning, api_testing) is routed
straight to it; the rest are handled by the Assistant. Submitting an
unknown skill returns 400 so you can catch typos against the card.

The A2A protocol follows the Google Agent-to-Agent standard, making Mockarty compatible with any A2A-compliant agent platform.


Administration Guide

Setting Up AI Features

Step 1: Create an LLM Profile

  1. Navigate to Admin → AI & LLM → LLM Profiles
  2. Click Add Profile
  3. Select a provider (OpenAI, Anthropic, etc.)
  4. Enter your API key and select a model
  5. Click Save and ensure the profile is Enabled

Step 2: (Optional) Register Marketplace Tools

  1. Navigate to Admin → AI & LLM → MCP Marketplace
  2. Click Add Integration
  3. Choose source type and enter the URL
  4. Configure authentication if needed
  5. Click Save — tools are auto-discovered within 30 minutes

Step 3: (Optional) Create Custom Agents

  1. Navigate to Admin → AI & LLM → Agent Settings
  2. Click Create Agent
  3. Fill in name, description, system prompt, and optional keywords/tools
  4. Optionally bind an LLM profile and model override
  5. Click Save

Configuring the MCP Marketplace

Adding an OpenAPI Source

  1. Click Add Integration → Source Type: OpenAPI
  2. Enter the URL to your OpenAPI/Swagger spec (JSON or YAML)
    • Example: https://api.staging.example.com/swagger.json
  3. If the API requires auth, set the Auth Type:
    • Bearer: paste your access token
    • API Key: enter the key and header name (e.g., X-API-Key)
    • Basic: enter username and password
  4. Click Save
  5. Click the plug icon to verify connection — you should see “online” status
  6. Click the list icon to view discovered tools

MCP Marketplace Server Status

Adding an MCP Server

  1. Click Add Integration → Source Type: MCP Server
  2. Enter the MCP server endpoint (e.g., http://localhost:3000/mcp)
  3. Set auth if required
  4. Click Save

MCP servers support stateful sessions — each agent chat conversation gets its own session, allowing tools like Playwright to maintain browser state across calls.

Adding a WSDL (SOAP) Source

  1. Click Add Integration → Source Type: WSDL
  2. Enter the WSDL URL (e.g., https://legacy.example.com/service?wsdl)
  3. Set auth (many SOAP services use Basic auth)
  4. Click Save

Each SOAP operation becomes a tool with a soap_ prefix.

Refresh and Health

  • Auto-refresh: A background worker checks servers every 30 minutes. Each server has its own refresh interval (default: 2 hours).
  • Manual check: Click the plug icon on any server to trigger an immediate health check.
  • Status indicators: Green = online, Red = error (hover for details), Gray = unknown.

Monitoring with AI Audit Log

Navigate to Admin → AI & LLM → AI Audit Log.

Every AI operation is logged:

  • Timestamp — when the operation ran
  • User — who initiated it
  • Action — which AI feature (generate_mock, diagnose_error, etc.)
  • Profile — which LLM profile was used
  • Duration — LLM call duration in milliseconds
  • Status — success, error, or rate_limited
  • Tokens — token usage (if reported by provider)

Filter by user, action type, status, and date range. Export to CSV for compliance reporting.

AI Audit Log

Rate Limiting and Security

AI rate limits:

  • Each user has a daily AI call limit (configurable by admin)
  • When the limit is reached, AI buttons show a rate limit error
  • The audit log tracks all calls for monitoring

Security measures:

  • browse_url tool blocks private/internal IP addresses (SSRF protection)
  • sql_query tool is read-only (SELECT/WITH only) and blocks sensitive tables
  • db_list_tables is read-only — no schema modification
  • redis_command is limited to read-only commands
  • Tool calls to marketplace servers validate URLs against SSRF
  • User header overrides are isolated per user — one user’s credentials don’t leak to others
  • MCP sessions are isolated per conversation
  • Credentials Store values stay in tab memory and are cleared on reload, sign-out or account change
  • All AI requests are logged in the audit log
  • Custom agent tool whitelists enforce least-privilege access

Notifications

AI operations generate notifications:

Event Where You See It
Test run completed Bell icon + email (if configured)
Performance test completed Bell icon + email
Fuzzing completed Bell icon + email
New fuzzing finding Bell icon + email
Agent task completed Bell icon + agent chat
Agent task failed Bell icon + agent chat

The bell icon in the top navigation shows unread notification count. Click it to view, dismiss, or follow notification links.


Tips for Better Results

  1. Be specific: “Generate a mock for GET /api/users that returns 10 users with name, email, and role fields” is better than “create a user mock”
  2. Provide context: Use the custom prompt to tell the AI about your domain, SLAs, or coding standards
  3. Choose the right model: Fast models for simple tasks, powerful models for analysis
  4. Iterate: If the first result isn’t perfect, use “Improve Mock” or adjust your custom prompt
  5. Use MCP tools: When available, enable relevant tools so the AI can access real data from your APIs
  6. Review AI triage carefully: Auto-triage is a starting point — always verify critical findings manually
  7. Leverage custom headers: If tools need your credentials, set them in the settings gear rather than including them in prompts
  8. Use the Credentials Store: For database connections, API keys, and webhook URLs — store them once in the Credentials panel and reference by name
  9. Use agent chat for complex tasks: Multi-step operations work better through the chat interface where the agent can iterate
  10. Scope your custom agents: Give custom agents specific keywords and tool whitelists to keep them focused
  11. Bind models to agents: Use LLM profile binding to ensure each custom agent uses the optimal model for its task
  12. Ask your admin to add integrations: If the AI lacks context about your APIs, ask your admin to register them in the MCP Marketplace

Troubleshooting

“LLM not configured”

No enabled LLM profiles exist. Ask your admin to create one in Admin → AI & LLM → LLM Profiles.

“LLM profile not found”

The selected profile was deleted or disabled. Click the gear button and select a different profile.

“AI provider unavailable”

The configured model server cannot be reached. Check the profile address and network access; for a local model, also check that its server is running. Recorder analysis and the built-in mock, test-case, and script generation actions return 503 with code unavailable for this failure, rather than reporting an internal platform error.

Chat shows a provider error

The chat summarizes provider failures and rate limits without displaying the provider’s raw response, which may contain private request details. Retry after a rate limit; for a recurring failure, ask your administrator to check the LLM profile and provider connection. If the provider rejects the profile’s credential, a non-streaming chat response carries code: llm_auth_rejected and the assistant never fabricates an answer; correct the key in the LLM profile and retry.

“Too few AI credits”

On a hosted Space, an AI request is refused before the model runs when the Space lacks credits. Add AI credits in the Cloud cabinet or choose a smaller task. A non-streaming chat request returns 402 with code llm_budget_blocked and reason credits_exhausted; the streaming chat displays the same actionable refusal. No credits are debited for a refused request.

Long tasks and limits

A long model response is not itself a failure. For substantial work, ask your
administrator to check the limit that actually stopped the task before reducing
its scope. Iteration allowance, token spending, response length and timeouts are
separate settings; increasing one does not increase the others.

  • ADK_MAX_TOOL_ITERATIONS sets the default number of tool-loop turns for chat
    and autonomous tasks (default 50). A feature can set its own allowance.
    Autonomous tasks use the configured allowance without a separate 18-turn cap.
    Delegated specialists inherit that selection, including a smaller explicit
    allowance; they no longer have a separate 15-turn limit.
  • Native assistant chat can run for up to two hours, including quiet periods
    without streamed events. Model/provider limits may finish it earlier. On a
    timeout, check Agent Tasks for the final outcome before starting another request.
  • Autonomous tasks, background AI callbacks and delegated specialists have a
    two-hour execution ceiling. An earlier parent deadline or cancellation still
    stops the work. This does not extend an autotester mission step (10 minutes)
    or the provider’s individual request timeout. Queue admission and concurrency
    limits remain separate.
  • A mission’s token budget is set on the mission itself. A larger spending budget
    does not enlarge the model’s context or requested response length. Model-call
    limits are part of the installation and do not extend task deadlines.

These settings do not remove task deadlines, delegated-operation limits,
tool-call ceilings, approvals or cancellation. Do not automatically repeat an
operation whose effect is unknown after a timeout; inspect its recorded result.

With Prometheus metrics enabled, mockarty_agent_loop_duration_seconds and
mockarty_agent_loop_iterations report distributions by reason. Their _count
series count observed loops. Reasons distinguish completion, iteration/tool/token
limits, repeated blocked calls (thrashing), cancellation, task deadline,
model-call timeout (llm_timeout), cost/security policy refusals and errors. Duration includes the final
conclusion but excludes setup and queueing; iterations count entered main-loop
turns, excluding auxiliary calls and the final conclusion call. Delegated loops
are separate observations, so their summed duration is not mission wall time.
Use the task’s recorded token usage and provider usage metrics alongside these
distributions when tuning limits; a turn is not a token or billing unit.

AI response is slow

  • Try a faster model (switch from GPT-4o to GPT-4o-mini)
  • Reduce custom prompt length
  • Disable unnecessary MCP tools (each tool call adds latency)
  • For agent chat: reduce the number of enabled marketplace tools

MCP tools not working

  • Check that the marketplace server is online (Admin → AI & LLM → MCP Marketplace)
  • Verify the tool is enabled on the server
  • Check that you’ve selected the tool in the feature’s settings gear
  • If using custom headers, verify your credentials are correct
  • Check the server logs for auth errors

Agent chat not routing correctly

  • The routing is keyword-based — try rephrasing your request with clearer keywords
  • Custom agent keywords take priority over built-in agents
  • Check Admin → AI & LLM → Agent Settings to see which custom agents and keywords are active
  • Use explicit phrases like “create a mock for…” to target the mock_builder agent

Database tools returning errors

  • Verify the connection string in your Credentials Store is correct
  • Check that the database is accessible from the Mockarty server
  • SQL tools only support SELECT and WITH queries — UPDATE/INSERT/DELETE are blocked
  • Check for network/firewall issues between Mockarty and the database

Notification tools failing

  • For email: verify SMTP is configured in Admin → Email Settings
  • For Slack/Teams/Discord: verify the webhook URL is valid and not expired
  • For Telegram: verify bot token and chat_id are correct
  • For PagerDuty/Opsgenie: verify the API key or routing key
  • Check the Credentials Store for typos in keys or values

Tool calls are being declined

  • Some tools require approval — you’ll see an approve/decline prompt
  • Read-only tools (browse, analyze, query) are auto-approved
  • Data-modifying tools (create, update, delete) may require approval depending on your admin’s configuration

AI analysis not saved

For features that persist analysis (test reports, fuzzing findings, perf results), the analysis is saved automatically. Refresh the page to see it in the report.

Custom headers not applied

  • Header overrides are per-feature — check that you set them for the correct feature
  • Overrides replace server defaults — if you set Authorization, it overrides the server’s auth
  • Clear your overrides if you want to fall back to server defaults

Save an executable workflow from chat

When editing a script tool, type mk. or press Ctrl+Space to see available calls and their arguments. Select a suggestion with the arrow keys and Enter. Under Starter template, choose a sample and run it with the example input. The Kafka sample needs a reachable broker address and a topic.

In Settings → Agent Skills & Tools, a custom tool’s test result keeps the script outcome separate from SDK usage. SDK usage recorded means that SDK records were retained, not that payment was finally settled. Spend unconfirmed means the cost is still uncertain, even if the script succeeded. Older runs may show SDK usage not recorded; this does not mean they were free. Expand Technical details to inspect the reported values and receipt references; a bounded view states how many receipts it shows. In run history, use Details on a row to read that run, without executing it again.

Saved script runs can include a definition reference in diagnostics and run-history API responses: the saved tool ID, workspace, name, implementation kind, version and a digest of the executed definition. This reference identifies the saved script that actually ran; it does not grant permission or approve an improvement. Unsaved drafts and older runs have no verified definition reference. If a saved tool changes later, the older run keeps its original reference; it does not prove that the current script is the same.

If a workspace is deleted and created again, start a fresh request in the new workspace. A request admitted before deletion cannot save tools, improvements or run history into its replacement. A script or external operation may already have completed before this refusal; check its result and usage before deciding whether to run it again.

Ask the assistant to save a repeatable workflow as a skill, for example: “Save this report-review workflow so I can run it again with another result.” A skill can contain ordered calls to existing tools, JavaScript steps and other skills. Steps can use your input and the results of earlier steps. Existing text-only playbooks remain available.

Saving does not execute the workflow or create a schedule. Ask the assistant to run the saved skill with sample input and inspect its result before using it for recurring work. Executable workflows require the same role permission as custom scripts; text-only playbooks remain readable. Each tool call uses the current caller’s context. A failing step stops the workflow by default; an explicitly continued failure remains visible in the result. JavaScript steps use the same scripting restrictions as custom tools.

Saving the same name in the current workspace updates that skill, including when it is disabled. A successful skill or custom-tool save returns the version stored by that update. Editing preserves its enabled and sharing settings; enable it explicitly in the library when it is ready to run. This is a direct update, not reviewed version publication or an automatic rollback mechanism. Use the skills library to inspect or disable the saved workflow.

If someone edits or disables the same skill or custom tool while your save is in progress, that save is refused (HTTP 409). Read the current definition and decide whether to apply your changes again. Do not automatically repeat the save; a newer edit or an explicit disable must be preserved.

External agents can use the same workflow through the MCP tools save_skill and run_skill. For HTTP clients, send POST /api/v1/agent-skills/author?namespace=YOUR_WORKSPACE with name and either body or steps. A step has a kind of tool, script or skill; script steps read the supplied input with mk.variables.get("input") and previous step outputs separately with mk.variables.get("steps"). Then send POST /api/v1/agent-skills/run?namespace=YOUR_WORKSPACE with name and input. An executable skill returns result with step outputs; a text playbook returns instructions. Executable workflows require the agent runtime to be enabled.

The library listings GET /api/v1/agent-skills and GET /api/v1/agent-tools return one page at a time. Without parameters the page holds 50 entries; limit raises it to at most 500 and offset skips earlier entries. The response body is still a plain array. The headers X-Total-Count, X-Page-Limit and X-Page-Offset describe the page, and X-Next-Offset contains the next offset when another page exists — repeat the request with offset=X-Next-Offset until that header is absent. This applies to the management library and to ?shared=true. The discovery view used by the assistant (?view=catalog) is not paged and always returns the complete catalog, so it never hides a skill the agent can run.

Example: summarize matching mocks

Save the following request body through the author endpoint above, replacing YOUR_WORKSPACE with your workspace. The first step finds up to five matching mocks; the second returns their IDs and count. It reads data and does not change the mocks.

{
  "name": "mock-inventory-summary",
  "steps": [
    {
      "id": "inventory",
      "kind": "tool",
      "tool": "list_mocks",
      "args": {
        "namespace": "YOUR_WORKSPACE",
        "search": "{{input.id}}",
        "limit": 5
      }
    },
    {
      "id": "report",
      "kind": "script",
      "script": "var rows=mk.variables.get(\"steps\").inventory.mocks;mk.variables.set(\"output\",JSON.stringify({count:rows.length,ids:rows.map(function(r){return r.id;})}));"
    }
  ]
}

Run it with {"name":"mock-inventory-summary","input":{"id":"YOUR_MOCK_ID"}} through the run endpoint above. Replace YOUR_MOCK_ID with an existing mock ID. Read the summary from result.outputs.report; a matching mock contributes its ID to ids. The complete response also keeps the outcome of each step. You need permission to read the mocks and run the skill.

Improve a workflow and restore a working version

A saved executable skill retains its recipes by version. Ask the assistant to inspect skill_versions using the skill id returned by list_skills or save_skill, save an improvement, and run it with representative input. If the new behavior is unsuitable, use rollback_skill with that exact id, the retained targetVersion and the observed expectedVersion. Rollback creates a new version; it does not run the skill. Run the restored skill separately and check its result.

HTTP clients read GET /api/v1/agent-skills/{id}/versions?namespace=YOUR_WORKSPACE&limit=20. The reply includes currentVersion, versions and, when another page exists, nextBeforeVersion. Pass that value as beforeVersion to continue. A namespace owner restores a recipe with POST /api/v1/agent-skills/{id}/versions/rollback?namespace=YOUR_WORKSPACE:

{"targetVersion": 1, "expectedVersion": 2}

The reply is the saved skill with its new version. A stale expected version or a source-bound imported skill returns 409; a missing or foreign version returns 404. After an uncertain POST outcome, reread current state and do not automatically repeat the mutation. Current name, enabled state and sharing settings are preserved. Nested tools and skills still resolve with current permissions and definitions; this history restores the saved recipe, not snapshots of its dependencies. Global built-ins and custom inline tools do not use this history. Existing executable skills begin their history at the version present when this feature is installed. Deleting a skill or erasing its workspace removes its retained recipes.

Ask the assistant to call skill_state with the saved skill ID to inspect its current enabled state and version, including when it is disabled. To change a locally authored skill, call set_skill_enabled with that ID, the desired boolean enabled, and expectedVersion from the state you just read. Disabling blocks future invocations; it does not cancel a task already running. Editing a disabled skill keeps it disabled. Activation does not run the recipe, change sharing or grant permissions.

HTTP clients use GET /api/v1/agent-skills/{id}/state?namespace=YOUR_WORKSPACE and the owner-managed POST /api/v1/agent-skills/{id}/activation?namespace=YOUR_WORKSPACE:

{"enabled": false, "expectedVersion": 3}

A changed activation returns a new version; requesting the current value at the current version leaves it unchanged. A stale version returns 409. Imported or otherwise source-bound skills use their existing installation controls and return 409 here. A foreign or missing skill returns 404. If the mutation response is lost, read skill_state before deciding what to do; never automatically replay the change.

Message results in scripts

For a successful NATS request in API Tester, use var result = mk.response.json() in the test script to read the response envelope. Parse JSON.parse(result.reply.data) to inspect a JSON reply payload, and read received headers from result.reply.headers. Check the execution status before accessing a reply; failed requests retain the safe error diagnostic.

For a successful SMTP step, mk.response.json() provides an envelope with type: "smtp" and success: true. In a tests-only collection, mk.smtp.send(...) also makes the latest SMTP result available through mk.response; an auxiliary send from an ordinary request script keeps that request’s primary response. SMTP success means acceptance by the SMTP server, not confirmation of delivery to a recipient. After an interrupted or uncertain send, check the server or inbox before sending again.

SMTP connection fields may be supplied flat or in smtpConfig or config; flat values take precedence, followed by smtpConfig, then config. The default port is 587 when absent, null, zero or empty text. Whole numeric ports and decimal integer strings from environment variables are supported. Other values, fractions and ports outside 1–65535 are refused before connecting. Connection-option normalization keeps the supplied request and unrelated numeric fields intact.

Kafka and RabbitMQ consume helpers use the same message field names as the API response. Read RabbitMQ content from result.messages[0].body and Kafka content from result.messages[0].value; metadata uses headers, timestamp, routingKey, exchange, key, offset and partition where applicable. Handle messages: null or an empty array before reading the first message.

For mk.kafka.consume and mk.rabbitmq.consume, pass maxMessages to bound how many messages one call receives and timeout as a whole number of milliseconds. The same options work in API Tester request data. Kafka defaults to 10 messages and 5 seconds, with a maximum of 10,000 messages. RabbitMQ defaults to and allows at most 50 messages, with a default receive timeout of 10 seconds. Receive timeouts are capped at 5 minutes. Missing or nonpositive options use these defaults; fractional, nonfinite and nonnumeric values are refused. For Kafka, the receive timeout does not replace the connection setup timeout.

Kafka selects the consumer group from consumerGroup, then group, then the builder’s groupId; if none is set, it uses mockarty-consumer. For independent tests, use a distinct group so an earlier consumer’s saved position does not hide messages. RabbitMQ acknowledges only the messages returned by the bounded read; an uncertain acknowledgement is reported as an error and is not automatically repeated.

For RabbitMQ requests in API Tester and scripts, cancelling the caller also interrupts TCP connection setup and the TLS/AMQP handshake. The AMQP URI option connection_timeout sets the connection setup timeout in milliseconds; without it, the default is 30 seconds. An earlier caller deadline still applies. For reads, the configured receive budget starts before connection setup and bounds setup plus consumption (10 seconds by default); arriving messages do not reset it. This does not impose a universal timeout on all stages of a publish request.

ZIP artifacts

Create a ZIP artifact with the explicit media type application/zip. The archive is stored as a downloadable attachment: Mockarty does not extract its files or show their contents in the preview. The preview offers no archive contents; use the download action to save the ZIP.

Two byte limits apply to different things. The artifact service accepts an archive file of up to 25 MiB. The script SDK’s mk.artifact.create has a 1 MiB default limit on the supplied archive bytes. This smaller script limit does not mean that the unpacked files must fit in 1 MiB.

A ZIP may contain up to 1,024 entries, including folders. The combined unpacked file content may be up to 16 MiB, and each file’s unpacked size must be no more than 200 times its compressed size. Empty folders add no content. A value exactly at these limits is allowed if the remaining checks pass. Invalid, encrypted or unsafe archives are refused before storage. Use ordinary stored or deflated ZIP files; archive contents are checked without extracting them to a folder.

Finding another assistant capability

When an assistant needs a capability outside its initial toolset, it can search the available catalogue and select one exact input contract. That selection makes the function available to the model on its next turn, within the request’s size budget. An unavailable or oversized contract is refused explicitly. Selection grants no permission: the operation still checks current workspace access and capabilities before execution. Existing starting tools remain available; discovery does not load every additional schema at once.

Portable skill bundles

When testing a script tool in the editor, correct malformed JSON in the input schema, sample input or structured JSON fields before running it. The editor focuses the invalid field and does not send the test request. The result panel preserves false, 0 and null; an empty string is shown as "". If the server cannot decode the test request (for example, an incomplete JSON object or a draft with the wrong type), it returns HTTP 400 before executing the script; use {} when a saved script needs no sample input.

In the skills library, use Left/Right or Home/End to move between My library and Marketplace, then Enter or Space to open the selected view. Tab moves into its filters. Returning through in-app navigation preserves the active view and its available actions.

In the skills and tools library, Save, Copy, Like, Delete, enable/disable and script Test stay blocked while their request is pending. If a response is missing or cannot confirm the result, Mockarty shows an unknown outcome and keeps that action blocked while this page session remains open, including after closing the dialog or switching namespaces. A later confirmed response can release the block. Updating the displayed item state alone does not confirm the earlier operation. Reloading the application ends this local protection; it does not cancel server work. Viewing a descriptive skill’s instructions is read-only and can be repeated.

Native skills and inline tools are included in the base product; the A2A integration option is not required. Namespace ownership is still required for authoring and import.

Built-in entries show names and summaries in the interface language. Search accepts these labels and the original technical names; the details retain the technical name. This changes presentation only: instructions, scripts and custom entries keep their original content.

In Settings → Agent Skills & Tools, choose Import skill. Paste a JSON text bundle, select Preview, review the instructions and declared prerequisites, then import it into the current namespace. An owner can import; other callers can use enabled skills they can access.

If you choose a bundle file, the preview follows the latest selection. After switching spaces, open the import wizard in the intended space before enabling the skill.

The bundle contains a SKILL.md with YAML name and description, supporting UTF-8 text files, and the pinned source, revision and license. Files are retained exactly. Import does not download dependencies or execute scripts. OpenClaw installer declarations are retained for review and require adapting the bundle before activation. This supports portable text skills from community catalogues; it does not run Hermes/OpenClaw plugins or guarantee that their tool names match Mockarty.

{"files":{"SKILL.md":"---\nname: ci-review\ndescription: Review CI evidence\n---\nRead references/ci.md and summarize the failure.","references/ci.md":"CI evidence to inspect"},"origin":{"Source":"local:ci-review","Revision":"v1","License":"MIT"}}

Limits: 128 files, 256 KiB per file, 1 MiB of text per bundle, 64 KiB of skill instructions. Only exact relative paths are accepted. Unsupported declared prerequisites, including unknown non-empty requirements in Hermes/OpenClaw metadata, disable the imported skill. Enabling it manually does not bypass prerequisite checks for running it or reading its resources; adapt the bundle explicitly before using it. An empty missing-prerequisites report does not replace reviewing instructions and tool compatibility.

The import wizard verifies the returned workspace and skill name against the preview. A missing response or a reply for a different skill leaves the import outcome unknown and blocks another import in the current page session. Check the original skill before repeating the request; reloading the page does not cancel server work.

For automation, POST /api/v1/agent-skills/import?namespace=<namespace> accepts this object; add "preview":true to inspect without saving. To replace an imported bundle, send the current digest as expectedDigest. A conflicting or locally edited skill returns 409. If the namespace changes while an import is being processed, do not repeat it while the first request’s result remains unconfirmed. Permanently deleting a namespace removes its imported skills and resources.

An owner can read back the exact installed bundle with GET /api/v1/agent-skills/{id}/export?namespace=<namespace>. The reply contains name, digest, origin and files; files and origin are exactly the import body, so re-importing them reproduces the same digest with no file loss. Exporting executes nothing and needs no prerequisites to be met, so an imported skill that is disabled because of an unmet dependency can still be exported and adapted. A hand-written skill, a skill edited after import, or stored bytes that no longer verify refuse with 404 or 409 instead of returning content that was never admitted. Export is not exposed as an MCP tool: it returns the complete original bundle, including prose, and is a management/portability surface rather than an agent runtime read.

When an import matches the installed files and origin exactly, either omit expectedDigest or send the installed digest. The replay keeps the same skill, version and activation. A stale supplied digest still returns HTTP 409.

If skill_state reports sourceBound:true, open Retained revisions for the bundle’s digest history and restore controls. The numbered history from skill_versions is for executable recipes. Use My library to disable or remove an imported installation as its workspace owner. Removing the installation ends access through that skill and leaves retained revision data subject to its retention policy.

Retained revisions of an imported skill can be read with GET /api/v1/agent-skills/{id}/revisions?namespace=<namespace>. Each entry identifies the exact digest, source and any retention pins. boundBundleDigest in the skill details identifies the currently installed revision. A pin’s ownedByCurrentActor flag helps identify your pins; it does not grant permission to change them.

An owner can compare a candidate without installing it using POST /api/v1/agent-skills/{id}/revisions/preview with the same files and origin as an import. To roll back, send {"targetDigest":"<retained-digest>","expectedDigest":"<current-digest>"} to /revisions/rollback. A stale digest or a revoked required permission refuses the operation with 409; reread the skill before another attempt. The reply contains the current skill and an updated or replayed outcome.

Named retention pins use POST .../revisions/pin or .../revisions/unpin with {"digest":"<retained-digest>","pin":"<your-name>"}. Only the user who created a named pin can remove it. A pin protects retained content and does not block a newer import or enable execution. History or permission comparisons that exceed their supported size return 429, without a partial result. These controls do not delete revisions. Revision management is not exposed as raw MCP tools or SDK/CLI commands; curated import, run and resource tools retain their existing behavior.

In My library, open an imported descriptive skill and choose Retained revisions. Read its current version and source, enter a retention name to keep a version, or choose Restore revision and confirm. You can remove only your own retention pins. Reading requires your current workspace access; changes require a current namespace owner. A corrupt revision is read-only, and a failed history read is shown as an error. Refresh after a conflicting change before making another decision.

For durable API recovery, an owner can first prepare an action with POST /api/v1/agent-skills/{id}/revisions/operations?namespace=<namespace>. Send {"operation":"rollback","targetDigest":"<retained-digest>","expectedDigest":"<current-digest>"}, or {"operation":"pin","targetDigest":"<retained-digest>","pin":"<your-name>"}; use "unpin" to remove your pin. Preparation returns a receipt with an operationId and does not change the skill or pin. Save that ID before sending the same exact action body to .../operations/{operationId}/execute. Preparation expires after 15 minutes. A successful execute reply contains its terminal receipt; replay of that exact operation returns the saved receipt without repeating the change.

After a lost execute response, read GET .../operations/{operationId} using the same current account and workspace. An applied or not_applied receipt confirms the exact result. A prepared receipt, a missing receipt, an authorization error or an unavailable service does not confirm that the action was refused. To cancel an unresolved prepared action, explicitly send {} to POST .../operations/{operationId}/reconcile and read the terminal receipt. Reconciliation cannot undo an already applied action. Never prepare a replacement or automatically repeat a change while the old outcome is unknown. If the prepare reply itself was lost and you did not save its ID, keep the outcome unresolved; the history list cannot identify it reliably.

GET .../revisions/operations lists only your own receipts for this skill in the current workspace; it returns at most 128 entries, hasMore and nextCursor. To continue, send that cursor as after. Reads and changes require current owner access. These private responses use Cache-Control: no-store. Request identity mismatch returns 409; a reached receipt budget returns 429; unverifiable storage returns 503. Legacy rollback and pin routes remain available, but their lost replies do not provide this saved operation ID. These governance routes are not exposed as raw MCP tools or SDK/CLI commands.

Revision actions with an unknown result

Retaining a named revision, removing your pin, and restoring a revision first prepare an exact operation. The browser records its server operation ID before requesting the change. A revision action stays blocked while its outcome is unknown; closing the dialog or reloading the page does not repeat it.

Open Retained revisions to read the original operation result. Read exact receipt reads the saved operation ID, even if revision history cannot currently be verified. An unavailable result does not prove the action failed. After an authoritative terminal result, read the current skill and complete revision history before making another change.

If the original operation remains prepared, Cancel prepared intent asks for confirmation and then cancels that exact intent. If it already ran, the server returns its original result. Cancelling an intent does not undo a completed revision change. The interface never automatically repeats execution or cancellation.

Older unresolved actions and a lost preparation response can lack a server operation ID. They remain blocked; revision history, a missing pin, or an arbitrary operation from a list cannot establish their outcome. Keep the original browser session and ask an administrator to investigate the original action. There is no automatic reset or retry control for these cases.

Revision actions require a verified current signed-in user and available browser safety storage. These checks protect an unresolved action; they do not grant permission. Current server permissions still govern every request.

External MCP clients use import_skill_bundle, run_skill and read_skill_resource for imported bundles. The native agent can read those bundles through the same reader. For a built-in Harness skill, use OpenCode’s skill tool with id and resource when those fields are available. run_skill returns instructions and bundle metadata with digest, paths and provenance. Read one supporting file with GET /api/v1/agent-skills/resource?namespace=<namespace>&name=<name>&digest=<digest>&path=<encoded-relative-path>. A disabled, deleted, edited or replaced skill refuses old resources. Imported text and supporting files remain untrusted instructions and never grant tools or credentials.

When a native assistant run is bound to an imported skill revision, run_skill reads that retained revision, including when called by a composite skill. Updating the installed version does not silently change the instructions for that run. The skill must still be enabled and the current binding and access must remain valid; a removed revision is refused. A run’s allowed-skill list also applies to nested skill calls. Instructions do not grant permission to execute scripts or use tools.

Open Agent Skills & Tools → Marketplace → Browse configured catalogs to search a configured source. Open an entry to review its name, version, license and SHA-256 before installing. Only a workspace owner can install. A newly installed skill starts disabled and appears in My library. To enable it, explicitly choose Install and enable this version in the same review. You can later disable or remove the skill from My library. To enable it again after disabling it, return to the catalog and review the pinned version.

Configured skill catalogues are available to external MCP clients through skill_catalog_sources, skill_catalog_search and skill_catalog_install. skill_catalog_search reads one source’s index and returns each pinned name@version with the sha256 and licence the catalogue declares — review these values before installing. skill_catalog_install requires that same sha256 and the workspace Owner role: it imports exactly the reviewed package, admits a new or changed revision disabled unless enable:true is passed, and refuses a changed digest (409), an unsupported declared requirement (422) or an unknown source (404). Repeating the installed pin preserves the version and current activation. An explicit enable:true can activate an existing disabled installation. Browsing and installing never execute package content, follow an install hint or install a dependency.

Browse public ClawHub skills in Company Assistant

With Agent Work active, open Assistant → Overview → ClawHub skill catalogue.
Enter a public search term or leave the field empty, then choose Browse
ClawHub
. Results show the publisher and skill name. If ClawHub shares a
version, it appears on the card. A result opens its listing in a new tab.

The Company administrator enables browsing on the server by setting
MOCKARTY_ASSISTANT_CLAWHUB_ENABLED=true and restarting the server. Browsing is
off by default. The server sends the text you submit to ClawHub. Use a public
term and keep company information out of the search field. This view provides
discovery. Use your reviewed skill catalogue to install approved versions.
ClawHub public catalogue

Agent advisor and vision profiles

Open the namespace settings and the AI & Meetings section. Search the available profiles by name or provider in Agent advisor profile or Agent vision profile, select a compatible profile and save. The picker explains unavailable choices and keeps the profile identifier for saving; you can also enter a known identifier. The profile must be enabled and available in this namespace; a server profile is also allowed. The vision profile must have image support enabled. Empty fields disable the corresponding role. The main model remains the model selected for the agent chat.

To disable a role, clear its field and save. Over PUT /api/v1/namespaces/{namespace}/ai-settings, omitting llmTaskProfiles keeps the saved assignments. Supplying llmTaskProfiles replaces all assignments: include every task you want to keep, or send {} to clear them all.

The agent can call ask_advisor for a recommendation and inspect_image for an image attached by the user. The auxiliary model receives the supplied question or selected image and returns a recommendation. It cannot call tools itself. Auxiliary calls consume the agent’s token allowance and are limited to four calls per chat turn, with at most 2,048 output tokens per call. If the selected profile changes or becomes unavailable during a turn, the call is refused; start a new turn after correcting the settings. Profile names are not accepted for these two roles.

Connect a personal Telegram assistant

An administrator first configures and enables a Telegram notification channel with the bot’s token and real username. Then select the namespace you want to work in, open your notification channel settings, and choose Personal assistant on the Telegram channel. Scan the QR code or open the link, and press Start in a private chat with the configured bot.

The link is single-use and expires after ten minutes. Closing its window cancels the pending link; issuing another link for the same bot replaces the previous one. The QR contains a pairing code, not the bot’s credential. This connects to an existing bot; it does not create a Telegram bot or log into your personal Telegram account.

Send /do <task> to submit a task to Mockarty’s native agent. The assistant uses the namespace selected during pairing and your current permissions; changing the header selection afterwards does not change the binding. Pair again to select a different namespace. Disabling the channel or your binding stops assistant dispatch. Permanently deleting its namespace removes the assistant connection and pending links; creating a new namespace with the same name requires a new connection. Task results arrive through the existing messenger task delivery. Scheduled missions continue to use Mockarty’s existing mission scheduling configuration.

For API-driven UI clients, POST /api/v1/channels/telegram/assistant/connect?namespace=<name> accepts {"channelId":"<id>"} and returns the link, QR and expiry. POST /api/v1/channels/telegram/assistant/cancel accepts {"token":"<pairing-code>"}. Both require authentication; connection also requires access to the selected namespace. These account-pairing operations are intentionally outside the SDK, CLI and MCP tool catalogue. An invalid cancellation body or pairing code returns 400; a temporary failure to update the pairing store returns 503, so the pending link may remain valid until retry or expiry.

To check your own pairing by API, send POST /api/v1/channels/telegram/assistant/status?namespace=<name> with {"pairingId":"<pairingId-from-connect>"} or {"channelId":"<channel-UUID>"}. Use the non-secret pairingId returned by connect, not the single-use pairing code. The response reports waiting, connected, expired, revoked or not_connected; a disabled, deleted or moved bot reports not_connected. Only connected includes the namespace and configured bot username. A system Auditor cannot connect, complete a pairing, revoke or dispatch assistant tasks. Status and revoke require a current namespace role of User or higher; Viewer access is insufficient, including when the polling identifier is invalid. These personal onboarding requests remain outside the SDK, CLI and MCP catalogue.

To disconnect your assistant, send POST /api/v1/channels/telegram/assistant/revoke?namespace=<name> with {"channelId":"<channel-UUID>"}. This disables your connection and removes your pending links for that bot. Repeating revoke for your existing connection succeeds; a bot with no connection or pending link owned by you returns 404. Channel IDs must be UUIDs: malformed IDs return 400. Insufficient current namespace access returns 403; a temporary failure to check access or read/write the pairing returns 503. Status and revoke responses are not cached.
If the browser cannot confirm the result of a disconnect — for example the connection drops after the request was sent — it does not repeat the disconnect. It verifies the current pairing state once and keeps the Disconnect and Reissue link controls closed until a confirmed state arrives, showing that the result is being verified. Once the state is confirmed the controls follow it, so a repeat click can never send a second disconnect.

If you rename an imported skill in the editor, resource access stops. To import the original name again, restore the original name or delete the renamed skill first; this prevents an old bundle alias from attaching to another skill.

Store assistant preferences through the API

You can also open My preferences from the Autonomous Missions overview or Personal preferences in the knowledge editor. Language, response style, report format and time zone are saved separately for you in the current workspace. Workspace defaults removes your override; No preference saves an explicit empty value. A conflicting change requires rereading the saved setting before another edit. Changes apply from your next message in the native agent chat; existing messages and running missions are unchanged.

The preference API stores presentation choices: response_language, response_style, report_format and time_zone. Native chat applies your personal choices and workspace defaults on each new message. Your current request takes priority. Resetting the response language restores the interface-language default without changing the interface or schedule time zones. Values never grant access or change mission limits.

If saved preferences are unavailable to you in the current workspace, chat continues without them and displays a notice. A storage failure asks you to retry instead of using stale settings. This applies to signed-in human chat sessions; API-key calls, delegated agents and autonomous missions do not automatically inherit private preferences. Selecting a QA product does not select an issue-tracker project’s preferences.

When saved preferences are unavailable with your current access, streaming chat emits preferences_status; a non-streaming agent response includes optional preferencesStatus: {"status":"not_applied","reason":"access_unavailable"}. This notice contains no saved values and grants no access. It is omitted when no such notice occurred, and can accompany a later error response.

Use /api/v1/namespaces/<namespace>/assistant/preferences/<key> to read (GET), save (PUT) or remove (DELETE) a choice. By default it belongs to the authenticated user. The current namespace role must be User or higher. Add ?scope=project&projectId=<project-UUID> for a project you can currently access; its values are scoped to your current namespace role. An optional role must match that role. ?scope=persona manages namespace defaults and requires Owner. A system Auditor cannot save or remove values, even with a namespace membership.

A save body must contain a string, for example {"value":"ru"}. Missing or null values are rejected with 400. Values are UTF-8 text up to 4,096 bytes. An empty string explicitly resets the choice to the product default; deleting the choice restores inheritance from lower layers.

For a new choice, omit If-Match or send If-Match: 0. This creates only: an existing choice returns 409. To update or delete, first read the choice and copy its complete quoted ETag response header into If-Match. A successful save returns the new ETag. A stale value returns 409; read again and decide whether to retry. A delete without a current strong ETag, or an update using a positive numeric revision, returns 428. Deleting and recreating a namespace requires a fresh read; old values cannot authorize changes to its replacement.

GET /api/v1/namespaces/<namespace>/assistant/preferences returns the resolved values and their origins; add projectId to include that project’s layer. Personal choices override namespace defaults, which override project choices. These account settings are available through the API; they are not published as SDK, CLI or MCP operations.

Typed workplace preferences

For structured personal settings, read GET /api/v1/namespaces/<namespace>/workplace/preferences or use the workplace_preferences_get MCP tool. Save one kind with PUT /api/v1/namespaces/<namespace>/workplace/preferences/<prefType> or workplace_preference_set. Supported kinds are role, working_hours, notifications, models and personal_facts. These settings are separate from the native chat presentation choices above; saving a workplace setting does not grant permissions or start work.

For example, create a role choice with {"payload":{"role":"qa"},"expectedRevision":0}. For an update, supply the saved row’s revision as expectedRevision. Only your own personal scope is accepted. The typed payload allows at most 8,192 encoded JSON bytes, and the complete request at most 16,384 bytes. Send exactly one JSON object; unknown payload fields are rejected.

Reading and saving require an active account and current workspace access of User or higher. A system Auditor cannot save settings. Loss of access returns 403 access_denied. If the workspace is replaced during a request, 409 stale_authority asks you to reopen it and reread your settings. A conflicting revision returns 409 revision_conflict; review the current value before another save. These personal settings are not exposed through SDK or CLI commands.

An unavailable model returns 400 model_unavailable. A fact that cannot be confirmed returns 404 fact_not_confirmable; another person’s private fact gets the same response as an absent fact. A changed fact you can access returns 409 digest_mismatch: confirm its current revision before saving. If the verification source is unavailable, the request returns 503 workplace_unavailable and saves nothing.

A personal fact whose declared expiry has passed cannot be confirmed or reused as a confirmed reference, even before background cleanup.

Review packages before connecting them

In a plugin marketplace, Install first opens a review. Check the source, exact version and archive digest, licence, declared dependencies, permissions and outbound access. The offline assessment describes what this deployment supports; it does not execute the package or install dependencies. A blocked or unsupported package cannot be installed from the review. Global installation requires a separately approved installation request; approval alone does not install or activate anything.

Confirm only the reviewed package and scope. If the catalogue changes, obtain a fresh review and approve that version explicitly. If an installation response is lost or does not confirm the exact package, read the installed state before taking another action; closing or reloading the tab does not cancel server work. A confirmed refusal before installation requires a new review, rather than a repeated submission of the old approval.

Pinned skill catalogues refuse unsupported packages before importing a revision. Mandatory binaries remain required; an alternative-binary group needs one available alternative. If a skill declares a licence in its instructions, it must agree with its pinned provenance. Custom licences still require the user’s review. These checks do not replace reviewing the skill’s instructions and capabilities.

Operational run controls

The assistant operations metrics are a bounded snapshot of the current workspace.
truncated: true means older runs are outside that snapshot. Execution time is
unknown when only start and finish times are available; wall time also includes
waiting. Artifact counts come from the validated result envelope. References to
acceptance evidence do not count as passed checks.

Per-run inspection and cancellation retain the task owner’s access checks.
Reconciliation additionally requires Coder Deploy permission. Read the exact
receipt key and version from the task before deciding: send both receiptKey
and expectedVersion, including an explicit zero when that is the reviewed
version. A missing identity cannot select the latest effect on your behalf.
A running task must stop first; a cancelled task cannot retry an external action.
An uncertain response requires readback before another decision.

The autonomy pause/resume endpoints return an unavailable response until a real
admission control is connected. A successful local helper test does not mean
new runs are paused across the deployment.

Review self-improvement candidates

API callers can tie a proposal to one saved script run by adding sourceRunId when creating a candidate. The server verifies the run and the current saved tool version; it does not copy run input, output or logs into the candidate. The same author repeating the same run-bound proposal receives the existing revision. A changed, deleted or unproven source is refused; an unknown source usage state stays on hold. This creates a proposal only: testing, independent human review, disabled publication and explicit activation remain separate steps.

To apply a decision to the state you read, copy the ETag header from the candidate details response into the If-Match header of the review, publish, enable or disable, or rollback request. Use the same signed-in account. Send one exact value, including its quotes. If the candidate changed or its workspace was recreated, the server returns 412. Read the candidate again and check the new state before deciding. A malformed value returns 400. Use this check only when every server node handling the request has been upgraded to support it. Requests without the header follow the existing workflow. The legacy sandbox route uses its original request format.

A Company workspace owner can read the current published tool through GET /api/v1/namespaces/{namespace}/assistant/skill-candidates/v1/{candidateId}/publication. The response contains candidate and tool versions, activation state and the current candidate ETag. It requires an active Agent Work licence and permission to manage missions in that workspace. A missing publication returns 404. A tool that no longer matches its publication returns 409. The read records no decision. It shows the current state, so it cannot tell whether an earlier request took effect.

Company decisions through the versioned API use POST /api/v1/namespaces/{namespace}/assistant/skill-candidates/v1/{candidateId}/decision. Supply the current If-Match value from the same signed-in owner. Send action and the exact positive version in every request. Use review with decision (approve or reject), evidenceDigest, and an optional note. Use publish with the same evidence digest. To change activation, use enable with an explicit boolean enabled and the active revision. Use rollback with the active revision and the previous reviewed publication as targetVersion. The Server rechecks the session, owner role and Agent Work when storing the decision. A missing validator returns 428, and a stale validator returns 412. Read the current candidate before making another decision.

Clients that need a durable decision receipt can send the same decision body to POST /api/v1/namespaces/{namespace}/assistant/skill-candidates/v1/{candidateId}/decision/operations/{operationId} with a fresh operation UUID and the original If-Match. After a lost reply, read that operation with GET using the same owner. An applied receipt describes the original write. The current candidate can change afterward. If the operation has no receipt and the original validator is still current, the owner can send POST to that operation with /retire appended, the original If-Match, and an empty JSON object. A later read shows the retired receipt. The candidate retains up to 32 recent receipts. During a rolling upgrade, use receipt-based recovery after upgrading all servers that can write these candidates. A missing receipt alone leaves the outcome unconfirmed.

On a server, open Settings → Agent Skills & Tools → Self-improvement candidates. On Desktop, open Desktop Control Panel → Agent Skills & Tools → Self-improvement candidates. Choose a candidate by name and check its lesson, exact revision, requested capabilities, assertions and sandbox evidence. Technical identifiers and the exact script are available in expandable details. A list of capabilities does not grant access. Search by name or use Show more to reach the rest of the returned list. Reading the same list keeps your search and current rows in place.

To run a sandbox test through the Company API, send POST /api/v1/namespaces/{namespace}/assistant/skill-candidates/v1/{candidateId}/sandbox/{version} with the same owner’s current If-Match and a JSON body such as {"budgetMicros":1000,"input":{}}. The cost cap must be positive. The Server checks the current session, owner role, Agent Work, and mission write access before reserving the test. Testing uses the assertions saved with that revision.

If the response is lost or reports an unconfirmed outcome, read GET /api/v1/namespaces/{namespace}/assistant/skill-candidates/v1/{candidateId}/sandbox/{version}/{attemptId} as the initiating owner. The attempt ID is the 64 hexadecimal digits in the original ETag, without quotes or the candidate1. prefix. This read cannot start a test. The Server retains the latest Company attempt per revision. If Agent Work lapses, the initiating owner can still read the retained receipt. A missing receipt alone gives no basis for repeating the request.

An owner with Agent Work can invalidate an unclaimed request through POST /api/v1/namespaces/{namespace}/assistant/skill-candidates/v1/{candidateId}/sandbox/{version}/{attemptId}/retire. Send the original If-Match and an empty JSON object. A 204 confirms that Company retired the original validator before it could start the test. Other unclaimed requests using that same validator also need a fresh read. If Company returns 412 or the response is lost, read the original attempt again.

In connected Desktop, select a Company workspace and open Desktop Control Panel → Agent Skills & Tools → Self-improvement candidates. The list and the decision controls use the Company account. Owners with Agent Work can review, publish, enable, disable, and restore revisions there. When the Company Server supports guarded sandbox tests, choose a revision, enter the JSON input and set the cost cap before selecting Run sandbox test. If the response is lost, reopen the candidate in the same Company workspace and select Read recovery options to check the original attempt. Desktop keeps the recovery hold after restart. If Company still has the exact original validator and no receipt, select Invalidate original request. This prevents a delayed copy of that request from starting a test. If a launch already claimed the validator, read the original receipt again. Checking a receipt sends no new test. If Desktop confirms the action was never sent, review the latest candidate before trying it again. While disconnected, the Company list is unavailable. When a decision response is lost, reopen the same candidate in the same Company workspace and read its current state before choosing a recovery action.

Run a sandbox test with a JSON input object and a cost cap. Only passing evidence for that exact revision can proceed to independent human review. The author cannot review or publish their own candidate. A reviewed or published revision cannot be tested again; changed code or tests need a new candidate revision. Changes require workspace-owner access, and the server checks the authenticated human session for review, publication and activation.

A sandbox run whose result is unconfirmed cannot be repeated on the same revision. Read the current state and allow an in-progress run to settle. Create a new revision if an interrupted run remains unconfirmed.

Publish disabled revision keeps the tool unavailable for future assistant runs. Enable this published revision is a separate decision bound to the displayed published revision. Disabling affects future use; it does not cancel work already running. Restore previous reviewed revision selects the previous reviewed publication while retaining its activation state. The library switch for such a tool opens this governed review instead of changing it directly. Ordinary manual tool editing remains available.

After a change, the screen reads the server state before showing confirmation. If the response or outcome is uncertain, it keeps your draft and blocks repeat changes. Read current state is read-only and does not retry or automatically resolve the uncertain operation; ask the workspace owner to verify it. Closing the dialog or reloading does not cancel server work. The current browser tab remembers pending or uncertain candidate decisions after a reload for the same account and workspace, without storing the script input or review draft. Reading a matching state alone cannot identify an earlier uncertain operation; it does not unblock another submission. This is not a cross-device recovery guarantee.

For an uncertain database decision, Read recovery options first reads the current candidate and published tool. Keep this published revision disabled is a separate human decision bound to the displayed publication and current state, including when it already appears disabled. Confirmation requires the tool to read back disabled; it does not claim the earlier request succeeded. If an immutable review for the exact requested revision is observed, Use the observed review explicitly adopts that current review instead of sending the earlier decision again. An unknown sandbox execution cannot be cleared by these controls. Older decisions without a state pin remain blocked. If no matching publication exists, there is no current tool to disable; the original uncertainty remains.

A direct candidate link uses /ui/settings?tab=agent-skills&namespace=<workspace>&candidateId=<candidate-id>&candidateVersion=<revision>. On Desktop, it opens the same workspace and revision in the Control Panel. The workspace must match the current selected workspace, and the revision must be an explicit positive integer present in the current server record. Opening a link only reads and selects that exact revision; it does not run a test, approve, publish or activate anything. An explicitly scoped sandbox link keeps its exact selection when the interface omits the default workspace from the address. A link that did not specify a workspace is still refused. A malformed or unavailable linked revision shows an error instead of selecting the latest revision. Ordinary list selection and library navigation retain their usual behaviour.

Author a skill with text assets

The built-in coder-skill-authoring playbook helps prepare a small reusable skill package. Keep instructions in SKILL.md, detailed guidance in references/, and output materials such as CSS, SVG and HTML templates in assets/. These files travel together when a supported text bundle is copied through the sharing marketplace. Catalogue-managed or separately licensed packages keep their existing installation controls; use their reviewed catalogue entry instead of copying around those controls.

Review the exact files, source, licence and target audience before installation or publication. save_skill saves an active definition; it is not a draft action. For an accepted assistant result, use the existing result-draft preview and human publication flow. For a package produced in a coding harness, review the files and explicitly import them with the existing bundle import flow. An agent must not invent an accepted result or a reviewer identity. Shared result publication still requires its second reviewer.

Supporting files remain text-only: at most 128 files, 256 KiB per file and 1 MiB total, with UTF-8 content and no NUL bytes. PNG images, font binaries and PowerPoint/Word templates are not accepted by this format. Encoding a binary as text does not make it a supported asset. A scripts/ member is stored as data and never runs automatically. Use run_skill to obtain the bundle digest and paths, then read_skill_resource to read the exact supporting file you need.