Repository navigation
feat(templates): support OAuth sign-in in the MCP server template - #14131
Conversation
Grants users.write so OAuth mode can read as the signed-in user, adds MCP_AUTH_SCOPES, documents the oauth mode, and limits runtimes to Python 3.10+ (newest first) since the MCP SDK cannot run on 3.9.
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
🟢 Tier S · Ready to merge
Updates the MCP server template to release 1.3.0 with OAuth sign-in guidance, an optional OAuth scopes variable, and the users.write permission. Limits its runtimes to Python 3.10–3.14 in newest-first order, filtered by the deployment allow-list. Adds API regression coverage for the template's permission and runtime compatibility. Latest changes: Replaces dynamic Python version filtering and sorting with an explicit newest-first list of Python 3.10–3.14 runtimes.
📂 Walkthrough · 2
Reviewed the commits since |
Asserts users.write and that every exposed runtime is Python 3.10+ in newest-first order.
An explicit newest-first list reads at a glance instead of filtering and sorting the catalog.
Brings in #14056 (immutable TimeLimit API in packages/abuse) and #14131 (MCP server OAuth template). Conflicts: - app/controllers/shared/api.php: main's immutable flow (params array, withParams(), check()/peek() Result, reset()) with the train's request param encoding, which keeps falsy-but-set values such as "0" as abuse key params and skips values json_encode cannot encode, instead of main's empty() filter. - packages/abuse/README.md: main's wording ("Utopia Abuse requires PHP 8.5"). - packages/abuse/composer.json: main's dependency list with the train's utopia-php/database ^8.0 and utopia-php/query ^0.6. - packages/abuse/tests/E2E/Appwrite/TablesDBTest.php: union of the train's owned-database fixture and cleanup with main's Adapter namespace and withParams()/check()->limited assertions. - packages/abuse/src/Adapters/TimeLimit/Database.php: deleted, as main moved the adapter to src/Adapter/TimeLimit/Database.php; the train's database 8 schema port follows in a separate commit. Co-Authored-By: Claude Opus 5.5 <[email protected]>
What
Updates the existing MCP server function template for its new OAuth mode (appwrite/templates#364): MCP clients sign users in through the project's OAuth2 server, and tools read Appwrite as the signed-in user.
scopes[]['users.write'], so the function can create short-lived JWTs for the signed-in userruntimespython-3.9)MCP_AUTH_MODEdescriptionnone/bearernone/bearer/oauthMCP_AUTH_SCOPESopenid tasks.readinstructionsproviderVersion1.2.01.3.0No schema or Console changes: it uses existing registry fields only.
nonestays the default.Merge order
1.3.0appwrite/templates 1.3.0 is released, so this is ready to merge.
Verification
users.write, 2 runtimes (python-3.14,python-3.12), and 5 variables; the create screen defaults topython-3.14.python-3.14andpython-3.12, and on staging.php -land Pint pass.Related: appwrite-labs/cloud#6311