Build, integrate, and troubleshoot xmcp-based MCP servers and adapters. Use when creating MCP tools/prompts/resources, bootstrapping with init-xmcp, wiring /mcp endpoints in Next.js/Express/NestJS, configuring auth/middleware, or debugging build/dev and adapter output.
Resources
2Install
npx skillscat add olegakbarov/openai-hackathon/xmcp Install via the SkillsCat registry.
SKILL.md
XMCP
Overview
Use this skill to stand up or extend an xmcp server quickly, including adapter wiring, tool discovery, auth middleware, and production build output. The full docs are in references/xmcp-docs.md.
Workflow
- Identify host framework (Next.js, Express, NestJS, or standalone).
- Bootstrap with
npx init-xmcp@latestand confirm tool/prompt/resource directories. - Wire the /mcp endpoint using the adapter output.
- Add tools, prompts, resources with schemas and metadata.
- Configure auth or middleware if needed.
- Run
xmcp devandxmcp buildand verify the.xmcpoutput is generated. - Debug path aliases and TypeScript config if the adapter import fails.
Adapter decision guide
- Next.js: use the route handler and export GET/POST from the adapter.
- Express: import the handler from the adapter output and mount GET/POST.
- NestJS: use the generated module/controller and add the module to AppModule.
Tool authoring checklist
- Export a schema and metadata in each tool file.
- Ensure tool filenames are in the tools directory so auto-discovery works.
- Keep schemas minimal and descriptive to help tool selection.
Auth and middleware
- Prefer server-side auth and never expose secrets to the browser.
- For API key or JWT middleware, ensure headers are set by the MCP client.
- For OAuth providers, configure environment variables and middleware exports.
Troubleshooting
- Missing
@xmcp/adapterimport: runnpx xmcp buildand add TS path aliases. - Adapter output missing: confirm
xmcp devorxmcp buildran successfully. - Requests failing: verify /mcp route registration and middleware ordering.
References
references/xmcp-docs.mdcontains the full documentation snapshot.