feat(core): mcp server setting (#13630)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* MCP Server integration available in cloud workspaces with a dedicated
settings panel.
* Manage personal access tokens: generate/revoke tokens and view
revealed token.
  * One-click copy of a prefilled server configuration JSON.
  * New query to fetch revealed access tokens.

* **Improvements**
  * Integration list adapts to workspace type (cloud vs. local).
* More reliable token refresh with clearer loading, error and
revalidation states.

* **Localization**
* Added “Copied to clipboard” message and MCP Server name/description
translations.

* **Chores**
  * Updated icon dependency across many packages.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
EYHN
2025-09-24 16:02:47 +08:00
committed by GitHub
parent ca9811792d
commit 2f118206cc
16 changed files with 475 additions and 27 deletions

View File

@@ -99,6 +99,10 @@ export function useAFFiNEI18N(): {
* `Copied link to clipboard`
*/
["Copied link to clipboard"](): string;
/**
* `Copied to clipboard`
*/
["Copied to clipboard"](): string;
/**
* `Copy`
*/
@@ -8180,6 +8184,14 @@ export function useAFFiNEI18N(): {
["com.affine.integration.calendar.unsubscribe-content"](options: {
readonly name: string;
}): string;
/**
* `MCP Server`
*/
["com.affine.integration.mcp-server.name"](): string;
/**
* `Enable other MCP Client to search and read the doc of AFFiNE.`
*/
["com.affine.integration.mcp-server.desc"](): string;
/**
* `Notes`
*/

View File

@@ -15,6 +15,7 @@
"Continue": "Continue",
"Convert to ": "Convert to ",
"Copied link to clipboard": "Copied link to clipboard",
"Copied to clipboard": "Copied to clipboard",
"Copy": "Copy",
"Create": "Create",
"Created": "Created",
@@ -2053,6 +2054,8 @@
"com.affine.integration.calendar.show-events-desc": "Enabling this setting allows you to connect your calendar events to your Journal in AFFiNE",
"com.affine.integration.calendar.show-all-day-events": "Show all day event",
"com.affine.integration.calendar.unsubscribe-content": "Are you sure you want to unsubscribe \"{{name}}\"? Unsubscribing this account will remove its data from Journal.",
"com.affine.integration.mcp-server.name": "MCP Server",
"com.affine.integration.mcp-server.desc": "Enable other MCP Client to search and read the doc of AFFiNE.",
"com.affine.audio.notes": "Notes",
"com.affine.audio.transcribing": "Transcribing",
"com.affine.audio.transcribe.non-owner.confirm.title": "Unable to retrieve AI results for others",