runtime

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

Package runtime builds MCP resources and tools from the YAML DSL.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// Logger is used for structured logging.
	Logger *slog.Logger
	// Audit records approval and tool events.
	Audit audit.Logger
	// Templates provides localized messages.
	Templates templates.Renderer
	// Cache stores idempotent responses.
	Cache *idempotency.Cache
	// CacheKeyStrategy selects how cache keys are computed.
	CacheKeyStrategy string
	// Lang selects approver language.
	Lang string
	// ApprovalWebhookURL is the callback URL for async approvers.
	ApprovalWebhookURL string
	// ExecutorWebhookURL is the callback URL for async executors.
	ExecutorWebhookURL string
	// HTTPApprovals stores pending async approvals.
	HTTPApprovals *approverhttp.PendingStore
	// HTTPExecutions stores pending async executions.
	HTTPExecutions *executor.PendingStore
}

Builder constructs an MCP server from the DSL config.

func (Builder) Build

func (b Builder) Build(cfg *dsl.Config) (*mcp.Server, error)

Build creates an MCP server with tools and resources.

Directories

Path Synopsis
Package approver defines interfaces for approval checks.
Package approver defines interfaces for approval checks.
Package executor implements tool execution backends.
Package executor implements tool execution backends.

Jump to

Keyboard shortcuts

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