agentleFS
futureteafuturetea/yunxiao-mcp-server/AGENTS.md

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 code style.

    Of the AGENTS.md files we read, the 35,337 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.

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
  1. Distinctive:

    Run locally (HTTP mode):

    line 18
  2. Very specific:

    Add tests in the matching *_test.go file.

    line 75
  3. Very specific:

    Run make ci and make coverage-check.

    line 76
  4. Very specific:

    Run make docs to regenerate domain documentation.

    line 77
  5. Very specific:

    Update the corresponding docs/<domain>-enhanced-tools.md and docs/enhanced-tools-index.md if the tool is an enhanced aggregation tool.

    line 78

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 build

Run tests:

make test
make coverage-check   # verify 98% threshold

Run locally (HTTP mode):

YUNXIAO_MCP_ACCESS_TOKEN=<your-token> ./bin/yunxiao mcp --port 8080

Health check:

curl http://localhost:8080/healthz

Environment

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.

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 SDK

Key Files

FilePurpose
pkg/toolset/yunxiao/toolset.goToolset registration, compactHiddenTools map (59 hidden tools across 4 categories), write-tool gating
pkg/toolset/yunxiao/*_tools.go193 MCP tool schemas across 7 domains (170 read-only + 16 write-capable tools gated behind read_only=false)
pkg/toolset/yunxiao/projex_enhanced_*.go8 enhanced aggregation tools
pkg/toolset/yunxiao/appstack_enhanced_*.go5 AppStack enhanced overview tools
pkg/toolset/yunxiao/codeup_write_*.go6 Codeup write tools
pkg/toolset/yunxiao/flow_write_*.go2 Flow write tools
pkg/yunxiao/client.goHTTP client with auth, pagination, and error handling
docs/ga-readiness.mdRelease gate checklist and deferred endpoints
docs/quickstart.mdCommon AI conversation patterns
docs/conditions-cookbook.mdConditions JSON examples
docs/pagination-guide.mdPagination mode reference

Adding a New Tool

  1. Define the tool in the appropriate *_tools.go file using mcp.NewTool.
  2. Implement the handler in the matching *_handlers.go file.
  3. Add tests in the matching *_test.go file.
  4. Run make ci and make coverage-check.
  5. Run make docs to regenerate domain documentation.
  6. Update the corresponding docs/<domain>-enhanced-tools.md and docs/enhanced-tools-index.md if 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.