Skip to content

feat: Overhaul MCP server for 2025-11-25 spec and add llms.txt doc#386

Merged
jahvon merged 2 commits into
mainfrom
feat/mcp-improvements
Apr 14, 2026
Merged

feat: Overhaul MCP server for 2025-11-25 spec and add llms.txt doc#386
jahvon merged 2 commits into
mainfrom
feat/mcp-improvements

Conversation

@jahvon

@jahvon jahvon commented Apr 14, 2026

Copy link
Copy Markdown
Member

Refactors the MCP server to conform to current MCP spec best practices and adds an
llmstxt.org-style docs index so AI clients can pull documentation on demand rather
than having it pre-baked into tool responses.

MCP server

  • Upgrade mcp-go v0.43.2 -> v0.47.1
  • Declare listChanged on tool/resource capabilities and subscribe on resources
  • Add WithOutputSchema on every tool using new Go output structs
  • Cursor-based pagination (opaque base64 offsets) on list_workspaces,
    list_executables, get_execution_logs
  • Structured error responses with machine-readable codes (INVALID_INPUT,
    NOT_FOUND, EXECUTION_FAILED, CANCELLED, VALIDATION_FAILED, etc.)
  • Progress notifications and context cancellation for execute/sync_executables
  • New MCP resources: flow://workspace/{name}, flow://executable/{ws}/{ns}/{name},
    flow://flowfile/{path}, flow://logs/{run-id}
  • Emit resources/list_changed after switch_workspace, sync_executables, and
    write_flowfile
  • New tools: write_flowfile (YAML-validated flowfile authoring) and
    get_workspace_config
  • Split tools.go into tools_workspace.go / tools_executable.go / tools_system.go
  • Extend CommandExecutor with ExecuteContext for cancellation support

get_info slimdown

  • Dropped embedded concepts/file-types markdown and JSON schemas (~20KB)
  • Returns compact summary, docsUrl, llmsTxtUrl, schemaUrls, guideUrls instead
  • Removed the now-unused MCP resource copies and the docsgen path that produced
    them

Docs

  • Add docs/public/llms.txt following the llmstxt.org format
  • Add docs/public/robots.txt pointing at the sitemap
  • Enable VitePress built-in sitemap generation
  • Update server-instructions.md to describe the new get_info shape and point
    agents at llmsTxtUrl / schemaUrls / guideUrls

Tests

  • New pagination unit tests (empty, first/middle/last page, invalid cursor,
    cursor past end, round-trip)
  • New Ginkgo specs: resource template registration, output schema presence,
    structured error responses, write_flowfile (valid/invalid extension/invalid
    YAML/exists/overwrite), list_executables pagination

@codecov

codecov Bot commented Apr 14, 2026

Copy link
Copy Markdown

@jahvon jahvon linked an issue Apr 14, 2026 that may be closed by this pull request
@jahvon jahvon marked this pull request as ready for review April 14, 2026 00:22
@jahvon jahvon changed the title feat: Overhaul MCP server for 2025-11-25 spec and add llms.txt docs i… feat: Overhaul MCP server for 2025-11-25 spec and add llms.txt doc Apr 14, 2026
@jahvon jahvon merged commit 46946da into main Apr 14, 2026
14 checks passed
@jahvon jahvon deleted the feat/mcp-improvements branch April 14, 2026 00:23
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.

MCP pagination and context

1 participant