import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const mcpServers = await client.ai.mcpServers.list();
console.log(mcpServers);[
{
"id": "<string>",
"name": "<string>",
"type": "<string>",
"url": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"api_key_ref": "<string>",
"allowed_tools": [
"<string>"
]
}
]Retrieve a list of MCP servers.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const mcpServers = await client.ai.mcpServers.list();
console.log(mcpServers);[
{
"id": "<string>",
"name": "<string>",
"type": "<string>",
"url": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"api_key_ref": "<string>",
"allowed_tools": [
"<string>"
]
}
]Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
1 <= x <= 100x >= 1Was this page helpful?