https://github.com/anselmoo/mcp-ai-agent-guidelines

A Model Context Protocol (MCP) server offering professional tools and templates for hierarchical prompting, code hygiene, visualization, memory optimization, and agile planning.

https://github.com/anselmoo/mcp-ai-agent-guidelines

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.7%) to scientific vocabulary

Keywords

ai-agent code-quality hierachical hierarchical-prompting mcp mcp-server mermaid nodejs npm prompting typescript
Last synced: 5 months ago · JSON representation

Repository

A Model Context Protocol (MCP) server offering professional tools and templates for hierarchical prompting, code hygiene, visualization, memory optimization, and agile planning.

Basic Info
  • Host: GitHub
  • Owner: Anselmoo
  • License: mit
  • Language: TypeScript
  • Default Branch: main
  • Homepage:
  • Size: 197 KB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 2
  • Releases: 5
Topics
ai-agent code-quality hierachical hierarchical-prompting mcp mcp-server mermaid nodejs npm prompting typescript
Created 6 months ago · Last pushed 6 months ago
Metadata Files
Readme Contributing License Code of conduct Security

README.md

MCP AI Agent Guidelines Server

[!CAUTION] Disclaimer -- Experimental / Early Stage: This project references third‑party models, tools, pricing, and docs that evolve quickly. Treat outputs as recommendations and verify against official docs and your own benchmarks before production use.

CI/CD Pipeline Coverage Status NPM version Node.js 20+ Docker License: MIT

A Model Context Protocol (MCP) server offering professional tools and templates for hierarchical prompting, code hygiene, visualization, memory optimization, and agile planning.

Installation

```bash

NPX (recommended)

npx mcp-ai-agent-guidelines

NPM global

npm install -g mcp-ai-agent-guidelines

From source

git clone https://github.com/Anselmoo/mcp-ai-agent-guidelines.git cd mcp-ai-agent-guidelines npm ci && npm run build && npm start ```

Scripts

bash npm run build # TypeScript build npm run start # Build and start server npm run test:all # Unit + integration + demos + MCP smoke npm run test:coverage:unit # Unit test coverage (c8) -> coverage/ + summary npm run quality # Type-check + Biome checks

Demos

Explore generated demo reports in the repository:

See more in demos/README.md.

Demo scripts (.js)

Run demo scripts to generate or test artifacts:

```bash

Build first

npm run build

Run sample tool calls

node demos/demo-tools.js

Generate demo reports

node demos/demo-tools.js ```

Scripts: - demos/demo-tools.js — invokes several tools with sample inputs - demos/generate-demo-reports.js — produces end-to-end demo outputs - demos/generate-hygiene-reports.js — hygiene-focused reports

VS Code Integration (One‑Click)

Use buttons below to add this MCP server to VS Code (User Settings → mcp.servers):

Install with NPX in VS Code Install with NPX in VS Code Insiders Install with Docker in VS Code Install with Docker in VS Code Insiders

Manual settings (User Settings JSON):

json { "mcp": { "servers": { "ai-agent-guidelines": { "command": "npx", "args": ["-y", "mcp-ai-agent-guidelines"] } } } }

Using Docker:

json { "mcp": { "servers": { "ai-agent-guidelines": { "command": "docker", "args": [ "run", "--rm", "-i", "ghcr.io/anselmoo/mcp-ai-agent-guidelines:latest" ] } } } }

Use tools from a chat window (VS Code/Cline)

After adding the server, open your chat client (e.g., Cline in VS Code). The tools appear under the server name. You can:

  • Run a tool directly by name:
    • hierarchical-prompt-builder — Provide context, goal, and optional requirements.
    • code-hygiene-analyzer — Paste code or point to a file and set language.
    • mermaid-diagram-generator — Describe the system and select a diagram type.
  • Ask in natural language and pick the suggested tool.

Example prompts: - "Use hierarchical-prompt-builder to create a refactor plan for src/index.ts with outputFormat markdown." - "Analyze this Python file with code-hygiene-analyzer; highlight security issues." - "Generate a Mermaid diagram for our pipeline using mermaid-diagram-generator (flowchart)."

Tip: Most clients can pass file content automatically when you select a file and invoke a tool.

