zhenyun-pangun-mcp
zhenyun-pangun-mcp
Zhenyun Pangu 범용 도구 MCP로, 모든 MCP 클라이언트(Claude Desktop / Cursor / 각종 agent)에서 재사용할 수 있습니다.
완전 자체 포함: 외부 프로젝트 디렉터리에 의존하지 않으며, .env에 실제 자격 증명만 구성하면 사용할 수 있습니다.
기능 개요
도구는 접두사별로 그룹화되어 있습니다(총 17개):
접두사 | 도구 | 설명 |
|
| 로그 조회: Loki 이중 플랫폼(aws 해외 전체 환경 + cn 국내 비프로덕션) + 알리바바 클라우드 SLS(cn 국내 Pangu prod만 해당) |
|
| 데이터베이스 조회(Archery 이중 사이트 cn/aws + Pangu 전용 테넌트/데이터베이스/인스턴스 기능) |
|
| Choerodon 협업(내장 Python 클라이언트, 순수 HTTP 로그인) |
|
| 로컬 코드 저장소 간 검색(내용 / 파일명 / 모듈 구조) |
Related MCP server: OpenObserve MCP Server
로그 플랫폼 구분(중요)
Pangu 로그는 세 가지 다른 플랫폼에 분산되어 있으므로, 조회 전에 대상 환경이 어떤 플랫폼에 속하는지 먼저 확인해야 합니다:
기능 | 환경 | 플랫폼 | 데이터 소스 / project | 태그 체계 |
| AWS 해외(전체 환경) | Grafana/Loki |
|
|
| cn 국내 비프로덕션(dev/test) | Grafana/Loki |
|
|
| cn 국내 Pangu prod만 해당 | 알리바바 클라우드 SLS |
|
|
cn 국내 Pangu
prod로그 = 알리바바 클라우드 SLS(연동 방식은log-ops-mcp에서 복제),obs_sls_query로 조회.cn 국내 Pangu
dev/test등 비프로덕션은obs_log_query(region="cn")사용, Pangu 비프로덕션 패널(namespace=saas-dev-new/saas-test-new) 로그는Loki (pangu-noneprod)데이터 소스에 있음.AWS 해외(prod/비프로덕션 관계없음) 모두
obs_log_query(region="aws")사용.⚠️ 라우팅 철칙: cn 국내 Pangu prod는 SLS를 사용하고, 나머지(cn 비프로덕션 + 전체 AWS)는 모두 Loki를 사용. Pangu 비프로덕션에서는
obs_sls_query를 호출하지 마세요.
세 플랫폼의 로그인 자격 증명과 데이터 소스 이름은 모두
.env에서 개별적으로 구성되며, 자세한 내용은.env.example을 참조하세요.
설치 및 실행
cd zhenyun-pangun-mcp
uv sync # 或 pip install -e .
cp .env.example .env # 填写真实凭据stdio로 실행:
uv run zhenyun-pangun-mcp
# 或
python -m zhenyun_pangun_mcpMCP 클라이언트 구성
{
"mcpServers": {
"zhenyun-pangun-mcp": {
"command": "uvx",
"args": ["--from", "/path/to/zhenyun-pangun-mcp", "zhenyun-pangun-mcp"],
"env": {
"MCP_ENV_DIR": "/path/to/zhenyun-pangun-mcp"
}
}
}
}구성 항목(.env)
그룹 | 환경 변수 | 설명 |
Archery |
| 데이터베이스 게이트웨이 cn/aws 자격 증명 |
| 인스턴스 별칭 → 실제 인스턴스 이름 | |
Loki |
| Grafana 로그인 자격 증명 |
| 환경 → 데이터 소스 이름 매핑 | |
Choerodon |
| Choerodon 게이트웨이 및 로그인 자격 증명 |
SLS |
| Pangu 프로덕션 환경 알리바바 클라우드 로그 자격 증명 |
기타 |
| 저장소 간 검색 루트 디렉터리(기본값: 현재 저장소 루트) |
자격 증명은 git에 커밋하지 마세요.
.env는.gitignore에 의해 제외되며,.env.example(플레이스홀더 버전)만 저장소에 포함됩니다.
Available Tools
17 toolsarchery_describe_tableC
获取表结构(SHOW CREATE TABLE)。
Inputs: table (required), db, site, instance. Returns: result
archery_list_columnsC
获取表的字段列表。
Inputs: table (required), db, site, instance. Returns: result
archery_list_databasesC
列出实例下的数据库列表(SHOW DATABASES)。
Inputs: site, instance. Returns: result
archery_list_instancesA
列出 Archery 实例别名映射(短名 -> 真实实例名,按站点分组)。
返回结构明确标注每个别名归属的 site(cn/aws),调用方据此显式传 site, 避免「用 cn 站点查 aws 实例」导致的「未关联该实例」歧义错误。
Inputs: no named parameters. Returns: result
archery_queryA
执行 SQL 查询(只读)。
site=cn 国内 / aws 日本云。instance 可用别名:prod/prod-ro/dev/test。 db 默认 srm。仅允许 SELECT/SHOW/DESC/EXPLAIN/WITH 前缀。
Inputs: sql (required), db, site, limit, +1 more. Returns: result
archery_query_tenantA
查询租户信息(hpfm_tenant)。tenant 为空时列出前 100 个租户。
盘古专属能力:sql-ops-mcp 未覆盖的多租户查询。 site=cn 国内 / aws 日本云(JP-SaaS-1)。instance 可用别名: cn: prod/prod-ro/dev/test;aws: aws(=aws-prod, 正式环境 JP-SaaS-1-Prod-RW-8.0)。
Inputs: db, site, tenant, instance. Returns: result
choerodon_download_attachmentA
通过猪齿鱼 hfle 接口将附件 URL 解析为可下载的签名地址。
Inputs: file_url (required). Returns: result
choerodon_get_status_mapB
获取猪齿鱼项目状态映射(状态名 -> 加密 id),供列表过滤用。
Inputs: project_id. Returns: result
choerodon_list_attachmentsB
查看猪齿鱼任务的附件列表(文件名 + URL)。
Inputs: issue_id (required), project_id. Returns: result
choerodon_list_issueA
条件查询猪齿鱼任务列表。
keyword 为概要模糊搜索;assignee 为经办人姓名(自动解析成员); status 为状态名(自动解析状态 id)。返回任务摘要列表。
Inputs: size, status, keyword, assignee, +1 more. Returns: result
choerodon_query_issueA
查询猪齿鱼单个任务/缺陷详情(含附件列表)。
issue_id 为工单加密 ID(来自列表结果);project_id 可选,默认用 CHOERODON_PROJECT_ID。 返回 summary/状态/优先级/类型/创建人/描述(HTML)/附件。
Inputs: issue_id (required), project_id. Returns: result
choerodon_search_tasks_by_personB
按经办人姓名搜索其负责的猪齿鱼任务(先查成员再按经办人过滤)。
Inputs: name (required), size, project_id. Returns: result
choerodon_search_usersB
按姓名模糊搜索猪齿鱼项目成员(返回加密 id / 真实名 / 登录名)。
Inputs: name (required), size, project_id. Returns: result
obs_log_datasourcesC
列出指定日志平台的 Loki 数据源(用于确认环境名与数据源名映射)。
Inputs: region (required). Returns: result
obs_log_queryA
查询日志(Loki)。
区分两套平台:region=aws 查 AWS 海外(jp-saas-1),region=cn 查国内公有云。 国内非 prod 已切换至 Loki 风格,地址 logs.going-link.net。 query 为 LogQL 表达式,如 '{app="srm-gateway"} |= "403"'。 time_range 支持 30m/2h/1d/today/yesterday 或 "YYYY-MM-DD HH:mm~HH:mm"(北京时间)。
Inputs: env (required), query (required), region (required), limit, +4 more. Returns: result
obs_sls_queryA
查询阿里云 SLS 日志(仅 cn 国内盘古 prod 用阿里云日志;非生产请走 Loki)。
仅 environment=prod 适用(project=pangu-cn-saas-3-prod-shared-sls-project-0)。 盘古 dev/test 等非生产环境日志在 Loki,应使用 obs_log_query(region="cn")。 传入 trace_id 做「ERROR/WARN + 全链路」两阶段查询;否则用 keyword, 自动加上 namespace 过滤。level 默认 ERROR(传空则不过滤级别)。
Inputs: level, limit, system, keyword, +5 more. Returns: result
search_repoA
跨本地代码仓库搜索(内容 / 文件名 / 模块结构)。
mode: content(内容搜索,返回命中行与上下文) / filename(文件名模糊匹配) / modules(列出服务-模块-层结构)。 扫描根目录由 PG_ROOT 指定(默认本仓库根)。max_results 限制命中数量, context 为内容搜索上下文行数,depth 为递归深度。
Inputs: keyword (required), mode, depth, context, +1 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Each tool serves a distinct purpose within its domain: log query tools are clearly separated by data source (Loki vs. SLS) and environment, database tools cover different schema operations, and issue tools handle specific retrieval tasks. No two tools overlap in function.
Most tools follow a consistent 'service_operation' pattern (e.g., obs_log_query, archery_query, choerodon_list_issue). The only deviation is 'search_repo' which lacks the service prefix, but it still uses a clear verb_noun format. Overall naming is predictable and readable.
17 tools covering logging, database operations, issue tracking, and code search is on the higher side but justified given the diverse domains. Each tool serves a specific need, and the count is appropriate for the server's multi-purpose scope.
The tool surface is heavily read-oriented: logging and database tools allow querying but not modification. Issue tracking is particularly incomplete, lacking create, update, and delete operations. Agents will encounter dead ends when trying to perform standard CRUD workflows.
Related MCP Connectors
Search and inspect source-pinned agent skills, plugins and tools through a free public MCP.
Query application logs, traces, and metrics from your AI coding assistant via Foam's MCP server.
The Cortex MCP server provides read-only access to real-time engineering context from the Cortex developer portal, allowing AI coding assistants to answer natural language questions about your organization's catalog (microservices, libraries, domains, teams, infrastructure), scorecards (engineering standards and best practices), initiatives (goals and deadlines), and Engineering Intelligence metrics. It includes tools for querying documentation, tracking personal entities, and accessing AI-assisted insights across the entire Cortex ecosystem.
Mzizi design system MCP: search and execute over components, tokens, crates, skills and docs. Free.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables querying logs and metrics from Graylog, Prometheus, and InfluxDB 2.x. It provides tools for executing Lucene log searches, PromQL queries, and Flux queries directly within MCP-compatible clients.MIT
- AlicenseAqualityCmaintenanceEnables querying logs, traces, and metrics from multiple OpenObserve instances via MCP tools, with parallel execution, batching, and caching.6137 npm11MIT
- AlicenseNot gradedqualityCmaintenanceProvides a unified MCP server to interact with multiple middleware (Loki, MySQL, Redis, RocketMQ, Elasticsearch, MongoDB) through a desktop application for connection management and configuration export.4MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for querying observability data from Elasticsearch, SkyWalking, and Prometheus/VictoriaMetrics, enabling AI models to search logs, traces, and metrics across environments.9MIT