mcpserver

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package mcpserver exposes contextception via the Model Context Protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextServer

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

ContextServer wraps the MCP server with repo-specific state.

func New

func New(repoRoot string) *ContextServer

New creates a ContextServer for the given repository root.

func (*ContextServer) Close

func (cs *ContextServer) Close()

Close releases the database connection if open.

func (*ContextServer) Run

func (cs *ContextServer) Run(ctx context.Context, t mcp.Transport) error

Run starts the MCP server on the given transport (typically stdio). It blocks until the client disconnects or the context is cancelled.

func (*ContextServer) RunStdio

func (cs *ContextServer) RunStdio(ctx context.Context) error

RunStdio starts the MCP server on stdin/stdout.

Jump to

Keyboard shortcuts

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