mcp

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package mcp implements worklog's Model Context Protocol server: a newline-delimited JSON-RPC 2.0 loop over stdin/stdout exposing the task tree and its decision/journal record as tools any agent can call mid-session.

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is the server version reported in the handshake; set from main.

Functions

func Serve

func Serve(dbPath string) error

Serve runs the stdio loop until stdin closes. It attaches to the database at dbPath on demand; if that file does not exist the server still answers the handshake and tools/list, but tool calls report that init is needed.

Types

type Server

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

Server wires the MCP protocol to a worklog store. The store is attached lazily from dbPath so a globally-installed server stays inert in projects that have not run `worklog init`.

Jump to

Keyboard shortcuts

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