Help us shape the future of Go! Take the 2026 Go Developer Survey

mcp

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package mcp exposes the inode knowledge base over the Model Context Protocol so MCP-aware AI clients (Claude Code, Cursor, etc.) can read notes via stdio.

v1 is read-only by design: search_notes, list_notes, get_note. Writing notes from an agent would let it fill — or wipe — the user's KB without the user's intent showing up anywhere reviewable, so it stays opt-in for a future iteration.

Sensitive notes are never revealed to the agent unless mcp.reveal_sensitive is explicitly set in config. The default (false) excludes them from search candidates entirely (so the LLM cannot quote secrets in answers) and masks their content in get_note responses.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(version string, h *Handler) *server.MCPServer

NewServer builds an MCP server with the inode tool surface registered. Caller is responsible for actually serving it (e.g. server.ServeStdio).

func Serve

func Serve(s *server.MCPServer) error

Serve runs the server over stdio. Blocks until the client disconnects.

Types

type Handler

type Handler struct {
	Container       *core.Container
	RevealSensitive bool
}

Handler owns the inode services the MCP tools delegate to.

Jump to

Keyboard shortcuts

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