QA agent service 集合
Project description
QA - agent service 集合
项目结构
server.py: MCP接口定义和服务启动入口src/: 核心功能模块实现conf/: 配置文件utils/: 工具函数logs/: 日志文件夹
功能特性
-
天气服务(demo):
- 获取美国各州天气警报信息
- 基于经纬度获取天气预报
-
日志检索服务:
- 从Grafana获取各业务服务的日志
- 支持按关键字、时间等条件筛选
- 支持获取服务接口列表
环境配置与启动
项目现在使用ux进行构建和打包,提供了多种安装运行方式。
1. 从PyPI安装
# 直接从PyPI安装
pip install minimax-qa-mcp
# 运行服务
minimax-qa-mcp
2. 开发模式
# 安装依赖
pip install ux
pip install -r requirements.txt
# 开发模式运行
bash run.sh
# 或
ux run
3. 构建与发布
# 构建项目
bash build.sh
# 发布到PyPI
bash publish.sh
4. 查看启动
本地生成 log/agent_log.log文件,且打印
INFO: Uvicorn running on http://0.0.0.0:8888 (Press CTRL+C to quit)
5. 集成到MCP客户端
curl
http://0.0.0.0:8888/sse
Python模块方式
python -m minimax_qa_mcp.server
Claude Desktop 配置
{
"agent_name": {
"command": "minimax-qa-mcp",
"args": ["--host", "0.0.0.0", "--port", "8888"]
}
}
API 说明
天气服务(demo)
get_alerts(state): 获取指定州的天气警报get_forecast(latitude, longitude): 获取指定位置的天气预报
日志服务
get_grafana_data(scene, psm, msg, from_time, to_time): 获取业务的grafana日志get_top_methods(scene, psm): 获取服务存在调用的接口列表get_http_data(scene, psm, api_path, from_time, to_time): 获取业务http接口流量日志query_code_segments(query, query_type, limit, exact, advanced, depth, direction, output): 查询代码片段gen_case(input_data, pwd): 生成link_caseget_weaviate_info(input_data): 获取业务相关信息
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
minimax_qa_mcp-0.2.0.tar.gz
(74.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file minimax_qa_mcp-0.2.0.tar.gz.
File metadata
- Download URL: minimax_qa_mcp-0.2.0.tar.gz
- Upload date:
- Size: 74.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cb05a94ffc64d24c7276f1c14b266e6c6cfb5cb35e3cfed74ba7b6f9bd6d137
|
|
| MD5 |
a8fae25c2d3aca6a0cb3542e69f78922
|
|
| BLAKE2b-256 |
27ccab1a35b9e795967fbb22d824af5f62bfb361e06fe0b8ce8f518f3c430fc5
|
File details
Details for the file minimax_qa_mcp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: minimax_qa_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 79.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc74c0c56046d561a843053dbf9be9262ddb06178899a297d2cf8ea04656c17f
|
|
| MD5 |
57f233ec1cb78542296b99a03fb63074
|
|
| BLAKE2b-256 |
8fd07266ff1c315af6d9d64d9d599fa5aa29b49ec792067a153a48dc69d30475
|