curl --request GET \
--url https://app.trustivan.com/api/v1/mcp \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/mcp"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/mcp', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/mcp"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Not offered (no server-to-client stream)
Always 405 with Allow: POST. A tools-only server sends no requests of its own, so there is no stream to open.
curl --request GET \
--url https://app.trustivan.com/api/v1/mcp \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/mcp"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/mcp', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/mcp"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Authorizations
Response
Method not allowed.
The body of every 4xx and 5xx response under /api/v1, except the SCIM
endpoints, which answer in the RFC 7644 error format. Some endpoints add
fields of their own (supported_formats, retry_after, max_bytes).
The stable, machine-readable reason for a refusal. Branch on this, never
on the error text, which is free to change. The first fourteen are the
default for their status (validation_failed 400, unauthorized 401,
payment_required 402, forbidden 403, not_found 404,
method_not_allowed 405, conflict 409,
payload_too_large 413, unprocessable 422, rate_limited 429,
internal_error 500, not_implemented 501, upstream_failed 502,
unavailable 503); the rest name one specific rule. New codes may be
added; treat an unknown code as its status.
validation_failed, unauthorized, payment_required, forbidden, not_found, method_not_allowed, conflict, payload_too_large, unprocessable, rate_limited, internal_error, not_implemented, upstream_failed, unavailable, email_not_verified, sso_required, mfa_required, mfa_enrollment_required, weak_password, invalid_reset_link, current_password_incorrect, no_password, mail_unavailable, organization_changed, reason_required, no_support_consent, step_up_required, audit_unavailable, dast_target_not_verified, dast_scan_in_progress, dast_target_exists, dast_engine_unavailable, scan_already_finished, product_not_entitled, demo_read_only, ip_not_allowed