alibaba / alibaba/arthas

使用arthas mcp, tt相关命令, 报错 Unknown error occurred

Open
#3,201 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
37.5k
Forks
7.6k
Avg merge
1d 22h
Merged PRs (30d)
4

Description

- [x] 我已经在 [issues](https://github.com/alibaba/arthas/issues) 里搜索,没有重复的issue。

### 环境信息

* `arthas-boot.jar` 或者 `as.sh` 的版本: 4.1.8
* Arthas 版本: 4.1.8
* 操作系统版本: linux
* 目标进程的JVM版本: jdk21
* 执行`arthas-boot`的版本: 4.1.8

### 重现问题的步骤

1. 连接http://my-server-ip:8563/mcp
2. 使用 以及对应的mcp-session-id请求
record和list和info都会报错,delete-all能够正常返回,且登陆机器后查看确实都delete了

Authorization: Bearer xxx
Content-Type: application/json
Accept: application/json, text/event-stream
mcp-session-id: 77241342-df48-4713-8f8e-7ddc9cfa10bc

{
"jsonrpc": "2.0",
"id": 8,
"method": "tools/call",
"params": {
"name": "tt",
"arguments": {
"action": "record",
"classPattern": "xxx.xxx.xxxClass",
"methodPattern": "method"
}
}
}

3. 报错示例
{
"jsonrpc": "2.0",
"id": 8,
"result": {
"content": [
{
"type": "text",
"text": "Unknown error occurred"
}
],
"isError": true
}
}

### 期望的结果

正常执行tt record/list/info等命令

### 实际运行的结果

实际运行结果,最好有详细的日志,异常栈。尽量贴文本。

{
"jsonrpc": "2.0",
"id": 8,
"result": {
"content": [
{
"type": "text",
"text": "Unknown error occurred"
}
],
"isError": true
}
}

声明:环境绝对正常,monitor,stack,trace,tt,watch,profiler,jvm,dashboard,memory,测试了9个mcp tools,只有tt不能正常执行。

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the MCP request at /mcp for the tt record, list, and info actions on Arthas 4.1.8 with JDK 21, Linux, and the supplied session and authorization headers. Capture the detailed exception or stack trace and compare these failures with the working delete-all and other MCP tools; done when tt commands execute normally and return useful results.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.