agent.mcp.update(name, entry)
curl --request PUT \
--url https://api.paddock.build/v1/agents/{id}/mcp/{name} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"url": "<string>",
"headers": {}
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', url: '<string>', headers: {}})
};
fetch('https://api.paddock.build/v1/agents/{id}/mcp/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.paddock.build/v1/agents/{id}/mcp/{name}"
payload = {
"name": "<string>",
"url": "<string>",
"headers": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.paddock.build/v1/agents/{id}/mcp/{name}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"headers\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}{
"name": "<string>",
"source": "template",
"generation": 2,
"spec": {
"name": "<string>",
"url": "<string>",
"headers": {}
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {}
}
}Agent capabilities
agent.mcp.update(name, entry)
PUT
/
agents
/
{id}
/
mcp
/
{name}
agent.mcp.update(name, entry)
curl --request PUT \
--url https://api.paddock.build/v1/agents/{id}/mcp/{name} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"url": "<string>",
"headers": {}
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', url: '<string>', headers: {}})
};
fetch('https://api.paddock.build/v1/agents/{id}/mcp/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.paddock.build/v1/agents/{id}/mcp/{name}"
payload = {
"name": "<string>",
"url": "<string>",
"headers": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.paddock.build/v1/agents/{id}/mcp/{name}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"headers\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}{
"name": "<string>",
"source": "template",
"generation": 2,
"spec": {
"name": "<string>",
"url": "<string>",
"headers": {}
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {}
}
}Path Parameters
Body
application/json
Response
The updated entry