SseMcpServer

远程MCP服务器接口,定义了远程MCP服务器的基本操作。

可以通过此接口设置和获取服务器的名称、描述和URL等信息,方便对远程服务器进行管理和配置。

Author

M8Test, [email protected], https://m8test.com

Functions

Link copied to clipboard
abstract fun getDescription(): String

获取服务器的描述信息。

Link copied to clipboard
abstract fun getName(): String

获取服务器的名称。

Link copied to clipboard
abstract fun getTools(): Set<Tool>

获取服务器可用的工具集合。

Link copied to clipboard
abstract fun getUrl(): String

获取服务器的URL。

Link copied to clipboard
abstract fun setAuthorizationHeader(headerName: String, bearerToken: String)

设置请求服务器时使用的授权头信息。

Link copied to clipboard
abstract fun setDescription(description: String)

设置服务器的描述信息。

Link copied to clipboard
abstract fun setName(name: String)

设置服务器的名称。

Link copied to clipboard
abstract fun setUrl(url: String)

设置服务器的URL。