Get MCP OAuth 2.1 Resource Server Configuration
curl --request GET \
--url https://use.hoop.dev/api/serverconfig/mcp-authimport requests
url = "https://use.hoop.dev/api/serverconfig/mcp-auth"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://use.hoop.dev/api/serverconfig/mcp-auth', 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://use.hoop.dev/api/serverconfig/mcp-auth",
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://use.hoop.dev/api/serverconfig/mcp-auth"
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://use.hoop.dev/api/serverconfig/mcp-auth")
.asString();require 'uri'
require 'net/http'
url = URI("https://use.hoop.dev/api/serverconfig/mcp-auth")
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{
"client_id": "hoop-mcp",
"client_secret": "",
"enabled": true,
"groups_claim": "groups",
"resource_uri": "https://use.hoop.dev/api/mcp"
}{
"message": "the error description"
}{
"message": "the error description"
}Server Management
Get MCP OAuth 2.1 Resource Server Configuration
Returns the per-org MCP OAuth Resource Server settings. When disabled (default), /mcp accepts Hoop-issued bearer tokens only.
GET
/
serverconfig
/
mcp-auth
Get MCP OAuth 2.1 Resource Server Configuration
curl --request GET \
--url https://use.hoop.dev/api/serverconfig/mcp-authimport requests
url = "https://use.hoop.dev/api/serverconfig/mcp-auth"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://use.hoop.dev/api/serverconfig/mcp-auth', 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://use.hoop.dev/api/serverconfig/mcp-auth",
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://use.hoop.dev/api/serverconfig/mcp-auth"
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://use.hoop.dev/api/serverconfig/mcp-auth")
.asString();require 'uri'
require 'net/http'
url = URI("https://use.hoop.dev/api/serverconfig/mcp-auth")
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{
"client_id": "hoop-mcp",
"client_secret": "",
"enabled": true,
"groups_claim": "groups",
"resource_uri": "https://use.hoop.dev/api/mcp"
}{
"message": "the error description"
}{
"message": "the error description"
}Response
OK
Statically pre-registered OAuth client ID at the IdP, for IdPs without
RFC 7591 Dynamic Client Registration support (e.g. JumpCloud, Okta,
Entra ID). When set, the gateway advertises itself as the authorization
server and serves a Dynamic Client Registration shim that returns this
client to MCP clients; tokens whose aud claim matches this client ID
are accepted in addition to resource_uri.
Example:
"hoop-mcp"
Was this page helpful?