Shorten the MCP gateway tool names to seal_use and seal_use_write
This commit is contained in:
1 parent
2a5fb3d9c4
commit
7bd8adfea4
4 files changed
+14
-14
No files matched your search
+4
-4
@@ -14,8 +14,8 @@ const serverEntryFile = fileURLToPath(import.meta.url);
|
||||
// no packaged bundle anymore, so two levels up is always the app root.
|
||||
const pluginRoot = dirname(dirname(serverEntryFile));
|
||||
|
||||
export const SEAL_USE_MCP_TOOL_NAME = "seal_use_mcp";
|
||||
export const SEAL_USE_MCP_WRITE_TOOL_NAME = "seal_use_mcp_write";
|
||||
export const SEAL_USE_MCP_TOOL_NAME = "seal_use";
|
||||
export const SEAL_USE_MCP_WRITE_TOOL_NAME = "seal_use_write";
|
||||
export const SEAL_MCP_ENABLED_ENV = "SEAL_USE_MCP_ENABLED";
|
||||
export const LEGACY_SEAL_MCP_ENABLED_ENV = "SEAL_HOME_MCP_ENABLED";
|
||||
|
||||
@@ -35,7 +35,7 @@ export function createServer(options: { enableCli?: boolean } = {}): McpServer {
|
||||
},
|
||||
{
|
||||
// Declared explicitly so that `tools/list` answers with an empty list (rather than a
|
||||
// method-not-found error) when seal_use_mcp is switched off by configuration.
|
||||
// method-not-found error) when seal_use is switched off by configuration.
|
||||
capabilities: { tools: {} }
|
||||
}
|
||||
);
|
||||
@@ -161,7 +161,7 @@ export function startServer(): StdioServerHandle {
|
||||
console.error(
|
||||
enableCli
|
||||
? "seal-use MCP server running on stdio"
|
||||
: "seal-use MCP server connected with seal_use_mcp disabled by configuration"
|
||||
: "seal-use MCP server connected with seal_use disabled by configuration"
|
||||
);
|
||||
return handle;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user