server.ts
registerPrompt returns the server, so it chains next to your other registrations. argsSchema is a Zod shape: it validates the arguments the host passes and types the handler’s input.
Register prompts up front, at startup. Adding or removing them at runtime relies on
list_changed notifications, which the stateless JSON transport can’t deliver, so hosts won’t see the change.Completions
Wrap an argument incompletable() to autocomplete it as the user fills in the prompt:
server.ts
Go Further
registerPrompt
Full config and handler reference
Register Resources
Expose readable content
Register Tools
The action primitive