jmiller e2d82f294e
Universal: Changelog Validation / Validate CHANGELOG.md (push) Has been cancelled
Publish to npm / publish (push) Has been cancelled
Generic: Standards Compliance / Secret Scanning (push) Has been cancelled
Generic: Standards Compliance / License Header Validation (push) Has been cancelled
Generic: Standards Compliance / Repository Structure Validation (push) Has been cancelled
Generic: Standards Compliance / Coding Standards Check (push) Has been cancelled
Generic: Standards Compliance / Version Consistency Check (push) Has been cancelled
Generic: Standards Compliance / Workflow Configuration Check (push) Has been cancelled
Generic: Standards Compliance / Documentation Quality Check (push) Has been cancelled
Generic: Standards Compliance / README Completeness Check (push) Has been cancelled
Generic: Standards Compliance / Git Repository Hygiene (push) Has been cancelled
Generic: Standards Compliance / Script Integrity Validation (push) Has been cancelled
Generic: Standards Compliance / Line Length Check (push) Has been cancelled
Generic: Standards Compliance / File Naming Standards (push) Has been cancelled
Generic: Standards Compliance / Insecure Code Pattern Detection (push) Has been cancelled
Generic: Standards Compliance / Code Complexity Analysis (push) Has been cancelled
Generic: Standards Compliance / Code Duplication Detection (push) Has been cancelled
Generic: Standards Compliance / Dead Code Detection (push) Has been cancelled
Generic: Standards Compliance / File Size Limits (push) Has been cancelled
Generic: Standards Compliance / Binary File Detection (push) Has been cancelled
Generic: Standards Compliance / TODO/FIXME Tracking (push) Has been cancelled
Generic: Standards Compliance / Dependency Vulnerability Scanning (push) Has been cancelled
Generic: Standards Compliance / Unused Dependencies Check (push) Has been cancelled
Generic: Standards Compliance / Broken Link Detection (push) Has been cancelled
Generic: Standards Compliance / API Documentation Coverage (push) Has been cancelled
Generic: Standards Compliance / Accessibility Check (push) Has been cancelled
Generic: Standards Compliance / Performance Metrics (push) Has been cancelled
Generic: Standards Compliance / Enterprise Readiness Check (push) Has been cancelled
Generic: Standards Compliance / Repository Health Check (push) Has been cancelled
Generic: Standards Compliance / Terraform Configuration Validation (push) Has been cancelled
Universal: Sync Version on Merge / Propagate README version (push) Has been cancelled
Generic: Standards Compliance / Compliance Summary (push) Has been cancelled
Merge pull request 'chore(ci): enable --delete-orphans in workflow sync' (#23) from chore/enable-orphan-pruning into main
2026-07-14 04:30:51 +00:00

Template-MCP

Language License Platform Wiki

Template repository for creating MokoCLI-compliant Model Context Protocol (MCP) API servers. Provides the scaffolding, configuration patterns, and architecture conventions used by all Moko Consulting MCP servers, enabling AI assistants like Claude to interact with REST APIs through a standardized tool interface.

Features

  • MCP server scaffolding -- pre-configured TypeScript project structure with entry point, tool registration, and stdio transport ready to go
  • Multi-connection support -- built-in config.json pattern for managing multiple named API connections with a default fallback; all tools accept an optional connection parameter
  • REST API bridge architecture -- standardized pattern for bridging any REST API as MCP tools, with typed request/response handling
  • TypeScript-first -- full TypeScript setup with tsconfig.json, strict mode, and ES module output
  • Build tooling -- Makefile with build, dev, clean, and lint targets; npm scripts for compilation and development
  • MokoCLI compliant -- follows all Moko Consulting governance conventions: file headers, commit messages, .gitattributes, .gitmessage, PR/issue templates
  • Example configuration -- config.example.json demonstrates the connection configuration schema
  • Documentation templates -- wiki pages for API reference, architecture overview, and installation pre-generated

Installation

  1. Create a new repository from this template (or clone directly):
    git clone https://git.mokoconsulting.tech/MokoConsulting/Template-MCP.git my-mcp-server
    cd my-mcp-server
    
  2. Install dependencies:
    npm install
    
  3. Copy and configure the connection file:
    cp config.example.json config.json
    # Edit config.json with your API credentials
    
  4. Build the project:
    npm run build
    
  5. Run the server:
    node build/index.js
    

Configuration

Path Purpose
src/ TypeScript source files (server entry, tool definitions, API client)
config.example.json Example multi-connection configuration schema
config.json Local connection configuration (gitignored)
package.json npm dependencies and scripts
tsconfig.json TypeScript compiler configuration
scripts/ Build and development utility scripts
docs/ Developer documentation
Makefile Build, dev, clean, and lint targets

Requirements

  • Node.js 20.0.0 or later
  • npm 9+
  • TypeScript 5+ (installed via npm)

Documentation

Full documentation is available on the Wiki, including:

  • API -- tool reference and connection parameter documentation
  • ARCHITECTURE -- MCP server design and REST API bridge pattern
  • INSTALLATION -- setup prerequisites and configuration guide

Contributing

See the wiki for development guidelines and contribution instructions.

License

This project is licensed under the GNU General Public License v3.0 or later -- see the LICENSE file.


Moko Consulting -- MokoCLI

Template CI Notes

Build/CI/release/version workflows are guarded to skip template repos (Template-*) and only run in repos created from them.

S
Description
Template repository for creating MokoCLI-compliant MCP / npm API servers
Readme GPL-3.0
1.2 MiB
Languages
Markdown 69.2%
TypeScript 25.4%
Makefile 2.8%
JSON 2.6%