mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 17:59:26 +00:00
* feat(mcp): support tool-level directTools array and 3-state UI configuration * refactor(mcp): refine tool hint explanation and separate server instructions block * style(mcp): display tool count in header title and split option hints into 3 lines * style(mcp): update tools description paragraph and place bulk buttons on a separate row * fix(mcp): enforce excludeTools in proxy path and align direct-tool counts - Filter the per-agent tool registry by excludeTools at build time (DB cache and lazy-connect paths), so excluded tools are unreachable through the mcp proxy (call, search, list, describe) — matching pi-mcp-adapter where isToolAllowed gates both direct and gateway exposure. - Add shared isDirectTool predicate (matches original or prefixed name) used by both buildDirectTools and the proxy description counts, so the advertised direct/proxy counts can no longer drift from actual registration; toolCount now reflects allowed tools only. - Remove the legacy boolean directTools branch (no legacy data exists). - Drop the now-unused mcp_excluded_tools_hint i18n key and regenerate Paraglide messages. - Extend unit tests: excluded tools are not counted, listed, searched, or callable via the proxy; prefixed-name directTools configs count correctly.
17 lines
521 B
TypeScript
Generated
17 lines
521 B
TypeScript
Generated
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "Proxy" |
|
|
*
|
|
* @param {Mcp_Tool_State_ProxyInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const mcp_tool_state_proxy: ((inputs?: Mcp_Tool_State_ProxyInputs, options?: {
|
|
locale?: "en" | "zh";
|
|
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Mcp_Tool_State_ProxyInputs, {
|
|
locale?: "en" | "zh";
|
|
}, {}>;
|
|
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
export type Mcp_Tool_State_ProxyInputs = {};
|