npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@reaatech/agents-markdown-mcp-server

v1.0.1

Published

MCP server exposing agents-markdown tools via Model Context Protocol

Readme

@reaatech/agents-markdown-mcp-server

npm version License: MIT CI

Status: Pre-1.0 — APIs may change in minor versions. Pin to a specific version in production.

MCP (Model Context Protocol) server exposing agents-markdown tools for AI agent integration. Built on the MCP TypeScript SDK, this package provides five tools — lint_agents_md, validate_agents_md, validate_skill_md, scaffold_agent, and get_examples — over both Stdio and StreamableHTTP transports.

Installation

npm install @reaatech/agents-markdown-mcp-server
# or
pnpm add @reaatech/agents-markdown-mcp-server

The MCP SDK (@modelcontextprotocol/sdk) is installed as a dependency.

Feature Overview

  • Five MCP tools — Lint, validate, scaffold, and browse example agent files through the MCP protocol
  • Dual transports — Stdio (for local agent integration) and StreamableHTTP (for remote agent access)
  • Zod-validated inputs — Every tool validates its arguments with Zod schemas before execution
  • Graceful shutdown — Handles SIGINT/SIGTERM to close the MCP server cleanly
  • Error isolation — Tool failures return structured isError: true responses without crashing the server

Quick Start

As a Standalone Server

import { startMcpServer } from "@reaatech/agents-markdown-mcp-server";

// StreamableHTTP transport (for network-accessible agents)
await startMcpServer("streamable-http");

// Stdio transport (for local tool-calling agents)
await startMcpServer("stdio");

Programmatic Server Creation

import { createMcpServer } from "@reaatech/agents-markdown-mcp-server";

const server = createMcpServer();
// server is now configured with all 5 tools registered
// You can attach your own transport, handlers, etc.

API Reference

createMcpServer()

Creates an MCP Server instance with all five tools registered and request handlers wired up.

function createMcpServer(): Server

Returns a configured Server from @modelcontextprotocol/sdk. The server has:

  • name: "agents-md-kit"
  • version: VERSION (from @reaatech/agents-markdown)
  • capabilities: { tools: {} }
  • ListTools handler returning all 5 tool definitions
  • CallTool handler dispatching to the correct tool

startMcpServer(transportType?)

Starts the MCP server with the specified transport. Listens for SIGINT/SIGTERM for graceful shutdown.

async function startMcpServer(
  transportType?: "stdio" | "streamable-http"
): Promise<void>

| Transport | Default | Use Case | |-----------|---------|----------| | streamable-http | Yes | Remote agents, HTTP-accessible tools | | stdio | No | Local tool-calling agents, Claude Desktop |

MCP Tools

lint_agents_md

Lint an AGENTS.md or SKILL.md file. Accepts content inline or a file path.

{
  "name": "lint_agents_md",
  "arguments": {
    "filePath": "./AGENTS.md",
    "severity": "warning",
    "format": "json"
  }
}

| Argument | Type | Required | Description | |----------|------|----------|-------------| | content | string | Conditional | Raw markdown content (mutually exclusive with filePath) | | filePath | string | Conditional | Path to file on disk | | severity | string | No | Minimum severity to include (error, warning, info, suggestion) |

validate_agents_md

Validate an AGENTS.md file against the Zod schema.

{
  "name": "validate_agents_md",
  "arguments": {
    "filePath": "./AGENTS.md",
    "strict": true
  }
}

| Argument | Type | Required | Description | |----------|------|----------|-------------| | content | string | Conditional | Raw markdown content | | filePath | string | Conditional | Path to file on disk | | strict | boolean | No | Fail on warnings in addition to errors |

validate_skill_md

Validate a SKILL.md file against the Zod schema. Same input schema as validate_agents_md.

scaffold_agent

Generate AGENTS.md and SKILL.md files from templates.

{
  "name": "scaffold_agent",
  "arguments": {
    "agentId": "my-mcp-server",
    "displayName": "My MCP Server",
    "agentType": "mcp",
    "outputDir": "./my-agent",
    "skills": [
      { "skillId": "echo", "displayName": "Echo", "skillType": "tool" }
    ]
  }
}

| Argument | Type | Required | Description | |----------|------|----------|-------------| | agentId | string | Yes | Agent identifier | | displayName | string | Yes | Human-readable name | | agentType | string | Yes | mcp, orchestrator, classifier, router, or evaluator | | outputDir | string | Yes | Output directory path | | description | string | No | Agent description | | version | string | No | Version string (default: 1.0.0) | | overwrite | boolean | No | Overwrite existing files | | skills | array | No | List of skill config objects (skillId, displayName, skillType, description?) |

get_examples

List available example types or return the contents of a specific example file. Reads from the local examples/ directory.

{
  "name": "get_examples",
  "arguments": {
    "type": "mcp-server",
    "show": "mcp-server/AGENTS.md"
  }
}

| Argument | Type | Required | Description | |----------|------|----------|-------------| | type | string | No | Filter to one example type | | show | string | No | Return the contents of a specific example file (path traversal protected) |

Related Packages

License

MIT