curl --request POST \
--url https://api.eddy.engineer/v1/mcpin.servers \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"about": "<string>",
"clear_secret": true,
"enabled": true,
"expected_version": 123,
"header": "<string>",
"name": "<string>",
"secret": "<string>",
"slug": "<string>",
"tools": [
"<string>"
],
"url": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/mcpin.servers"
payload = {
"about": "<string>",
"clear_secret": True,
"enabled": True,
"expected_version": 123,
"header": "<string>",
"name": "<string>",
"secret": "<string>",
"slug": "<string>",
"tools": ["<string>"],
"url": "<string>"
}
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({
about: '<string>',
clear_secret: true,
enabled: true,
expected_version: 123,
header: '<string>',
name: '<string>',
secret: '<string>',
slug: '<string>',
tools: ['<string>'],
url: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/mcpin.servers', 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.eddy.engineer/v1/mcpin.servers",
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([
'about' => '<string>',
'clear_secret' => true,
'enabled' => true,
'expected_version' => 123,
'header' => '<string>',
'name' => '<string>',
'secret' => '<string>',
'slug' => '<string>',
'tools' => [
'<string>'
],
'url' => '<string>'
]),
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.eddy.engineer/v1/mcpin.servers"
payload := strings.NewReader("{\n \"about\": \"<string>\",\n \"clear_secret\": true,\n \"enabled\": true,\n \"expected_version\": 123,\n \"header\": \"<string>\",\n \"name\": \"<string>\",\n \"secret\": \"<string>\",\n \"slug\": \"<string>\",\n \"tools\": [\n \"<string>\"\n ],\n \"url\": \"<string>\"\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.eddy.engineer/v1/mcpin.servers")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"about\": \"<string>\",\n \"clear_secret\": true,\n \"enabled\": true,\n \"expected_version\": 123,\n \"header\": \"<string>\",\n \"name\": \"<string>\",\n \"secret\": \"<string>\",\n \"slug\": \"<string>\",\n \"tools\": [\n \"<string>\"\n ],\n \"url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/mcpin.servers")
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 \"about\": \"<string>\",\n \"clear_secret\": true,\n \"enabled\": true,\n \"expected_version\": 123,\n \"header\": \"<string>\",\n \"name\": \"<string>\",\n \"secret\": \"<string>\",\n \"slug\": \"<string>\",\n \"tools\": [\n \"<string>\"\n ],\n \"url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"server": {}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Add an MCP server for Eddy's AI (an org admin's, MI2)
An org admin adds one of the org’s MCP servers (streamable HTTP). It starts switched off and untested: test it (POST /v1/mcpin.servers/{slug}/test), tick its tools and switch it on. The address must be https and public: loopback, private, link-local (the cloud metadata address included), shared and reserved addresses are refused (400 INVALID_MCP_URL), and are checked again at every test and call. The secret is sealed with the deployment’s seal key (503 SEAL_UNCONFIGURED without one) and never answered. Not an app, an agent run or a scoped holder without mcpin:write; never the bootstrap org of a deployment that requires sign-in. At most 20 per org.
curl --request POST \
--url https://api.eddy.engineer/v1/mcpin.servers \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"about": "<string>",
"clear_secret": true,
"enabled": true,
"expected_version": 123,
"header": "<string>",
"name": "<string>",
"secret": "<string>",
"slug": "<string>",
"tools": [
"<string>"
],
"url": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/mcpin.servers"
payload = {
"about": "<string>",
"clear_secret": True,
"enabled": True,
"expected_version": 123,
"header": "<string>",
"name": "<string>",
"secret": "<string>",
"slug": "<string>",
"tools": ["<string>"],
"url": "<string>"
}
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({
about: '<string>',
clear_secret: true,
enabled: true,
expected_version: 123,
header: '<string>',
name: '<string>',
secret: '<string>',
slug: '<string>',
tools: ['<string>'],
url: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/mcpin.servers', 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.eddy.engineer/v1/mcpin.servers",
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([
'about' => '<string>',
'clear_secret' => true,
'enabled' => true,
'expected_version' => 123,
'header' => '<string>',
'name' => '<string>',
'secret' => '<string>',
'slug' => '<string>',
'tools' => [
'<string>'
],
'url' => '<string>'
]),
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.eddy.engineer/v1/mcpin.servers"
payload := strings.NewReader("{\n \"about\": \"<string>\",\n \"clear_secret\": true,\n \"enabled\": true,\n \"expected_version\": 123,\n \"header\": \"<string>\",\n \"name\": \"<string>\",\n \"secret\": \"<string>\",\n \"slug\": \"<string>\",\n \"tools\": [\n \"<string>\"\n ],\n \"url\": \"<string>\"\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.eddy.engineer/v1/mcpin.servers")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"about\": \"<string>\",\n \"clear_secret\": true,\n \"enabled\": true,\n \"expected_version\": 123,\n \"header\": \"<string>\",\n \"name\": \"<string>\",\n \"secret\": \"<string>\",\n \"slug\": \"<string>\",\n \"tools\": [\n \"<string>\"\n ],\n \"url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/mcpin.servers")
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 \"about\": \"<string>\",\n \"clear_secret\": true,\n \"enabled\": true,\n \"expected_version\": 123,\n \"header\": \"<string>\",\n \"name\": \"<string>\",\n \"secret\": \"<string>\",\n \"slug\": \"<string>\",\n \"tools\": [\n \"<string>\"\n ],\n \"url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"server": {}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
Response
The server as added
A server as the org sees it: slug, name, about, enabled, who (members | admins), tools (ticked names or ["*"]), callable (engine names of the tools Eddy may call), known_tools (name, engine_name, op, title, description, read_only, ticked), server_info, checked_at_unix_ms, check_error, version. An org admin also sees url, header, secret_set, fingerprint, protocol, truncated, created_by, updated_by, updated_at_unix_ms. Never the secret.