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 ¶
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 ¶
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.
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.