A session is typically created using the function mcp-toolkit.client/create-session
or mcp-toolkit.client/create-session
.
It contains:
:initialized
boolean, becomes true after the initial handshake between the client and server.:protocol-version
used, initialized after the initial handshake.:client-capabilities
/ :server-capabilities
listing what features the remote site supports.:on-
, triggered on events, some of them directly being some types of messages.
Some of them are defaulting to a built-in behavior which maintain the collection of resources available on the remote site.The session atom can be modified from the message handlers.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close