tools

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBTools

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

DBTools provides database-related MCP tools

func NewDBTools

func NewDBTools(manager *db.Manager) *DBTools

NewDBTools creates a new DBTools instance

func (*DBTools) ExecuteQuery

func (t *DBTools) ExecuteQuery(params json.RawMessage) (interface{}, error)

ExecuteQuery executes a read-only SQL query

func (*DBTools) GetTableSchema

func (t *DBTools) GetTableSchema(params json.RawMessage) (interface{}, error)

GetTableSchema returns the schema for a specific table

func (*DBTools) InsertRecord

func (t *DBTools) InsertRecord(params json.RawMessage) (interface{}, error)

InsertRecord inserts a new record into a table

func (*DBTools) ListDatabases

func (t *DBTools) ListDatabases(params json.RawMessage) (interface{}, error)

ListDatabases lists all registered databases

func (*DBTools) RegisterDatabase

func (t *DBTools) RegisterDatabase(params json.RawMessage) (interface{}, error)

RegisterDatabase registers a new SQLite database

Jump to

Keyboard shortcuts

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