sqlite

package
v0.0.0-...-581f1d6 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

README

Overview

This is a simple SQLite MCP server that allows to query the SQLite database.

Configuration

You need to set the following environment variables:

  • SQLITE_DB_FILE: file path to sqlite database.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(ctx context.Context, env map[string]string) (*mcp.Server, error)

Types

type DatabaseService

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

DatabaseService holds the database connection.

func NewDatabaseService

func NewDatabaseService(dbFile string) (*DatabaseService, error)

NewDatabaseService creates a new DatabaseService and connects to the SQLite DB.

func (*DatabaseService) Close

func (ds *DatabaseService) Close() error

Close closes the database connection.

Jump to

Keyboard shortcuts

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