mcp

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package mcp implements a Model Context Protocol (MCP) server over stdio. The server exposes Semantica's playbook search, attribution, and explain functionality as native tools that AI coding agents can call.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server handles MCP protocol communication over stdio.

func NewServer

func NewServer(repoPath string) *Server

NewServer creates a new MCP server for the given repository.

func (*Server) Serve

func (s *Server) Serve(ctx context.Context) error

Serve reads JSON-RPC requests from stdin and writes responses to stdout. It blocks until stdin is closed or ctx is cancelled.

Jump to

Keyboard shortcuts

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