"Description": "Learn how to connect AI tools like Cursor, Claude Desktop, and VS Code to ABP Studio using the Model Context Protocol (MCP)."
"Description": "Learn how to connect AI tools like Cursor, Claude Desktop, and VS Code to ABP Studio using the Model Context Protocol (MCP), and see the tools currently exposed by Studio."
}
}
```
```
@ -17,7 +17,7 @@
}
}
````
````
ABP Studio includes built-in [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) support so AI tools can query runtime telemetry and control solution runner operations.
ABP Studio includes built-in [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) support so AI tools can inspect runtime telemetry, work with the Solution Runner, build projects, generate proxies, run custom commands, inspect Kubernetes-related data, and automate ABP Studio's embedded browser.
## How It Works
## How It Works
@ -30,6 +30,8 @@ MCP Client (Cursor / Claude Desktop / VS Code)
> ABP Studio must be running while MCP is used. If ABP Studio is not running (or its MCP endpoint is unavailable), `abp mcp-studio` returns an error to the AI client.
> ABP Studio must be running while MCP is used. If ABP Studio is not running (or its MCP endpoint is unavailable), `abp mcp-studio` returns an error to the AI client.
By default, the bridge connects to `http://localhost:38280/mcp/`. You can override this with the `--endpoint` option.
## Configuration
## Configuration
### Cursor (`.cursor/mcp.json`)
### Cursor (`.cursor/mcp.json`)
@ -79,55 +81,78 @@ Claude Desktop config file locations:
### Quick Reference
### Quick Reference
You can run `abp help mcp-studio` at any time to see the available options and example configuration snippets for each supported IDE directly in your terminal.
You can run `abp help mcp-studio` at any time to see the available options and example configuration snippets directly in your terminal.
### Generating Config Files from ABP Studio
### Generating Config Files from ABP Studio
When creating a new solution, ABP Studio can generate MCP configuration files for Cursor and VS Code automatically.
ABP Studio solution templates can generate the VS Code MCP configuration file (`.vscode/mcp.json`) during solution creation. Cursor and Claude Desktop can be configured with the snippets shown above.
## Available Tools
## Available Tools
ABP Studio exposes the following tools to MCP clients. All tools operate on the currently open solution and selected run profile in ABP Studio.
ABP Studio exposes the following tools to MCP clients. All tools operate on the currently open solution. Tools that interact with Solution Runner also require a selected run profile.
### Monitoring
### Runtime Monitoring
| Tool | Description |
| Tool | Description |
|------|-------------|
|------|-------------|
| `list_applications` | Lists all running ABP applications connected to ABP Studio. |
| `get_exceptions` | Gets recent exceptions including stack traces and error messages. |
| `get_exceptions` | Gets recent exceptions including stack traces and error messages. |
| `get_logs` | Gets log entries. Can be filtered by log level. |
| `get_logs` | Gets runtime log entries. Can be filtered by application name and minimum log level. |
| `get_requests` | Gets HTTP request information. Can be filtered by status code. |
| `get_requests` | Gets HTTP request information. Can be filtered by application name, status code, and URL substring. |
| `generate_angular_proxies` | Generates Angular service proxies from a running API application. |
### Custom Commands and Kubernetes
| Tool | Description |
|------|-------------|
| `list_custom_commands` | Lists custom commands defined in the current solution. |
| `run_custom_command` | Runs a custom command for a supported target and waits for completion. |
| `list_kubernetes_charts` | Lists Helm charts defined in the solution. |
| `list_kubernetes_services` | Lists services from the selected Kubernetes profile. |
### Embedded Browser
| Tool | Description |
|------|-------------|
| `browser_list_tabs` | Lists open tabs in ABP Studio's embedded browser. |
| `browser_open` | Opens or navigates an embedded browser tab to a URL. |
| `browser_snapshot` | Returns the current page title, URL, visible text, and interactive elements. |
| `browser_wait_for` | Waits for time-based or text-based conditions in a browser tab. |
| `browser_screenshot` | Captures a PNG screenshot of the selected browser tab. |
| `browser_click` | Clicks an element in the embedded browser by CSS selector. |
| `browser_type` | Types into an editable element in the embedded browser by CSS selector. |
| `browser_evaluate` | Runs JavaScript in the selected embedded browser tab and returns the result. |
| `browser_console` | Reads captured console output from the selected embedded browser tab. |
## Notes
## Notes
- Monitor data (exceptions, logs, requests, events) is kept in memory and is cleared when the solution is closed.
- Monitor data (exceptions, logs, requests, events) is kept in memory, capped at 100 entries per application for each data type, and is cleared when the solution is closed.
- A dedicated `clear_monitor` MCP tool is not currently exposed. Closing the solution in ABP Studio clears the collected monitor data.
- Some tools depend on the current Studio context. For example, Solution Runner tools need a selected run profile, and `list_kubernetes_services` uses the selected Kubernetes profile.
- The `abp mcp-studio` command connects to the local ABP Studio instance. This is separate from the `abp mcp` command, which connects to the ABP.IO cloud MCP service and requires an active license.
- The `abp mcp-studio` command connects to the local ABP Studio instance. This is separate from the `abp mcp` command, which connects to the ABP.IO cloud MCP service and requires an active license.