Skip to content

feat: add MCP prompt templates with YAML override support#38

Merged
disintegrator merged 5 commits intomainfrom
prompt-templates
Mar 4, 2026
Merged

feat: add MCP prompt templates with YAML override support#38
disintegrator merged 5 commits intomainfrom
prompt-templates

Conversation

@disintegrator
Copy link
Contributor

@disintegrator disintegrator commented Mar 4, 2026

  • Add MCP prompt registration to the docs server via templates discovered in docs folders and exposed through prompts/list and prompts/get.
  • Support two authoring formats: *.template.md (single user text message shorthand) and *.template.yaml (multi-message structured prompts), with mustache rendering for text content.
  • Exclude prompt templates from indexing, persist normalized prompts in metadata.json.
  • Prefer YAML when both formats share a derived prompt name (with warnings in build and validate). Example: if /example.template.md and /example.template.yaml are found then the latter is used.

Codex

Not supported

Cursor

Supported via slash commands

CleanShot 2026-03-04 at 19 15 58@2x

Claude Code

CleanShot 2026-03-04 at 19 14 41@2x

Claude Desktop

CleanShot 2026-03-04 at 19 16 47@2x CleanShot 2026-03-04 at 19 17 36@2x

VS Code

CleanShot 2026-03-04 at 19 21 10@2x CleanShot 2026-03-04 at 19 21 31@2x

@disintegrator disintegrator requested a review from a team March 4, 2026 18:50
@changeset-bot
Copy link

changeset-bot bot commented Mar 4, 2026

🦋 Changeset detected

Latest commit: 5becccc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@speakeasy-api/docs-mcp-server Minor
@speakeasy-api/docs-mcp-core Minor
@speakeasy-api/docs-mcp-cli Minor
@speakeasy-api/docs-mcp-eval Minor
@speakeasy-api/docs-mcp-playground Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@disintegrator disintegrator changed the title feat: prompt templates feat: add MCP prompt templates with YAML override support Mar 4, 2026
@simplesagar simplesagar requested a review from ThomasRooney March 4, 2026 20:41
@disintegrator disintegrator merged commit f591bfe into main Mar 4, 2026
1 check passed
@disintegrator disintegrator deleted the prompt-templates branch March 4, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants