mcpserver

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package mcpserver exposes Patchcord's installed-plugin catalog and workflow validation as an MCP (Model Context Protocol) server, so a coding agent (Claude Code, Codex) building a bundle/app can query real action/connector schemas and validate a workflow draft against the live catalog instead of guessing action ids or field names (ADR-0062, ADR-0063, ADR-0064). It is a third consumer of internal/plugins, internal/workflow, internal/runs, internal/apps and internal/bundles, alongside the CLI and the HTTP API (ADR-0005) — never a place business logic gets reimplemented.

internal/cli/mcp.go is the only caller: it resolves --data-dir, opens the store, builds the server via New, and runs it over stdio.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db *sql.DB) *mcp.Server

New builds an MCP server exposing every tool this package defines, unstarted — the caller runs it over whatever transport it chooses (stdio, for patchcord mcp serve).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL