A session is typically created using the function mcp-toolkit.client/create-session or mcp-toolkit.server/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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs | 
| ← | Move to previous article | 
| → | Move to next article | 
| Ctrl+/ | Jump to the search field |