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:
Yiling-J
2026-10-27 14:37:26 +08:00
committed by GitHub
parent 50fbd97953
commit b3cae4f2b0
81 changed files with 4111 additions and 1397 deletions
+4 -9
View File
@@ -8,25 +8,20 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
### Added
* **mcp**: Shumai now has a built-in MCP server, so external AI agents such as Claude Code, Cursor, or Kiro can browse projects and create, rename, move, or delete folders and files with your API token and permissions
* **mcp**: Shumai now has a built-in MCP server at `https://<your-shumai-host>/mcp`, so external AI agents such as Claude Code, Cursor, or Kiro can browse projects and create, rename, move, or delete folders and files with your API token and permissions. Like other MCP servers, it can also be served from its own host name, such as `https://mcp.example.com/mcp`
* **agent**: The built-in agent can now list the projects you have access to, so it can find a project's root folder on its own. Team owners can turn this off per agent like other tools
* **mcp**: External AI agents connected to Shumai's MCP server can now look at your files: images, video frames, PDF pages, 3D model views, and text files. Images are attached so the AI can see them, along with links that stay valid for about an hour. They can also get download links for files, as the web preview or the original upload
* **cli**: New `shumai-cli download` command saves files to your computer, up to 50 at a time: the smaller web preview by default, or the original upload with `--original`
* **cli**: New `shumai-cli read` command shows an image, video frames, PDF pages, a 3D model view, or the text of a file, and `--out` downloads the images into a folder. If rendering takes a while, `shumai-cli render <taskId>` picks up the result later
* **agent**: The built-in agent can now work more like a teammate: it can search for files by name, meaning, or metadata, read and post review comments (as you) and mark them resolved, set metadata such as a file's status, copy files, stack files into versions or take a version out of its stack, and read a folder's instructions for AI agents (AGENTS.md). Team owners can turn each of these off per agent
* **mcp**: External AI agents connected to Shumai's MCP server can do the same, and can now upload files and new versions: Shumai gives them a link to upload the file to, then creates the file once it's uploaded. They can also fill in a project's Creation Context fields (such as the prompt or model used) for the files they create
* **cli**: New `shumai-cli` commands to search files (`search`), copy them (`copy`), work with comments (`comment ls`, `comment add`, `comment resolve`), list and set metadata (`field ls`, `meta set`), manage versions (`version stack`, `version ls`, `version unstack`), and show a folder's instructions (`instructions`)
### Fixed
* **asset**: Fix an issue where folders created in the web app didn't record who created them
* **agent**: Fix an issue where an agent could read a comment thread from a project or team the user doesn't have access to by referencing its ID
* **agent**: Fix an issue where an agent creating a file or a new version in a folder the user can't edit still uploaded the file to storage before the request was rejected
### Changed
* **cli**: `shumai-cli` has clearer help for every command (`shumai-cli <command> --help`), suggests the right command when you mistype one, and can print raw JSON with `--json`. `ls` can now filter by type and page through very large folders. Existing commands work as before; the npm package now needs Node.js 22.12 or later
* **agent**: When the agent lists a folder's contents, large folders are now paged with a "next page" marker instead of page numbers, and items appear in the same order as in the file browser
* **agent**: When the agent looks at a long video or a large document that takes more than about a minute to render, it no longer fails with a timeout. The agent is told the render is still in progress and picks up the frames or pages when they're ready, using the new "Get Asset Render" tool. Each call can now read at most 20 video frames, the same limit as PDF pages
* **agent**: The agent can now download several files at once (up to 50), and can get the original upload instead of the smaller web preview. Downloaded files keep the preview's file type in their name (e.g. `photo.webp`). Team owners can now turn the Download Asset tool on or off per agent in agent settings
* **api-token**: API tokens are now stored securely, so they can no longer be read back from the database. A new token is shown only once when you create it, so copy it right away; the token list now shows just the last few characters. Existing tokens keep working without any changes.
## [0.6.1] - 2026-10-24