monorepo-package-workflow

Generate modular MCP tool packages in the @j0kz/mcp-agents monorepo.

Updated Oct 1, 2025
One-click install
npx skills add https://github.com/j0KZ/mcp-agents --skill monorepo-package-workflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: monorepo-package-workflow
Source: https://github.com/j0KZ/mcp-agents/tree/main/starter-kit/template/.claude/skills/monorepo-package-workflow
Command: npx skills add https://github.com/j0KZ/mcp-agents --skill monorepo-package-workflow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a repeatable pattern for creating new MCP tool packages within the monorepo, ensuring consistent structure, versioning, and integration.

Core Features & Use Cases

  • Package skeleton with modular architecture (src/constants, src/helpers, src/utils)
  • Thin mcp-server.ts architecture (<150 LOC)
  • Registration in tools.json and version synchronization
  • Clear registration, testing, and publishing guidelines

Quick Start

  • Create package skeleton under packages/your-tool/
  • Initialize package.json and tsconfig, add mcp-server.ts, and implement core logic
  • Run version synchronization: npm run version:sync

Frequently Asked Questions about monorepo-package-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a new MCP tool package in a monorepo?

Create a new MCP tool package by generating a modular structure under packages/your-tool/ with src/{constants,helpers,utils}, a thin mcp-server.ts (<150 LOC), package.json, tsconfig, and tools.json registration. Implement core logic following ES module syntax and <300 LOC per file constraints, then run npm run version:sync to synchronize versions.

What structure should an MCP server file follow?

An MCP server file should be thin and focused, staying under 150 lines of code with proper extension handling (.js output) and ES module syntax. Core logic belongs in modular src/{constants,helpers,utils} files to keep the server file lean and maintainable.

How do I register a new MCP package in tools.json?

Add your package entry to tools.json with proper version references, then run npm run version:sync to automatically synchronize versions across the monorepo. This ensures consistent versioning and standardized registration of your MCP tool.

What testing standards apply to MCP packages?

MCP packages must maintain test coverage above 70% with validated import patterns and registration tests. Tests should verify that your package integrates correctly with the monorepo's standardized structure and tools.json registration.

Can I use this pattern for packages outside the @j0kz/mcp-agents monorepo?

This Skill provides scaffolding patterns specifically designed for the @j0kz/mcp-agents monorepo. The standardized structure, version-sync workflow, and tools.json integration are tailored to that ecosystem's requirements.

What are the file size and code organization constraints?

MCP packages enforce <300 LOC per file, <150 LOC for mcp-server.ts, modular src/ organization (constants, helpers, utils), and proper .js extension handling. These constraints ensure consistency, maintainability, and thin server architecture across packages.