ormcp

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecArgs

type ExecArgs struct {
	SQL string
}

func (*ExecArgs) Pointers

func (m *ExecArgs) Pointers() []any

func (*ExecArgs) Schema

func (m *ExecArgs) Schema() []fmt.Field

func (*ExecArgs) Validate

func (m *ExecArgs) Validate(action byte) error

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider implements mcp.ToolProvider for a live *orm.DB connection.

func NewProvider

func NewProvider(db *orm.DB) *Provider

NewProvider creates a new MCP tool provider wrapping the given DB.

func (*Provider) Tools

func (p *Provider) Tools() []mcp.Tool

Tools returns the MCP tools available for this DB connection. db_schema is only included if the underlying executor implements orm.SchemaInspector.

type QueryArgs

type QueryArgs struct {
	SQL string
}

func (*QueryArgs) Pointers

func (m *QueryArgs) Pointers() []any

func (*QueryArgs) Schema

func (m *QueryArgs) Schema() []fmt.Field

func (*QueryArgs) Validate

func (m *QueryArgs) Validate(action byte) error

Jump to

Keyboard shortcuts

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