Agent Mode
Agent Mode turns your connected MCP server into an AI-powered assistant. You chat with an LLM that autonomously selects and executes MCP tools, chains multiple calls together, and reasons through complex tasks — while you watch every step unfold in real time.
LLM configuration
In the Playground, switch to the Agent tab, then click the LLM Config button to open the configuration panel.
Provider and model
Select your LLM provider from the dropdown. ProtoMCP supports all major providers:
OpenAI
Anthropic
Google Gemini
Groq
Together AI
You can also type any custom model name directly into the model field for self-hosted or unlisted models.
API key
Paste your provider API key into the API Key field. The field is masked by default — click the eye icon to reveal it. Check Keep for session to save the key in your browser's sessionStorage so you don't need to re-enter it on page refresh.
Advanced parameters
Temperature
0.0 – 2.0
Controls randomness. Lower values make responses more focused and deterministic; higher values make them more creative. Default: 0.7
Max Tokens
100 – 128000
Maximum number of tokens the LLM can generate per response. Default: 4096
Max Iterations
1 – 50
Maximum number of reasoning steps (tool call → result → next call) the agent can take before stopping. Default: 10
System prompt
Customize the agent's behavior by editing the system prompt. The default instructs the agent to explain what it's doing and why when using tools. You can replace this with domain-specific instructions tailored to your MCP server.
Tool filter
By default, the agent has access to all tools across all connected servers. Use the Tool Filter section to enable or disable specific tools. This is useful when you want to constrain the agent to a subset of capabilities or prevent it from calling certain tools.
Using the chat panel
Once your LLM is configured, type your message in the chat input and press Enter to send (Shift + Enter for a new line). The agent will start reasoning and executing tools to answer your request.
Your message
Right-aligned bubble. Shows your input text.
Agent response
Left-aligned bubble. Renders markdown. May include tool call cards and result cards inline.
Tool call card
Shows which tool the agent is calling and its arguments. Expandable to see the full JSON.
Tool result card
Shows the tool's output. Green for success, red for error. Expandable to see the full result.
Tool confirmation mode
Enable Approve each tool call before execution in the LLM Config panel to put the agent in confirmation mode. When active, the agent pauses before executing any tool and shows a confirmation dialog:
Tool Call Confirmation
The dialog shows the tool name, the server it belongs to, and the full arguments the agent intends to pass. You have 120 seconds to respond before the request times out.
Trace panel
Click the Trace tab in Agent Mode to see the full execution timeline. Every event in the agent's reasoning loop is recorded here — from the initial LLM call to each tool execution and the final response.
user_message
Your input message that started this agent run
llm_call_start
Agent called the LLM — shows model, iteration number, and available tool count
thought
The LLM's internal reasoning text before deciding which tool to call
tool_call
A tool call the agent is making — shows function name and arguments
tool_result
The result returned by the tool — green for success, red for error
llm_response
LLM finished a generation step — shows finish reason and token count
usage
Token usage for this step: prompt tokens, completion tokens, total
final_response
The agent's completed response — what appears in the chat panel
Each event shows the time elapsed since the previous event (in ms or seconds). Click any event to expand it and see the full JSON data. Multi-step agent runs are grouped by iteration number so you can follow the full reasoning chain.
Session management
New session
Click New Session (+ icon) to start a fresh conversation. The current chat and trace are automatically saved to session history before being cleared. The agent starts with a clean context — no memory of previous messages.
Session history
Click the History button (clock icon) to open the session history panel. Up to 5 previous sessions are stored in your browser's sessionStorage. Each entry shows:
- The title (first message you sent in that session)
- Timestamp of when the session was created
Click a session to restore its full chat history, trace events, and token usage. Hover a session to reveal the delete button.
Stop and cancel
While the agent is running, the Send button becomes a red Stop button. Click it to immediately cancel the agent run. The agent loop stops immediately and any in-flight model request is cancelled.
Explore before you automate
Not sure which tools your server exposes? Use Explore Mode first to browse and test capabilities manually, then switch to Agent Mode to automate them.
Explore Mode guide