Repository navigation
Add agent MCP and resolve open pool and CAPTCHA work - #409
Merged
Merged
Conversation
Operators of busy MySQL and Postgres instances could not raise the hard-coded 100-connection pool, and small instances could not lower it. SQLite keeps its own cap. Co-authored-by: Cursor <cursoragent@cursor.com>
Self-hosted Cap only overrode cap_wasm_bg.wasm, so HashWX still came from jsDelivr (cloudreve#3617). Co-authored-by: Cursor <cursoragent@cursor.com>
Agents can list, search, edit, and share files as the user behind a bearer access token, with the same group permissions and OAuth scopes as the REST API. Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced Oct 28, 2026
Settings and Connect now issue 30-day tokens, and the README and docs explain how agents connect. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Database.MaxOpenConns, default 100, clamped at 5000). SQLite keeps its own cap. This supersedes feat(db): make database pool size configurable #408, which rejected every value of 10 or below and so still blocked small instances.hashwx.wasmfrom the same asset source as the rest of the widget, including a self-hosted Cap server ([Bug] Cap CAPTCHA does not use self-hosted assets for the newly introduced hashwx.wasm cloudreve/cloudreve#3617, [upstream cloudreve issue #3617] [Bug] Cap CAPTCHA does not use self-hosted assets for the newly introduced hashwx.wasm #407).POST /api/v4/mcp. Agents authenticate with the same bearer access token as the REST API and can list, search, read, write, move, and share files under that user's permissions and OAuth scopes.Test plan
go test ./inventory/ ./pkg/mcp/ ./routers/CR_CONF_Database.MaxOpenConnson a Postgres stack and confirm the process starts/assets/hashwx.wasmfrom that hostPOST /api/v4/mcpwithout a token returns 401; with an access token,tools/callwhoamireturns the userMade with Cursor