* 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.6 KiB
PHP
47 lines
2.6 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
return [
|
|
'title' => 'MCP',
|
|
'subtitle' => 'TryPostアカウントで投稿の作成・管理ができるよう、AIアシスタントを接続します。',
|
|
'copy_step' => 'TryPostサーバーURLをコピー',
|
|
'open_step' => 'AIアシスタントを開く',
|
|
'copy' => 'URLをコピー',
|
|
'connect' => ':clientで接続',
|
|
'step_add' => '下の名前・URL・設定をアプリに貼り付けてください。初回接続時はブラウザでログインが開きます。',
|
|
'name_label' => '名前',
|
|
'url_label' => 'サーバーURL',
|
|
'config_label' => '設定',
|
|
'connected_title' => '接続済みアプリ',
|
|
'connected_description' => 'サインインしたアシスタントです。不要な接続は切断できます。',
|
|
'connected_empty' => 'まだ接続がありません。上の Claude、ChatGPT、または他のクライアントを使ってください。',
|
|
'disconnect' => '切断',
|
|
'disconnect_title' => 'アプリを切断',
|
|
'disconnect_confirm' => 'TryPostからアプリを切断します。再度MCPを使うには再接続が必要です。',
|
|
'disconnected' => 'アプリを切断しました。',
|
|
'copied' => 'コピーしました',
|
|
'last_used' => '最終使用',
|
|
'never' => 'なし',
|
|
'documentation_title' => 'ドキュメント',
|
|
'documentation_description' => 'クライアント別のセットアップ、利用可能なツール、トラブルシューティング。',
|
|
'view_docs' => 'ドキュメントを見る',
|
|
'connector_name' => 'TryPost',
|
|
'authorize_logged_in_as' => 'Logged in as:',
|
|
|
|
'other_clients_title' => 'その他のアプリ',
|
|
'other_clients_description' => 'Cursor、VS Code、Claude Code、その他MCP対応アプリ。',
|
|
|
|
'clients' => [
|
|
'claude' => 'Settings → Connectors を開き、カスタムコネクタを追加して上のURLを貼り付けます。',
|
|
'chatgpt' => 'Settings → Apps & Connectors を開き、カスタムコネクタを作成して上のURLを貼り付けます。',
|
|
'cursor' => 'CursorでTryPostをリモートMCPサーバーとして追加します。',
|
|
'cursor_name' => 'Cursor',
|
|
'vscode' => '下の設定をVS CodeのMCP設定に貼り付けます。',
|
|
'vscode_name' => 'VS Code',
|
|
'claude_code' => '下の設定をClaude CodeのMCP設定に貼り付けます。',
|
|
'claude_code_name' => 'Claude Code',
|
|
'other' => 'mcpServers設定を読むクライアントならどれでも使えます。',
|
|
'other_name' => 'その他',
|
|
],
|
|
];
|