| name | common-tasks |
| description | Common development tasks for MCP Toolkit. Use this when building, adding new servers, editors, CLI flags, or running the change checklist.
|
Skill: Common Tasks
Building and Testing
micromamba create -f environment.yml
micromamba activate mcp-toolkit
make lint
make test
make test-cover
make coverage-check
make ci
make build
make build-all
Adding a New MCP Server
- Add server type to
internal/setup/types.go.
- Add writer function to
internal/setup/writers.go.
- Add setup subcommand to
internal/cli/setup.go.
- Add to quickstart flow in
internal/cli/quickstart.go.
- Add environment variables to
internal/envvar/envvar.go.
- Write tests for all new code.
Adding a New Editor
- Add editor type to
internal/editor/editor.go.
- Add OS-specific paths in
editor_darwin.go, editor_linux.go, editor_windows.go.
- Write tests in
editor_test.go.
Adding a CLI Flag
cmd.Flags().String("flag-name", "default", "Clear description")
Before Any Change — Checklist
- Is this the simplest solution?
- Will this be easy to maintain in two years?
- Can someone new understand this in five minutes?
- Does this follow Go idioms?
- Are all new functions testable and tested?
If any answer is "no", reconsider the approach.