mdt_mcp 0.2.0

MCP server for mdt (manage markdown templates)
Documentation

mdt_mcp

MCP server for mdt (manage markdown templates)

Crate Docs Status Unlicense

mdt_mcp provides a Model Context Protocol (MCP) server for the mdt template engine. It exposes mdt functionality as MCP tools that can be used by AI assistants and other MCP-compatible clients.

Tools

The server provides the following tools:

  • mdt_check — Verify all consumer blocks are up-to-date
  • mdt_update — Update all consumer blocks with latest provider content
  • mdt_list — List all providers and consumers in the project
  • mdt_get_block — Get the content of a specific block by name
  • mdt_preview — Preview the result of applying transformers to a block
  • mdt_init — Initialize a new mdt project with a sample template file

Usage

The MCP server communicates over stdin/stdout and can be launched via the mdt CLI:

mdt mcp

Configuration

Add the following to your MCP client configuration:

{
	"mcpServers": {
		"mdt": {
			"command": "mdt",
			"args": ["mcp"]
		}
	}
}

Installation

[dependencies]
mdt_mcp = "0.0.1"