Skip to main content
Glama

buildkite-mcp-server

by buildkite
AGENT.md1.57 kB
# AGENT.md - Buildkite MCP Server ## Build/Test Commands - `make build` - Build the binary - `make test` - Run all tests with coverage - `go test ./internal/buildkite/...` - Run tests for specific package - `go test -run TestName` - Run single test by name - `make lint` - Run golangci-lint - `make lint-fix` - Run golangci-lint with auto-fix - `make check` - Run linting and tests - `make all` - Full build pipeline ## Architecture - **Main binary**: `cmd/buildkite-mcp-server/main.go` - MCP server for Buildkite API access - **Core packages**: `internal/buildkite/` - API wrappers, `internal/commands/` - CLI commands - **Key dependencies**: `github.com/mark3labs/mcp-go` (MCP protocol), `github.com/buildkite/go-buildkite/v4` (API client) - **Configuration**: Environment variables (BUILDKITE_API_TOKEN, OTEL tracing) - **CI/CD**: `buildkite` organization, `buildkite-mcp-server` pipeline slug for build and test (`.buildkite/pipeline.yml`), `buildkite-mcp-server-release` pipeline slug for releases (`.buildkite/pipeline.release.yml`) ## Code Style - Use `zerolog` for logging, `testify/require` for tests - Mock interfaces for testing (see `MockPipelinesClient` pattern) - Import groups: stdlib, external, internal (`github.com/buildkite/buildkite-mcp-server/internal/...`) - Error handling: return errors up the stack, log at top level - Package names: lowercase, descriptive (buildkite, commands, trace, tokens) - Use contexts for cancellation and tracing throughout - Use `mcp.NewToolResultError` or `mcp.NewToolResultErrorFromErr` to handle errors in tools.

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/buildkite/buildkite-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server