yunxiao-mcp-server
AGENTS.md4 starsChanged 6 months agoMITView on GitHub
Go implementation of an MCP server for the Alibaba Yunxiao (云效) DevOps platform. Defaults to read-only; write tools available with read_only=false. Run locally (HTTP mode): Health check: Primary environment variables: - YUNXIAO_MCP_ACCESS_TOKEN — Yunxiao personal access token - YUNXIAO_MCP_BASE_URL — API base URL (defaults to https://openapi-rdc.aliyuncs.com) Legacy aliases YUNXIAO_ACCESS_TOKEN and YUNXIAO_API_BASE_URL are also supported. See config.example.yaml for all options. To test tool calls interactively, use an MCP client (e.g., mcpc) pointed at the server.
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository2 other files it gives its agents.
- risk-assessmentSkill
- task-patrolSkill
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Run locally (HTTP mode):
- Very specific: line 75
Add tests in the matching *_test.go file.
- Very specific: line 76
Run make ci and make coverage-check.
- Very specific: line 77
Run make docs to regenerate domain documentation.
- Very specific: line 78
Update the corresponding docs/<domain>-enhanced-tools.md and docs/enhanced-tools-index.md if the tool is an enhanced aggregation tool.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Yunxiao MCP Server
Go implementation of an MCP server for the Alibaba Yunxiao (云效) DevOps platform. Defaults to read-only; write tools available with read_only=false.
Quick Start
Build:
make buildRun tests:
make test
make coverage-check # verify 98% thresholdRun locally (HTTP mode):
YUNXIAO_MCP_ACCESS_TOKEN=<your-token> ./bin/yunxiao mcp --port 8080Health check:
curl http://localhost:8080/healthzEnvironment
Primary environment variables:
YUNXIAO_MCP_ACCESS_TOKEN— Yunxiao personal access tokenYUNXIAO_MCP_BASE_URL— API base URL (defaults tohttps://openapi-rdc.aliyuncs.com)
Legacy aliases YUNXIAO_ACCESS_TOKEN and YUNXIAO_API_BASE_URL are also supported. See config.example.yaml for all options.
To test tool calls interactively, use an MCP client (e.g., mcpc) pointed at the server.
Project Structure
cmd/yunxiao/ # Entry point
internal/cmd/ # CLI commands (mcp mode, task commands, tool fallback)
pkg/server/http/ # HTTP/SSE transport
pkg/server/mcp/ # MCP server construction, stdio/HTTP/SSE
pkg/toolset/yunxiao/ # All Yunxiao tool definitions and handlers
*_tools.go # Tool schema definitions (mcp.NewTool)
*_handlers.go # Handler implementations
*_test.go # Handler and helper tests
conditions.go # Conditions JSON builders
helpers.go # Common handler helpers
toolset.go # Toolset registration and filtering
pkg/yunxiao/ # Shared Yunxiao OpenAPI SDKKey Files
| File | Purpose |
pkg/toolset/yunxiao/toolset.go | Toolset registration, compactHiddenTools map (59 hidden tools across 4 categories), write-tool gating |
pkg/toolset/yunxiao/*_tools.go | 193 MCP tool schemas across 7 domains (170 read-only + 16 write-capable tools gated behind read_only=false) |
pkg/toolset/yunxiao/projex_enhanced_*.go | 8 enhanced aggregation tools |
pkg/toolset/yunxiao/appstack_enhanced_*.go | 5 AppStack enhanced overview tools |
pkg/toolset/yunxiao/codeup_write_*.go | 6 Codeup write tools |
pkg/toolset/yunxiao/flow_write_*.go | 2 Flow write tools |
pkg/yunxiao/client.go | HTTP client with auth, pagination, and error handling |
docs/ga-readiness.md | Release gate checklist and deferred endpoints |
docs/quickstart.md | Common AI conversation patterns |
docs/conditions-cookbook.md | Conditions JSON examples |
docs/pagination-guide.md | Pagination mode reference |
Adding a New Tool
- Define the tool in the appropriate
*_tools.gofile usingmcp.NewTool. - Implement the handler in the matching
*_handlers.gofile. - Add tests in the matching
*_test.gofile. - Run
make ciandmake coverage-check. - Run
make docsto regenerate domain documentation. - Update the corresponding
docs/<domain>-enhanced-tools.mdanddocs/enhanced-tools-index.mdif the tool is an enhanced aggregation tool.
Reference Projects
third-party-projects/alibabacloud-devops-mcp-server— Node.js Yunxiao MCP server (useful for API/auth reference)third-party-projects/flashduty-mcp-server— Go MCP server reference for project structure
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

