AI Code Toolkit

AI Code Toolkit

Enables AI coding agents to generate standardized code using scaffolding templates, enforce architectural patterns, and validate outputs programmatically. Supports creating projects from boilerplates and adding features to existing codebases while maintaining team conventions.

Category
访问服务器

README

AI Code Toolkit

Scale your AI coding agents with scaffolding, architecture patterns, and validation rules

npm version License: AGPL-3.0 Node.js Version

A collection of Model Context Protocol (MCP) servers and tools that help AI coding agents maintain consistency, follow conventions, and scale with your codebase.


Contents


Why This Exists

As projects evolve from MVP to production, they develop patterns, conventions, and opinionated approaches. Custom instructions alone struggle to ensure AI agents follow these requirements—especially as complexity grows and context windows fill up.

AI Code Toolkit provides building blocks to scale coding agent capabilities:

  • ✅ Generate code that follows your team's conventions
  • ✅ Enforce architectural patterns automatically
  • ✅ Validate agent outputs programmatically
  • ✅ Work with any AI coding agent (Claude, Cursor, etc.)
  • ✅ Support any tech stack (Next.js, React, or custom frameworks)

Whether you're bootstrapping a new project or managing a complex monorepo, these tools ensure AI agents integrate seamlessly with your development workflow.


Core Pillars

1. 🏗️ Scaffolding Templates

Combine templating with LLMs to generate standardized code that follows your internal conventions while reducing maintenance overhead.

2. 🎨 Architecture + Design Patterns

Convention over configuration scales. Like Ruby on Rails or Angular, opinionated approaches make code predictable—for both humans and AI agents.

3. ✅ Rules

Pre-flight guidance + post-flight validation = consistent output. Rules provide programmatic checks (quantitative or qualitative) to enforce your processes.


Getting Started

Prerequisites

  • Node.js: >= 18 (LTS recommended)
  • Package Manager: pnpm (or npm/yarn)
  • Git: >= 2.13.2

Quick Start

Option 1: Use as MCP Server (with Claude Desktop)

  1. Install the package:

    pnpm install @agiflowai/scaffold-mcp
    
  2. Configure Claude Desktop: Add to your MCP settings:

    {
      "mcpServers": {
        "scaffold": {
          "command": "scaffold-mcp",
          "args": ["mcp-serve"]
        }
      }
    }
    
  3. Start using it: The MCP server tools will be available in Claude Desktop.

Option 2: Use as CLI

# Install globally or use npx
pnpm install -g @agiflowai/scaffold-mcp

# Initialize templates
scaffold-mcp init

# List available boilerplates
scaffold-mcp boilerplate list

# Create a new project
scaffold-mcp boilerplate create nextjs-15 --vars '{"appName":"my-app"}'

# Add features to existing projects
scaffold-mcp scaffold list ./my-app
scaffold-mcp scaffold add scaffold-nextjs-page --vars '{"pageName":"dashboard"}'

For detailed usage, see the scaffold-mcp documentation.


Packages

@agiflowai/scaffold-mcp

MCP server for scaffolding applications with boilerplate templates and feature generators.

Key Features:

  • 🚀 Create projects from boilerplate templates
  • 🎯 Add features to existing projects (pages, components, services)
  • 📦 Template management (initialize, add from repositories)
  • 🔧 Built-in templates: Next.js 15, Vite + React
  • 🌐 Multiple transport modes: stdio, HTTP, SSE
  • 💻 Standalone CLI mode

View full documentation →

@agiflowai/scaffold-generator

Core utilities and types for scaffold generators. Internal library used by scaffold-mcp.

View source →


Our Approach

🤖 Agent Agnostic

Works with any AI coding agent (Claude Code, Cursor, Windsurf, etc.). Each library provides:

  • MCP tools for integration with MCP-compatible agents
  • CLI commands for scripting deterministic workflows

🛠️ Tech Stack Agnostic

Built-in templates for popular frameworks:

  • Next.js 15
  • Vite + React
  • More coming soon

Don't see your stack? Use the built-in MCP tools to generate custom templates—the system is fully extensible.

🎯 Coding Tool Specific

Maximize effectiveness by combining three layers:

  1. MCP Servers → Let tools guide the agent with their default prompts
  2. Custom Instructions → Use CLAUDE.md, AGENTS.md to specify when to use MCP tools
  3. Hooks → Intercept tool calls to enforce workflows (e.g., require scaffolding for new files)

Experiment with these layers to find the right balance for your project. There's no one-size-fits-all solution.


Development

This is an Nx monorepo using pnpm for package management.

Common Commands

# Install dependencies
pnpm install

# Build all packages
pnpm build

# Build a specific package
pnpm exec nx build scaffold-mcp

# Run tests
pnpm test
pnpm exec nx test scaffold-mcp

# Lint and format
pnpm lint              # Check for issues
pnpm lint:fix          # Auto-fix issues
pnpm format            # Format code
pnpm format:check      # Check formatting

# Type checking
pnpm typecheck
pnpm exec nx typecheck scaffold-mcp

# Visualize project graph
pnpm exec nx graph

Code Quality

We use Biome for lightning-fast linting and formatting:

  • 10-100x faster than ESLint (written in Rust)
  • 🎯 All-in-one: Replaces ESLint + Prettier
  • 🔧 Zero config: Sensible defaults out of the box

Configuration: biome.json

Publishing

See PUBLISHING.md for the complete release workflow:

# Preview release (dry run)
pnpm release:dry-run

# Publish to npm
pnpm release

Documentation


Version Support

Component Requirement
Node.js >= 18 (LTS recommended)
Git >= 2.13.2
pnpm >= 9 (or use npm/yarn)

Security patches are applied to non-EOL versions. Features are added to the latest version only.


Contributing

We welcome contributions! Whether it's bug reports, feature requests, or pull requests—all contributions are appreciated.

How to contribute:

  1. 🍴 Fork the repository
  2. 🌿 Create a feature branch (git checkout -b feature/amazing-feature)
  3. 💻 Make your changes
  4. ✅ Run tests and linting (pnpm test && pnpm lint)
  5. 📝 Commit your changes (follow conventional commits)
  6. 🚀 Push to your branch (git push origin feature/amazing-feature)
  7. 🎉 Open a Pull Request

See CONTRIBUTING.md for detailed guidelines.


License

AGPL-3.0 © AgiflowIO


Built with ❤️ by the AgiflowIO team

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
mcp-server-qdrant

mcp-server-qdrant

这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。

官方
精选
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选