{{ __('mcp::mcp.playground.title') }}

{{ __('mcp::mcp.playground.description') }}

{{-- Error Display --}} @if($error)

{{ $error }}

@endif

{{ __('mcp::mcp.playground.auth.title') }}

{{ __('mcp::mcp.playground.auth.validate') }} @if($keyStatus === 'valid') {{ __('mcp::mcp.playground.auth.status.valid') }} @elseif($keyStatus === 'invalid') {{ __('mcp::mcp.playground.auth.status.invalid') }} @elseif($keyStatus === 'expired') {{ __('mcp::mcp.playground.auth.status.expired') }} @elseif($keyStatus === 'empty') {{ __('mcp::mcp.playground.auth.status.empty') }} @endif
@if($keyInfo)
{{ __('mcp::mcp.playground.auth.key_info.name') }}: {{ $keyInfo['name'] }}
{{ __('mcp::mcp.playground.auth.key_info.workspace') }}: {{ $keyInfo['workspace'] }}
{{ __('mcp::mcp.playground.auth.key_info.scopes') }}: {{ implode(', ', $keyInfo['scopes'] ?? []) }}
{{ __('mcp::mcp.playground.auth.key_info.last_used') }}: {{ $keyInfo['last_used'] }}
@elseif(!$isAuthenticated && !$apiKey)

{{ __('mcp::mcp.playground.auth.sign_in_prompt') }} {{ __('mcp::mcp.playground.auth.sign_in_description') }}

@endif

{{ __('mcp::mcp.playground.tools.title') }}

@foreach($servers as $server) {{ $server['name'] }} @endforeach @if($selectedServer && count($tools) > 0) @foreach($tools as $tool) {{ $tool['name'] }} @endforeach @endif
@if($toolSchema)

{{ $toolSchema['name'] }}

{{ $toolSchema['description'] ?? $toolSchema['purpose'] ?? '' }}

@php $params = $toolSchema['inputSchema']['properties'] ?? $toolSchema['parameters'] ?? []; $required = $toolSchema['inputSchema']['required'] ?? []; @endphp @if(count($params) > 0)

{{ __('mcp::mcp.playground.tools.arguments') }}

@foreach($params as $name => $schema)
@php $paramRequired = in_array($name, $required) || ($schema['required'] ?? false); $paramType = is_array($schema['type'] ?? 'string') ? ($schema['type'][0] ?? 'string') : ($schema['type'] ?? 'string'); @endphp @if(isset($schema['enum'])) @foreach($schema['enum'] as $option) {{ $option }} @endforeach @elseif($paramType === 'boolean') true false @elseif($paramType === 'integer' || $paramType === 'number') @else @endif
@endforeach
@else

{{ __('mcp::mcp.playground.tools.no_arguments') }}

@endif
@if($keyStatus === 'valid') {{ __('mcp::mcp.playground.tools.execute') }} @else {{ __('mcp::mcp.playground.tools.generate') }} @endif {{ __('mcp::mcp.playground.tools.executing') }}
@endif

{{ __('mcp::mcp.playground.response.title') }}

@if($response)
{{ $response }}
@else

{{ __('mcp::mcp.playground.response.empty') }}

@endif

{{ __('mcp::mcp.playground.reference.title') }}

{{ __('mcp::mcp.playground.reference.endpoint') }}: {{ config('app.url') }}/api/v1/mcp/tools/call
{{ __('mcp::mcp.playground.reference.method') }}: POST
{{ __('mcp::mcp.playground.reference.auth') }}: @if($keyStatus === 'valid') Bearer {{ Str::limit($apiKey, 20, '...') }} @else Bearer <your-api-key> @endif
{{ __('mcp::mcp.playground.reference.content_type') }}: application/json
@if($isAuthenticated)
{{ __('mcp::mcp.playground.reference.manage_keys') }}
@endif
@script @endscript