mcpserver

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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