MCP: у каждого коннектора KH Build своя иконка и название (serverInfo.icons/title)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -703,7 +703,10 @@ const rpcError = (id: unknown, code: number, message: string): Json => ({ jsonrp
|
||||
|
||||
/** Обрабатывает одно JSON-RPC сообщение от аутентифицированного человека; null - уведомление (ответа нет). */
|
||||
const SUPPORTED_VERSIONS = ["2026-07-28", "2025-11-25", "2025-06-18", "2025-03-26"];
|
||||
const SERVER_INFO = { name: "accounting_automation", version: "0.1.0" };
|
||||
/** Иконка коннектора (MCP serverInfo.icons): у каждого MCP KH Build свой цвет и знак, чтобы не путать их в списке коннекторов. */
|
||||
const MCP_ICON = "data:image/svg+xml," + encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="14" fill="#16833a"/><text x="32" y="46" font-size="40" font-weight="700" text-anchor="middle" fill="#fff" font-family="Arial">$</text></svg>');
|
||||
const MCP_ICONS = [{ src: MCP_ICON, mimeType: "image/svg+xml", sizes: ["any"] }];
|
||||
const SERVER_INFO = { name: "accounting_automation", title: "KH Build: бухгалтерия", version: "0.1.0", icons: MCP_ICONS };
|
||||
const CAPABILITIES = { tools: { listChanged: true }, resources: {}, prompts: {}, extensions: { "io.modelcontextprotocol/ui": { mimeTypes: [REVIEW_UI_MIME] } } };
|
||||
|
||||
/** Подсказки кэширования (2026-07-28) для списков, discover и ресурсов; во всех результатах resultType: "complete". */
|
||||
|
||||
Reference in New Issue
Block a user