Test MCP Server
curl --request POST \
--url https://api.revring.ai/v1/agents/mcp-servers/test \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"url": "<string>",
"headers": [
{
"key": "<string>",
"value": "<string>"
}
],
"allowedTools": [
"<string>"
],
"timeoutSeconds": 60
}
'import requests
url = "https://api.revring.ai/v1/agents/mcp-servers/test"
payload = {
"name": "<string>",
"url": "<string>",
"headers": [
{
"key": "<string>",
"value": "<string>"
}
],
"allowedTools": ["<string>"],
"timeoutSeconds": 60
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
url: '<string>',
headers: [{key: '<string>', value: '<string>'}],
allowedTools: ['<string>'],
timeoutSeconds: 60
})
};
fetch('https://api.revring.ai/v1/agents/mcp-servers/test', 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.revring.ai/v1/agents/mcp-servers/test",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'url' => '<string>',
'headers' => [
[
'key' => '<string>',
'value' => '<string>'
]
],
'allowedTools' => [
'<string>'
],
'timeoutSeconds' => 60
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.revring.ai/v1/agents/mcp-servers/test"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"headers\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"allowedTools\": [\n \"<string>\"\n ],\n \"timeoutSeconds\": 60\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.revring.ai/v1/agents/mcp-servers/test")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"headers\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"allowedTools\": [\n \"<string>\"\n ],\n \"timeoutSeconds\": 60\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.revring.ai/v1/agents/mcp-servers/test")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"headers\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"allowedTools\": [\n \"<string>\"\n ],\n \"timeoutSeconds\": 60\n}"
response = http.request(request)
puts response.read_body{
"data": {
"tools": [
{
"name": "<string>",
"description": "<string>"
}
]
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "unauthorized"
}{
"error": "<string>",
"message": "<string>"
}Agent Custom Tools
Test MCP Server
Connect to an MCP server with the given settings and list its tools, before saving it on an agent. Nothing is stored.
POST
/
agents
/
mcp-servers
/
test
Test MCP Server
curl --request POST \
--url https://api.revring.ai/v1/agents/mcp-servers/test \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"url": "<string>",
"headers": [
{
"key": "<string>",
"value": "<string>"
}
],
"allowedTools": [
"<string>"
],
"timeoutSeconds": 60
}
'import requests
url = "https://api.revring.ai/v1/agents/mcp-servers/test"
payload = {
"name": "<string>",
"url": "<string>",
"headers": [
{
"key": "<string>",
"value": "<string>"
}
],
"allowedTools": ["<string>"],
"timeoutSeconds": 60
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
url: '<string>',
headers: [{key: '<string>', value: '<string>'}],
allowedTools: ['<string>'],
timeoutSeconds: 60
})
};
fetch('https://api.revring.ai/v1/agents/mcp-servers/test', 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.revring.ai/v1/agents/mcp-servers/test",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'url' => '<string>',
'headers' => [
[
'key' => '<string>',
'value' => '<string>'
]
],
'allowedTools' => [
'<string>'
],
'timeoutSeconds' => 60
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.revring.ai/v1/agents/mcp-servers/test"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"headers\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"allowedTools\": [\n \"<string>\"\n ],\n \"timeoutSeconds\": 60\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.revring.ai/v1/agents/mcp-servers/test")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"headers\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"allowedTools\": [\n \"<string>\"\n ],\n \"timeoutSeconds\": 60\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.revring.ai/v1/agents/mcp-servers/test")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"headers\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"allowedTools\": [\n \"<string>\"\n ],\n \"timeoutSeconds\": 60\n}"
response = http.request(request)
puts response.read_body{
"data": {
"tools": [
{
"name": "<string>",
"description": "<string>"
}
]
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "unauthorized"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
API key for authentication. Generate API keys from the RevRing dashboard.
Body
application/json
An MCP server whose tools the agent can use
Label, unique on the agent
Maximum string length:
64Server address (https only)
Sent with every request to the server
Maximum array length:
20Show child attributes
Show child attributes
Only these tools, by name; omit to use every tool the server lists
Omit to use SSE only for URLs ending in /sse
Available options:
streamable_http, sse How long one tool call may take (default 20)
Required range:
1 <= x <= 120Response
The server's tools
Show child attributes
Show child attributes