25 lines
1.1 KiB
JavaScript
25 lines
1.1 KiB
JavaScript
/**
|
|
* MCP bundle — the host half of the MCP management tab.
|
|
*
|
|
* In this package the MCP feature is a browser bridge, nothing more: the
|
|
* client tab talks to the host `dsh-mcp-connector` plugin over
|
|
* `/mcp-connector/api`, wrapping one JSON envelope per call, a fixed probe
|
|
* timeout and an explicit host-unavailable state. Connections, credentials
|
|
* and tool management belong to the host plugin; this bundle never stores
|
|
* them and never syncs MCP configuration to the cloud.
|
|
*/
|
|
/**
|
|
* The MCP bridge capability fragment owned by this bundle. `capabilities()`
|
|
* in routes.ts aggregates it with the rest of the build's report; the MCP
|
|
* text lives here so the bundle keeps its own surface in one place.
|
|
*/
|
|
export function mcpCapability() {
|
|
return {
|
|
bridge: 'host-plugin',
|
|
notes: [
|
|
'MCP 管理由宿主 dsh-mcp-connector 插件提供,本卡通过其公开接口读写,不另建凭据库。',
|
|
'MCP 工具可见性与会话级激活分属两层:本卡展示连接与工具缓存,会话级“选择精确工具后激活”由宿主 session-tools 负责,本卡不伪造激活。',
|
|
],
|
|
};
|
|
}
|