skilldrift

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 5 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

Overview

Package skilldrift compares the MCP tools the two servers actually register against the tools the opensoukai skill documents.

The skill is what an agent reads before acting, so a tool missing from it makes the agent hand-roll something it could have called, and a tool named in it that no longer exists sends the agent down a dead end. Both have happened: the agent-less binding page told agents `bind` was "not an MCP tool" while `bind_escrow` was registered, and the "full tool reference" it pointed at was four signer tools out of date.

The comparison is between DECLARED SETS — the inventory tables in reference/mcp-tools.md and the `sdkmcp.AddTool` registrations — never against prose. Scanning prose for tool-shaped words does not work: a first attempt flagged `submit_votes` (a parameter of pay_for_product) and `sign_open_session_commitment` (named in a sentence saying the tool no longer exists) as missing tools. A check that cries wolf gets switched off, so it reads only the table.

Index

Constants

View Source
const (
	ServerAgent  = "opensouk-agent"
	ServerSigner = "opensouk-signer"
)

Server names, matching the two MCP server ids agents configure.

Variables

This section is empty.

Functions

func Documented

func Documented(inventoryPath string) (map[string]string, error)

Documented returns the tools the inventory lists, keyed by tool name with the server whose section they appear under. Which server a tool lives on is part of the contract — calling the wrong one fails — so the section is captured, not just the name.

func Registered

func Registered(dir string) (map[string]bool, error)

Registered returns the tool names registered under dir, which should hold the Go sources that call sdkmcp.AddTool or the backend's addTool wrapper. Test files are skipped: they construct tools that are never served.

Types

type Diff

type Diff struct {
	// Undocumented is registered but absent from the inventory: an agent cannot know it exists.
	Undocumented []string `json:"undocumented,omitempty"`
	// Ghosts are in the inventory but registered nowhere: an agent calling one gets an error.
	Ghosts []string `json:"ghosts,omitempty"`
	// WrongServer is documented under the wrong MCP server.
	WrongServer []string `json:"wrong_server,omitempty"`
}

Diff reports what the inventory and the registrations disagree about.

func Compare

func Compare(documented map[string]string, agent, signer map[string]bool) Diff

Compare matches the inventory against the registrations of both servers.

func (Diff) Empty

func (d Diff) Empty() bool

Jump to

Keyboard shortcuts

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