* Add workspace MCP settings and token access controls. Ship MCP settings UI, OAuth revoke/list helpers, Passport deploy wiring, and workspace.token:mcp gating so assistants can connect without pulling in welcome/onboarding from the parent epic. Co-authored-by: Cursor <cursoragent@cursor.com> * Type MCP client config shapes instead of string checks. Encode http/config-root on each advanced client and tighten primary client ids so snippet generation does not branch on magic strings. Co-authored-by: Cursor <cursoragent@cursor.com> * Polish MCP settings follow-ups from review. Translate Ukrainian MCP copy, deep-link ChatGPT into connector creation, drop an unused asset and revoke arg, and assert PATs are rejected on the MCP endpoint. Co-authored-by: Cursor <cursoragent@cursor.com> * Harden MCP connected clients, revoke scope, and OAuth consent. List recoverable sessions with live refresh tokens, revoke only PATs, throttle registration alone, and block viewers from authorizing MCP. Co-authored-by: Cursor <cursoragent@cursor.com> * Simplify MCP OAuth route throttling to a single middleware group. Co-authored-by: Cursor <cursoragent@cursor.com> * Allow workspace viewers read-only MCP access with web policy writes. Mirror the web app: MCP connects on view + OAuth mcp:use, write tools enforce createPost/update/delete/manageAccounts/manageTeam, and demotion to Viewer keeps grants. Cover role denials, consent, and disconnect. Co-authored-by: Cursor <cursoragent@cursor.com> * Harden MCP tool authz with shared workspace helpers. Route ApiKey tools through AuthorizesMcpTool, fail closed on null user or policy argument, and resolve the current workspace before mutating. Co-authored-by: Cursor <cursoragent@cursor.com> * Drop redundant string casts on validated request data. Enum::from and validated() fields are already strings, so the casts add noise without changing behavior. Co-authored-by: Cursor <cursoragent@cursor.com> * Show only the current user's MCP connections in settings. Match API keys privacy: list and disconnect your own OAuth clients, not teammates' across the account. Co-authored-by: Cursor <cursoragent@cursor.com> * Cover LoadWorkspaceFromToken gaps and harden AuthorizesMcpTool tests. Co-authored-by: Cursor <cursoragent@cursor.com> * Drop redundant is_string guard before UpdatePostTool find. Co-authored-by: Cursor <cursoragent@cursor.com> * Refactor AppSidebar to always show MCP link and simplify route middleware definition in ai.php. The MCP link is now consistently displayed regardless of the current workspace state, and the route middleware syntax has been streamlined. * Refresh MCP connected clients with Inertia usePoll. Co-authored-by: Cursor <cursoragent@cursor.com> * Bump laravel/mcp to 0.9.1 and add the TryPost server icon. Requires laravel/boost 2.5 for the Icon attribute; expose images/trypost/icon.png on TryPostServer. Co-authored-by: Cursor <cursoragent@cursor.com> * Drop no-op ReflectionClass import in TryPostServerTest. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>
47 lines
2.3 KiB
PHP
47 lines
2.3 KiB
PHP
<?php
|
||
|
||
declare(strict_types=1);
|
||
|
||
return [
|
||
'title' => 'MCP',
|
||
'subtitle' => 'Collega assistenti IA al tuo workspace TryPost. Usano le stesse autorizzazioni di ogni utente connesso.',
|
||
'copy_step' => 'Copia l’URL del server TryPost',
|
||
'open_step' => 'Apri il tuo assistente IA',
|
||
'copy' => 'Copia URL',
|
||
'connect' => 'Collega con :client',
|
||
'step_add' => 'Incolla nome, URL o config qui sotto nella tua app. Il login si apre nel browser al primo collegamento.',
|
||
'name_label' => 'Nome',
|
||
'url_label' => 'URL del server',
|
||
'config_label' => 'Config',
|
||
'connected_title' => 'App collegate',
|
||
'connected_description' => 'Assistenti a cui hai effettuato l’accesso. Puoi disconnettere quelli che non usi più.',
|
||
'connected_empty' => 'Nessuna connessione ancora. Usa Claude, ChatGPT o un altro client sopra.',
|
||
'disconnect' => 'Scollega',
|
||
'disconnect_title' => 'Scollega app',
|
||
'disconnect_confirm' => 'Questo scollega l’app da TryPost. Dovrà riconnettersi prima di usare di nuovo MCP.',
|
||
'disconnected' => 'App scollegata.',
|
||
'copied' => 'Copiato',
|
||
'last_used' => 'Ultimo uso',
|
||
'never' => 'Mai',
|
||
'documentation_title' => 'Documentazione',
|
||
'documentation_description' => 'Guide per client, tools disponibili e risoluzione problemi.',
|
||
'view_docs' => 'Vedi documentazione',
|
||
'connector_name' => 'TryPost',
|
||
'authorize_logged_in_as' => 'Logged in as:',
|
||
|
||
'other_clients_title' => 'Altre app',
|
||
'other_clients_description' => 'Cursor, VS Code, Claude Code e qualsiasi app che parla MCP.',
|
||
|
||
'clients' => [
|
||
'claude' => 'Apri Settings → Connectors, aggiungi un connettore personalizzato e incolla l’URL qui sopra.',
|
||
'chatgpt' => 'Apri Settings → Apps & Connectors, crea un connettore personalizzato e incolla l’URL qui sopra.',
|
||
'cursor' => 'Aggiungi TryPost come server MCP remoto in Cursor.',
|
||
'cursor_name' => 'Cursor',
|
||
'vscode' => 'Incolla la config qui sotto nelle impostazioni MCP di VS Code.',
|
||
'vscode_name' => 'VS Code',
|
||
'claude_code' => 'Incolla la config qui sotto nelle impostazioni MCP di Claude Code.',
|
||
'claude_code_name' => 'Claude Code',
|
||
'other' => 'Funziona con qualsiasi client che legge una config mcpServers.',
|
||
'other_name' => 'Altri',
|
||
],
|
||
];
|