GitHub Chat (VS Code): In the chat, type your request and pick a tool suggestion, or explicitly reference a tool by name (e.g., “Use mermaid-diagram-generator to draw a flowchart for our pipeline”).

Features

Hierarchical Prompt Builder — Build structured prompts with clear hierarchies Usage: `hierarchical-prompt-builder` | Parameter | Required | Description | | -------------- | -------- | ------------------------------------- | | `context` | ✅ | The broad context or domain | | `goal` | ✅ | The specific goal or objective | | `requirements` | ❌ | Detailed requirements and constraints | | `outputFormat` | ❌ | Desired output format | | `audience` | ❌ | Target audience or expertise level |
Code Hygiene Analyzer — Analyze codebase for outdated patterns and hygiene issues Usage: `code-hygiene-analyzer` | Parameter | Required | Description | | ------------- | -------- | ----------------------------- | | `codeContent` | ✅ | Code content to analyze | | `language` | ✅ | Programming language | | `framework` | ❌ | Framework or technology stack |
Mermaid Diagram Generator — Generate professional diagrams from text descriptions Usage: `mermaid-diagram-generator` | Parameter | Required | Description | | ------------- | -------- | ---------------------------------------------------------------- | | `description` | ✅ | Description of the system or process to diagram | | `diagramType` | ✅ | Type: `flowchart`, `sequence`, `class`, `state`, `gantt`, `pie` | | `theme` | ❌ | Visual theme for the diagram |
Memory Context Optimizer — Optimize prompt caching and context window usage Usage: `memory-context-optimizer` | Parameter | Required | Description | | ---------------- | -------- | -------------------------------------------------- | | `contextContent` | ✅ | Context content to optimize | | `maxTokens` | ❌ | Maximum token limit | | `cacheStrategy` | ❌ | Strategy: `aggressive`, `conservative`, `balanced` |
Sprint Timeline Calculator — Calculate optimal development cycles and sprint timelines Usage: `sprint-timeline-calculator` | Parameter | Required | Description | | -------------- | -------- | --------------------------------------- | | `tasks` | ✅ | List of tasks with estimates | | `teamSize` | ✅ | Number of team members | | `sprintLength` | ❌ | Sprint length in days | | `velocity` | ❌ | Team velocity (story points per sprint) |
Model Compatibility Checker — Recommend best AI models for specific tasks Usage: `model-compatibility-checker` | Parameter | Required | Description | | ----------------- | -------- | -------------------------------------------------------- | | `taskDescription` | ✅ | Description of the task | | `requirements` | ❌ | Specific requirements (context length, multimodal, etc.) | | `budget` | ❌ | Budget constraints: `low`, `medium`, `high` |
Guidelines Validator — Validate development practices against established guidelines Usage: `guidelines-validator` | Parameter | Required | Description | | --------------------- | -------- | ----------------------------------------------------------------------------------------------- | | `practiceDescription` | ✅ | Description of the development practice | | `category` | ✅ | Category: `prompting`, `code-management`, `architecture`, `visualization`, `memory`, `workflow` |

Configuration

  • Node.js 20+ required (see engines in package.json).
  • Tools are exposed by the MCP server and discoverable via client schemas.
  • Mermaid diagrams render client-side (Markdown preview). No server rendering.

Versioning

  • Package version: 0.1.0 (matches internal resource versions).
  • Tags vX.Y.Z trigger CI for NPM and Docker releases.
  • Pin exact versions for production stability.

Development

Prerequisites: - Node.js 20+ - npm 10+

Setup:

bash git clone https://github.com/Anselmoo/mcp-ai-agent-guidelines.git cd mcp-ai-agent-guidelines npm install npm run build npm start

Project structure:

/src - TypeScript source (tools, resources, server) /tests - Test files and utilities /scripts - Shell scripts and helpers /demos - Demo scripts and generated artifacts /.github - CI and community health files

Testing and quality:

bash npm run test:unit # Unit tests npm run test:integration # Integration tests npm run test:demo # Demo runner npm run test:mcp # MCP smoke script npm run test:coverage:unit # Unit test coverage (text-summary, lcov, html) npm run quality # Type-check + Biome check

