mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 20:07:59 +00:00
feat: move MCP to /mcp and add teammate operations (#500)
* feat(operations): move MCP to /mcp and add search, comment, metadata, version, and upload operations - Serve the MCP server at /mcp instead of /api/mcp - Add search_assets, copy_assets, get_folder_instructions, list_comments, create_comment, resolve_comment, list_metadata_fields, update_asset_metadata, create_version_stack, list_versions, and remove_version on the agent, MCP, and CLI - Add create_file and create_version (agent, MCP) with Creation Context metadata, and complete_upload (MCP) for presigned two-step uploads - Replace the native agent create_file/create_version tools with Operation-backed ones - Route the comment-complete, metadata, copy, version stack, and AGENTS.md read REST endpoints through their Operations * docs(readme): add built-in MCP server and CLI to features list
This commit is contained in:
@@ -142,6 +142,61 @@ const BUILTIN_TOOLS = [
|
||||
name: () => m.agent_tool_delete_asset_name(),
|
||||
description: () => m.agent_tool_delete_asset_desc(),
|
||||
},
|
||||
{
|
||||
id: 'search_assets',
|
||||
name: () => m.agent_tool_search_assets_name(),
|
||||
description: () => m.agent_tool_search_assets_desc(),
|
||||
},
|
||||
{
|
||||
id: 'copy_assets',
|
||||
name: () => m.agent_tool_copy_assets_name(),
|
||||
description: () => m.agent_tool_copy_assets_desc(),
|
||||
},
|
||||
{
|
||||
id: 'get_folder_instructions',
|
||||
name: () => m.agent_tool_get_folder_instructions_name(),
|
||||
description: () => m.agent_tool_get_folder_instructions_desc(),
|
||||
},
|
||||
{
|
||||
id: 'list_comments',
|
||||
name: () => m.agent_tool_list_comments_name(),
|
||||
description: () => m.agent_tool_list_comments_desc(),
|
||||
},
|
||||
{
|
||||
id: 'create_comment',
|
||||
name: () => m.agent_tool_create_comment_name(),
|
||||
description: () => m.agent_tool_create_comment_desc(),
|
||||
},
|
||||
{
|
||||
id: 'resolve_comment',
|
||||
name: () => m.agent_tool_resolve_comment_name(),
|
||||
description: () => m.agent_tool_resolve_comment_desc(),
|
||||
},
|
||||
{
|
||||
id: 'list_metadata_fields',
|
||||
name: () => m.agent_tool_list_metadata_fields_name(),
|
||||
description: () => m.agent_tool_list_metadata_fields_desc(),
|
||||
},
|
||||
{
|
||||
id: 'update_asset_metadata',
|
||||
name: () => m.agent_tool_update_asset_metadata_name(),
|
||||
description: () => m.agent_tool_update_asset_metadata_desc(),
|
||||
},
|
||||
{
|
||||
id: 'create_version_stack',
|
||||
name: () => m.agent_tool_create_version_stack_name(),
|
||||
description: () => m.agent_tool_create_version_stack_desc(),
|
||||
},
|
||||
{
|
||||
id: 'list_versions',
|
||||
name: () => m.agent_tool_list_versions_name(),
|
||||
description: () => m.agent_tool_list_versions_desc(),
|
||||
},
|
||||
{
|
||||
id: 'remove_version',
|
||||
name: () => m.agent_tool_remove_version_name(),
|
||||
description: () => m.agent_tool_remove_version_desc(),
|
||||
},
|
||||
]
|
||||
|
||||
type AgentFormValues = z.infer<typeof agentFormSchema>
|
||||
|
||||
@@ -79,6 +79,10 @@ const STANDARD_TOOLS = [
|
||||
{ value: 'rename_asset', label: () => m.agent_tool_rename_asset_name() },
|
||||
{ value: 'move_assets', label: () => m.agent_tool_move_assets_name() },
|
||||
{ value: 'delete_asset', label: () => m.agent_tool_delete_asset_name() },
|
||||
{ value: 'search_assets', label: () => m.agent_tool_search_assets_name() },
|
||||
{ value: 'copy_assets', label: () => m.agent_tool_copy_assets_name() },
|
||||
{ value: 'create_comment', label: () => m.agent_tool_create_comment_name() },
|
||||
{ value: 'update_asset_metadata', label: () => m.agent_tool_update_asset_metadata_name() },
|
||||
]
|
||||
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
|
||||
Reference in New Issue
Block a user