We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/oceanbase/mcp-oceanbase'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
# obdiag MCP Server
obdiag (OceanBase Diagnostic Tool) MCP Server.
[English](obdiag_mcp_server.md) | 简体中文
## 前置条件
在使用 obdiag MCP Server 之前,请确保:
1. **已安装 obdiag**:服务器需要 obdiag 已安装并可通过 `obdiag` 命令访问。
2. **配置文件存在**:obdiag 配置文件应存在于 `~/.obdiag/config.yml`。
安装obdiag请参考:
[obidag 下载链接](https://www.oceanbase.com/softwarecenter)
[obdiag 安装文档](https://www.oceanbase.com/docs/common-obdiag-cn-1000000003892386)
## 启动
### 支持多种类型的mcp
可通过如下指令启动不同协议的 obdiag mcp
```shell
uvx obdiag-mcp sse # sse 模式,默认端口 8000。 (推荐使用)
uvx obdiag-mcp stdio # stdio 模式
uvx obdiag-mcp sse 8001 # sse 模式,指定端口 8001
uvx obdiag-mcp streamable-http # streamable-http 模式,默认端口 8000
uvx obdiag-mcp streamable-http 8001 # streamable-http 模式,指定端口 8001
```
## 使用方式
配合 MCP Client 使用,必须使用支持 Prompt 的客户端,如:Claude Desktop。输入请求前需要手动选取所需的 Prompt,然后输入请求。
Claude Desktop config example:
```json
{
"mcpServers": {
"obdiag": {
"url": "http://{host}:8000/mcp"
}
}
}
```
## 可用工具
obdiag MCP Server 提供以下诊断工具:
- **obdiag_check_run**:执行集群巡检并返回巡检报告
- **obdiag_analyze_log**:分析集群日志,找出发生过的错误信息
- **obdiag_display_list**:查询可用的诊断命令并返回支持的指令列表
- **obdiag_display_run**:执行特定的诊断命令,支持可选的环境变量
## 社区
当你需要帮助时,你可以在 [https://ask.oceanbase.com](https://ask.oceanbase.com) 上找到开发者和其他的社区伙伴。
当你发现项目缺陷时,请在 [issues](https://github.com/oceanbase/mcp-oceanbase/issues) 页面创建一个新的 issue。
## 许可证
更多信息见 [LICENSE](../LICENSE)。