Discover the MCP protected resource
curl --request GET \
--url https://api.paywithlocus.com/.well-known/oauth-protected-resource/api/credits/mcpimport requests
url = "https://api.paywithlocus.com/.well-known/oauth-protected-resource/api/credits/mcp"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.paywithlocus.com/.well-known/oauth-protected-resource/api/credits/mcp', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.paywithlocus.com/.well-known/oauth-protected-resource/api/credits/mcp",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.paywithlocus.com/.well-known/oauth-protected-resource/api/credits/mcp"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.paywithlocus.com/.well-known/oauth-protected-resource/api/credits/mcp")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.paywithlocus.com/.well-known/oauth-protected-resource/api/credits/mcp")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"resource": "<string>",
"authorization_servers": [
"<string>"
],
"bearer_methods_supported": [
"header"
],
"scopes_supported": [
"mcp:read"
],
"resource_name": "Locus Pro MCP",
"resource_documentation": "<string>"
}MCP
Discover the MCP protected resource
Canonical RFC 9728 path derived from the MCP resource identifier.
GET
/
.well-known
/
oauth-protected-resource
/
api
/
credits
/
mcp
Discover the MCP protected resource
curl --request GET \
--url https://api.paywithlocus.com/.well-known/oauth-protected-resource/api/credits/mcpimport requests
url = "https://api.paywithlocus.com/.well-known/oauth-protected-resource/api/credits/mcp"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.paywithlocus.com/.well-known/oauth-protected-resource/api/credits/mcp', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.paywithlocus.com/.well-known/oauth-protected-resource/api/credits/mcp",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.paywithlocus.com/.well-known/oauth-protected-resource/api/credits/mcp"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.paywithlocus.com/.well-known/oauth-protected-resource/api/credits/mcp")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.paywithlocus.com/.well-known/oauth-protected-resource/api/credits/mcp")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"resource": "<string>",
"authorization_servers": [
"<string>"
],
"bearer_methods_supported": [
"header"
],
"scopes_supported": [
"mcp:read"
],
"resource_name": "Locus Pro MCP",
"resource_documentation": "<string>"
}Response
200 - application/json
Protected-resource metadata
Minimum array length:
1Example:
["header"]
Available options:
mcp:read, mcp:execute, offline_access Allowed value:
"Locus Pro MCP"