{
  "description": "Public OAuth reference, not a universal installer. Full management is the nominal initial intent; choose read_only explicitly for a limited connection. Every grant still requires human consent.",
  "transport": "streamable-http",
  "url": "https://publivane.com/mcp",
  "oauth": {
    "token_endpoint_auth_method": "none",
    "response_type": "code",
    "code_challenge_method": "S256",
    "resource": "https://publivane.com/mcp",
    "scope": "read resources.delete media.upload posts.write posts.schedule posts.publish youtube.write comments.write queues.manage webhooks.manage",
    "authorization_server_metadata": "https://publivane.com/.well-known/oauth-authorization-server",
    "protected_resource_metadata": "https://publivane.com/.well-known/oauth-protected-resource/mcp",
    "registration_endpoint": "https://publivane.com/mcp-oauth/register"
  },
  "manual_fallback": {
    "client_id": "REPLACE_WITH_MANUALLY_REGISTERED_PUBLIC_CLIENT_ID",
    "redirect_uri": "REPLACE_WITH_EXACT_CALLBACK_FROM_YOUR_ASSISTANT",
    "token_endpoint_auth_method": "none",
    "response_type": "code",
    "code_challenge_method": "S256",
    "resource": "https://publivane.com/mcp",
    "scope": "read resources.delete media.upload posts.write posts.schedule posts.publish youtube.write comments.write queues.manage webhooks.manage",
    "authorization_server_metadata": "https://publivane.com/.well-known/oauth-authorization-server",
    "protected_resource_metadata": "https://publivane.com/.well-known/oauth-protected-resource/mcp"
  },
  "claude_code": {
    "add_command": "claude mcp add --transport http publivane https://publivane.com/mcp",
    "authenticate": "/mcp or claude mcp login publivane"
  },
  "default_profile": "full_management",
  "profiles": {
    "full_management": {
      "scope": "read resources.delete media.upload posts.write posts.schedule posts.publish youtube.write comments.write queues.manage webhooks.manage",
      "description": "Request the full catalog; the human selects actions, channels and lifetime."
    },
    "read_only": {
      "scope": "read",
      "description": "Intentionally request only read access."
    }
  },
  "media_transfer": {
    "protocol": 2,
    "required_client_capabilities": [
      "selected_file_read",
      "sha256",
      "HTTP_PUT"
    ],
    "required_scopes": ["read", "media.upload"],
    "begin_tool": "post_media_uploads",
    "authorize_chunk_tool": "post_media_uploads_id_transfer",
    "authorize_chunk_arguments": "{params:{id},uploadToken,body:{offset,sha256}}",
    "authorize_window_arguments": "{params:{id},uploadToken,body:{chunks:[{offset,sha256},...]}} with 1-8 consecutive chunks from the confirmed offset; result chunks:[{offset,length,headers}], PUT them one at a time in ascending order",
    "max_window_chunks": 8,
    "status_tool": "get_media_uploads_id",
    "complete_tool": "post_media_uploads_id_complete",
    "cancel_tool": "delete_media_uploads_id",
    "chunk_bytes": 8388608,
    "fingerprint": "SHA256(concatenated raw 32-byte SHA256 chunk digests in file order)",
    "http_headers_from_authorization_result": [
      "Upload-Capability",
      "Upload-Offset",
      "Upload-Checksum",
      "Content-Length",
      "Content-Type"
    ],
    "http_requires_mcp_bearer": false,
    "capability_max_seconds": 300,
    "new_open_session_max_seconds": 86400,
    "outstanding_per_grant": 8,
    "outstanding_per_server": 256,
    "open_sessions_per_workspace": 32,
    "transport_rules": "Exact returned Publivane HTTPS origin and session path, raw bytes, no redirects. Keep headers private; never log capabilities or put secrets in URLs. OAuth and uploadToken stay in MCP; give the HTTP executor only the chunk URL, returned headers and exact bytes.",
    "resume": "Read confirmed offset through authenticated MCP and request a new chunk authorization after interruption, lost response, busy or expiry. New authorization supersedes capabilities for already-confirmed chunks. Restart invalidates capabilities but preserves chunks. On 429 wait for expiry; stop on revoked rights. Never silently create duplicate completed media.",
    "legacy_sessions": "protocol:1 sessions retain bearer transport; explicitly cancel an incomplete legacy session before beginning protocol:2 with a new key if that transport is unavailable.",
    "limitations": "Requires file read/hash and HTTP, not an MCP-only binary tool. Synthetic SDK tests do not certify commercial Claude compatibility. No social publication on media completion.",
    "guide": "https://publivane.com/agent-setup.md",
    "guide_fr": "https://publivane.com/agent-setup.md#transfert-binaire--français"
  },
  "existing_connection": {
    "guide": "https://publivane.com/agent-setup.md#existing-connections",
    "refresh_expands_access": false,
    "same_client_reauthorization": "Only within its existing registered scope ceiling, with a new explicit consent.",
    "read_ceiling": "Use a host-supported replacement; duplicate server URLs may be rejected. No automatic registration metadata update."
  }
}
