mcp

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 7 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer() *sdkmcp.Server

NewServer creates the Kivgraph MCP server with no graph source.

func NewServerWithIndexer

func NewServerWithIndexer(indexer indexing.ProjectIndexer) *sdkmcp.Server

NewServerWithIndexer creates a server that also exposes the explicit permission-gated index_project mutation.

func NewServerWithMetrics

func NewServerWithMetrics(registry *metrics.Registry) *sdkmcp.Server

NewServerWithMetrics creates the server without a graph source and records query metrics in registry.

func NewServerWithMetricsAndSnapshotStore

func NewServerWithMetricsAndSnapshotStore(registry *metrics.Registry, snapshotStore *hotsnapshot.SnapshotStore) *sdkmcp.Server

NewServerWithMetricsAndSnapshotStore creates the snapshot-backed server and records query metrics in registry.

func NewServerWithMetricsAndSnapshotStoreAndIndexer

func NewServerWithMetricsAndSnapshotStoreAndIndexer(
	registry *metrics.Registry,
	snapshotStore *hotsnapshot.SnapshotStore,
	indexer indexing.ProjectIndexer,
) *sdkmcp.Server

NewServerWithMetricsAndSnapshotStoreAndIndexer combines query metrics with the configured project indexer.

func NewServerWithObserver

func NewServerWithObserver(observer tools.Observer) *sdkmcp.Server

NewServerWithObserver creates the server without a graph source and observes tool-handler latency.

func NewServerWithObserverAndMetrics

func NewServerWithObserverAndMetrics(observer tools.Observer, registry *metrics.Registry) *sdkmcp.Server

NewServerWithObserverAndMetrics creates the server without a graph source, observing latency and recording query metrics in registry.

func NewServerWithObserverAndMetricsAndSnapshotStore

func NewServerWithObserverAndMetricsAndSnapshotStore(
	observer tools.Observer,
	registry *metrics.Registry,
	snapshotStore *hotsnapshot.SnapshotStore,
) *sdkmcp.Server

NewServerWithObserverAndMetricsAndSnapshotStore combines the legacy latency observer with the process-local metrics registry.

func NewServerWithObserverAndSnapshotStore

func NewServerWithObserverAndSnapshotStore(observer tools.Observer, snapshotStore *hotsnapshot.SnapshotStore) *sdkmcp.Server

NewServerWithObserverAndSnapshotStore creates the snapshot-backed server and observes tool-handler latency.

func NewServerWithSnapshotStore

func NewServerWithSnapshotStore(snapshotStore *hotsnapshot.SnapshotStore) *sdkmcp.Server

NewServerWithSnapshotStore creates the server backed by the published immutable HotSnapshot.

func NewServerWithSnapshotStoreAndIndexer

func NewServerWithSnapshotStoreAndIndexer(
	snapshotStore *hotsnapshot.SnapshotStore,
	indexer indexing.ProjectIndexer,
) *sdkmcp.Server

NewServerWithSnapshotStoreAndIndexer creates the configured server backed by the published snapshot and an authorized project indexer.

func Run

func Run(ctx context.Context) error

Run serves one MCP session over the process stdin/stdout transport with a process-local metrics registry available to graph_status.

func RunWithMetrics

func RunWithMetrics(ctx context.Context, registry *metrics.Registry) error

RunWithMetrics serves one MCP session with the caller-owned metrics registry.

func RunWithMetricsAndSnapshotStore

func RunWithMetricsAndSnapshotStore(
	ctx context.Context,
	registry *metrics.Registry,
	snapshotStore *hotsnapshot.SnapshotStore,
) error

RunWithMetricsAndSnapshotStore serves one MCP session with caller-owned metrics and the immutable graph source.

func RunWithMetricsAndSnapshotStoreAndIndexer

func RunWithMetricsAndSnapshotStoreAndIndexer(
	ctx context.Context,
	registry *metrics.Registry,
	snapshotStore *hotsnapshot.SnapshotStore,
	indexer indexing.ProjectIndexer,
) error

RunWithMetricsAndSnapshotStoreAndIndexer serves one MCP session with caller-owned metrics, the immutable graph source, and an authorized project indexer.

func RunWithSnapshotStore

func RunWithSnapshotStore(ctx context.Context, snapshotStore *hotsnapshot.SnapshotStore) error

RunWithSnapshotStore serves one MCP session using snapshotStore as the immutable graph source for query tools and a fresh metrics registry.

func RunWithSnapshotStoreAndIndexer

func RunWithSnapshotStoreAndIndexer(
	ctx context.Context,
	snapshotStore *hotsnapshot.SnapshotStore,
	indexer indexing.ProjectIndexer,
) error

RunWithSnapshotStoreAndIndexer serves the configured MCP surface, including the permission-gated index_project tool.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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