使用arthas mcp, tt相关命令, 报错 Unknown error occurred · Issue #3201 · alibaba/arthas · GitHub
Skip to content

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

Open

Description

@JhoniWu
  • 我已经在 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"
}
}
}

  1. 报错示例
    {
    "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不能正常执行。

Activity

  1. hengyunabc commented on May 27, 2026

    @hengyunabc
    Collaborator

    试下最新的 4.2.0 。另个,可以看下 ~/logs/arthas/arthas.log 里的日志。

  2. JhoniWu commented on May 27, 2026

    @JhoniWu
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions