curl --request GET \
--url https://api-dev.narrative.io/mcp-connections/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-dev.narrative.io/mcp-connections/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-dev.narrative.io/mcp-connections/{id}', 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-dev.narrative.io/mcp-connections/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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-dev.narrative.io/mcp-connections/{id}"
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))
}HttpResponse<String> response = Unirest.get("https://api-dev.narrative.io/mcp-connections/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-dev.narrative.io/mcp-connections/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"connection_id": "b3f1c2a4-5d6e-47f8-9a0b-1c2d3e4f5a6b",
"server_url": "https://huggingface.co/mcp",
"alias": "hf",
"authorization_server": "https://huggingface.co",
"status": "connected",
"created_at": "2026-07-12T17:00:00Z",
"updated_at": "2026-07-12T17:02:11Z",
"expires_at": "2026-07-12T18:30:00Z"
}{
"type": "https://docs.narrative.io/reference/architecture/agent-conversations/errors/invalid-tool-alias",
"title": "Invalid Tool Alias",
"status": 400,
"detail": "invalid tool aliases (must match ^[a-zA-Z][a-zA-Z0-9]{0,7}$): with_underscore",
"instance": null,
"log_id": "1f6e5d4c-3b2a-1098-7654-3210fedcba98",
"debug": null
}Get one of the calling user's MCP connections
Returns a single connection’s status view. Credential-free — no client secret or tokens.
Scope: per-user, not per-company
Only resolves connections owned by the bearer token’s company_id and user_id. A connection
that exists but belongs to someone else returns 404, identical to a nonexistent id (so ids can’t be
probed across users).
Permission
agent_conversations resource with read verb.
curl --request GET \
--url https://api-dev.narrative.io/mcp-connections/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-dev.narrative.io/mcp-connections/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-dev.narrative.io/mcp-connections/{id}', 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-dev.narrative.io/mcp-connections/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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-dev.narrative.io/mcp-connections/{id}"
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))
}HttpResponse<String> response = Unirest.get("https://api-dev.narrative.io/mcp-connections/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-dev.narrative.io/mcp-connections/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"connection_id": "b3f1c2a4-5d6e-47f8-9a0b-1c2d3e4f5a6b",
"server_url": "https://huggingface.co/mcp",
"alias": "hf",
"authorization_server": "https://huggingface.co",
"status": "connected",
"created_at": "2026-07-12T17:00:00Z",
"updated_at": "2026-07-12T17:02:11Z",
"expires_at": "2026-07-12T18:30:00Z"
}{
"type": "https://docs.narrative.io/reference/architecture/agent-conversations/errors/invalid-tool-alias",
"title": "Invalid Tool Alias",
"status": 400,
"detail": "invalid tool aliases (must match ^[a-zA-Z][a-zA-Z0-9]{0,7}$): with_underscore",
"instance": null,
"log_id": "1f6e5d4c-3b2a-1098-7654-3210fedcba98",
"debug": null
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The connection id returned by POST /mcp-connections.
Response
The connection's status view.
Status view of one connection. Deliberately credential-free — the registered client secret and the encrypted access/refresh tokens are never returned.
"b3f1c2a4-5d6e-47f8-9a0b-1c2d3e4f5a6b"
The external MCP server this connection targets.
"https://huggingface.co/mcp"
"hf"
The OAuth issuer discovered for the server.
"https://huggingface.co"
Lifecycle. pending after creation, and while waiting on the user's consent and the
completion call; connected once the token exchange succeeds and tools/list validates;
error for a failed connection.
pending, connected, error "connected"
"2026-07-12T17:00:00Z"
"2026-07-12T17:02:11Z"
When the current access token expires, if the server issued an expiry. The platform refreshes it automatically before use when a refresh token is available.
"2026-07-12T18:30:00Z"
Was this page helpful?

