Update doc in server/index.ts
This commit is contained in:
parent
79c4e51038
commit
90d1b664ee
1 changed files with 3 additions and 5 deletions
|
|
@ -22,12 +22,10 @@ export type ServerFactoryResponse = {
|
||||||
* This function initializes a `McpServer` with specific capabilities and instructions,
|
* This function initializes a `McpServer` with specific capabilities and instructions,
|
||||||
* registers tools, resources, and prompts, and configures resource subscription handlers.
|
* registers tools, resources, and prompts, and configures resource subscription handlers.
|
||||||
*
|
*
|
||||||
* It returns the server instance along with callbacks for post-connection setup and cleanup tasks.
|
|
||||||
*
|
|
||||||
* @function
|
* @function
|
||||||
* @returns {ServerFactoryResponse} An object containing the server instance, a `clientConnected` callback
|
* @returns {ServerFactoryResponse} An object containing the server instance, a `clientConnected`
|
||||||
* for managing new client sessions, and a `cleanup` function for handling server-side cleanup when
|
* callback for post-connection setup, and a `cleanup` function for handling server-side cleanup
|
||||||
* a session ends.
|
* when a session ends.
|
||||||
*
|
*
|
||||||
* Properties of the returned object:
|
* Properties of the returned object:
|
||||||
* - `server` {Object}: The initialized server instance.
|
* - `server` {Object}: The initialized server instance.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue