mcpserver

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package mcpserver exposes the card store to Claude Code as an MCP stdio server — the pull side of culi. Three tools, deliberately no more: search_context (hybrid retrieval), expand_card (full body + attachments, records utility feedback), save_lesson (write-through to the store).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, base string) error

Run serves stdio until the client disconnects — `culi mcp`.

Types

type Server

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

Server owns the long-lived handles for one MCP session (Claude Code spawns one process per session).

func New

func New(ctx context.Context, base string) (*Server, error)

New opens the store and prepares the tool surface.

func (*Server) Close

func (s *Server) Close() error

Close releases the store handle.

func (*Server) MCP

func (s *Server) MCP() *mcp.Server

MCP builds the configured protocol server.

Jump to

Keyboard shortcuts

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