Repository navigation
0.14.1
Resources, templates and subscriptions/listen in spindle-mcp and spindle-mcp-client: a client can now read and watch what a server offers, through MCP alone.
New
Spindle_mcp.resourceandSpindle_mcp.template, given toroutes ~resources, are listed byresources/listandresources/templates/listand read byresources/read; a template is RFC 6570's{name}and a form-style query last, each variable read by its own description throughSpindle_mcp.Template.- A resource's function answering
Refusal.not_foundorAccess.forbiddenis the resource not found,-32602, alike, so a read reveals nothing of someone else's object; a resource may need a scope, as a tool may. Spindle_mcp.Changes, given toroutes ~changes, servessubscriptions/listen:Changes.updated changes uritells every listen watching that URI, which watches only URIs a read would answer for its caller, at most 64.- A listen is subscribed before it is acknowledged, ends with the graceful result when
Changes.closeends it -- fromon_stop-- and with none when it fell behind, so its client listens again. Spindle_mcp_client.resources,templatesandreadlist and read another server's resources;listen uris fhandsfthe acknowledgment and each change, endingStopped,CompletedorDropped, and never listens again by itself.Broadcast.dropped subtells a subscriber dropped as slow from one unsubscribed or whose hub closed.Spindle.Test.eventstakes~methand~body, for a stream aPOSTopens, andSpindle_mcp.Test.eventsreads an MCP request's answer as an event stream.