Coverage reporting

  • CI publishes a coverage summary in the job’s Summary and uploads coverage/ as an artifact.
  • Coverage is also uploaded to Codecov on Node 22 runs; see the badge above for status.

Docker

```bash

Run with Docker

docker run -p 3000:3000 ghcr.io/anselmoo/mcp-ai-agent-guidelines:latest

Build locally

docker build -t mcp-ai-agent-guidelines . docker run -p 3000:3000 mcp-ai-agent-guidelines ```

VS Code + Docker settings:

json { "mcp": { "servers": { "mcp-ai-agent-guidelines": { "command": "docker", "args": [ "run", "--rm", "-i", "ghcr.io/anselmoo/mcp-ai-agent-guidelines:latest" ] } } } }

Security

  • No secrets committed; releases use provenance where supported.
  • Docker images are signed (Cosign); supply‑chain security via Sigstore.
  • Report vulnerabilities via GitHub Security tab or Issues.

Documentation

  • MCP Specification: https://modelcontextprotocol.io/
  • Tools implementation: see src/tools/ in this repo.
  • Generated examples: see demos/ and links above.

Contributing

Contributions welcome. Please see CONTRIBUTING.md. Keep changes typed, linted, and include tests when behavior changes.

License

MIT © Anselmoo — see LICENSE.

Acknowledgments

  • Model Context Protocol team for the spec
  • Anthropic for prompt caching research
  • Mermaid community for diagram tooling

Owner

  • Name: Anselm Hahn
  • Login: Anselmoo
  • Kind: user
  • Location: Switzerland

GitHub Events

Total
  • Create event: 12
  • Issues event: 1
  • Release event: 2
  • Delete event: 6
  • Issue comment event: 2
  • Push event: 27
  • Public event: 1
  • Pull request event: 20
Last Year
  • Create event: 12
  • Issues event: 1
  • Release event: 2
  • Delete event: 6
  • Issue comment event: 2
  • Push event: 27
  • Public event: 1
  • Pull request event: 20

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 2
  • Total pull requests: 13
  • Average time to close issues: N/A
  • Average time to close pull requests: about 2 hours
  • Total issue authors: 2
  • Total pull request authors: 3
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 5
  • Bot issues: 1
  • Bot pull requests: 10
Past Year
  • Issues: 2
  • Pull requests: 13
  • Average time to close issues: N/A
  • Average time to close pull requests: about 2 hours
  • Issue authors: 2
  • Pull request authors: 3
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 5
  • Bot issues: 1
  • Bot pull requests: 10
Top Authors
Issue Authors
  • Anselmoo (1)
  • renovate[bot] (1)
Pull Request Authors
  • renovate[bot] (9)
  • Anselmoo (3)
  • dependabot[bot] (1)
Top Labels
Issue Labels
Pull Request Labels
size/XS (4) dependencies (1) javascript (1) security (1) size/M (1)

Packages

  • Total packages: 1
  • Total downloads:
    • npm 388 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 5
  • Total maintainers: 1
npmjs.org: mcp-ai-agent-guidelines

A comprehensive Model Context Protocol server providing professional tools, resources, and prompts for implementing AI agent best practices

  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 388 Last month
Rankings
Forks count: 12.4%
Stargazers count: 17.2%
Average: 22.1%
Dependent repos count: 24.1%
Dependent packages count: 34.7%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/ci-cd.yml actions
  • actions/cache v4 composite
  • actions/checkout v4 composite
  • actions/download-artifact v4 composite
  • actions/setup-node v4 composite
  • actions/upload-artifact v4 composite
  • docker/build-push-action v6 composite
  • docker/login-action v3 composite
  • docker/metadata-action v5 composite
  • docker/setup-buildx-action v3 composite
  • sigstore/cosign-installer v3.7.0 composite
  • sigstore/gh-action-sigstore-python v3.0.1 composite
Dockerfile docker
  • node 22-alpine build
package-lock.json npm
  • 243 dependencies
package.json npm
  • @biomejs/biome 2.1.3 development
  • @types/node ^24.1.0 development
  • typescript ^5.9.2 development
  • @modelcontextprotocol/sdk ^1.17.1
  • @types/express ^5.0.3
  • express ^5.1.0
  • mermaid ^11.0.0
  • zod ^3.25.76