mcp-server-woocommerce
CLAUDE.md2 starsChanged 9 months agoMITView on GitHub
In this repositoryOne other file it gives its agents.
- llms.txtllms.txt
The file
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Create a new file in src/tools/ following the existing pattern
- Very specific: line 25
Import and call it in src/server.ts
- Distinctive: line 37
Do NOT add Co-Authored-By lines to commit messages
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.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
WooCommerce MCP Server
Build & Test
pnpm build # TypeScript compilation
pnpm test # Run vitest tests
pnpm test:watch # Watch modeArchitecture
src/services/base.ts— shared error handling & pagination for all toolssrc/services/woo-client.ts— WooCommerce API client singletonsrc/services/wp-client.ts— WordPress REST API client (for media management)src/tools/*.ts— each file registers tools for a domain (products, orders, etc.)src/server.ts— exportscreateServer()factory and singletonserver; registers all tool modulessrc/index.ts— entry point: selects stdio or HTTP transport viaMCP_TRANSPORTenv varsrc/http.ts— HTTP transport: dual auth (bearer token or OAuth 2.1 via Auth0), health endpoint, session management
Adding New Tools
- Create a new file in
src/tools/following the existing pattern - Export a
register*Tools(server: McpServer)function - Import and call it in
src/server.ts - Run
pnpm build
Key Patterns
@woocommerce/woocommerce-rest-apidefault export needs CJS compat:(pkg as any).default || pkghandleListRequest/handleRequestinbase.tshandle all error + response formatting- Each tool defines
*_LIST_FIELDSand*_FIELDSarrays for default field filtering resolveFields()inbase.tsparses comma-separatedfieldsor falls back to defaults
Commits
- Do NOT add Co-Authored-By lines to commit messages
Infrastructure
- CI/CD: GitHub Actions (
.github/workflows/ci.yml) — Node 20+22, typecheck, test, build - Docker: Multi-stage build via
Dockerfile, auto-published to GHCR via.github/workflows/docker.yml - Deployment: Hostinger, Railway, Fly.io, Docker — see
docs/DEPLOYMENT.md - Registry: Smithery config in
smithery.yaml - Tests: Vitest — tests live as
*.test.tsalongside source files
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.

