Upload a logo for an MCP server
curl --request PUT \
--url https://api.smith.langchain.com/v1/managed-tools/servers/{id}/icon \
--header 'Content-Type: multipart/form-data' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Tenant-Id: <api-key>' \
--form file=@example-fileimport requests
url = "https://api.smith.langchain.com/v1/managed-tools/servers/{id}/icon"
files = { "file": ("example-file", open("example-file", "rb")) }
headers = {
"X-Api-Key": "<api-key>",
"X-Tenant-Id": "<api-key>"
}
response = requests.put(url, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('file', '<string>');
const options = {method: 'PUT', headers: {'X-Api-Key': '<api-key>', 'X-Tenant-Id': '<api-key>'}};
options.body = form;
fetch('https://api.smith.langchain.com/v1/managed-tools/servers/{id}/icon', 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.smith.langchain.com/v1/managed-tools/servers/{id}/icon",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Content-Type: multipart/form-data",
"X-Api-Key: <api-key>",
"X-Tenant-Id: <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.smith.langchain.com/v1/managed-tools/servers/{id}/icon"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("X-Tenant-Id", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.smith.langchain.com/v1/managed-tools/servers/{id}/icon")
.header("X-Api-Key", "<api-key>")
.header("X-Tenant-Id", "<api-key>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smith.langchain.com/v1/managed-tools/servers/{id}/icon")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-Api-Key"] = '<api-key>'
request["X-Tenant-Id"] = '<api-key>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"status": 123,
"title": "<string>",
"type": "<string>",
"code": "<string>",
"detail": "<string>",
"instance": "<string>",
"kits": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"permission": "<string>",
"remedy": "<string>"
}{
"status": 123,
"title": "<string>",
"type": "<string>",
"code": "<string>",
"detail": "<string>",
"instance": "<string>",
"kits": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"permission": "<string>",
"remedy": "<string>"
}{
"status": 123,
"title": "<string>",
"type": "<string>",
"code": "<string>",
"detail": "<string>",
"instance": "<string>",
"kits": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"permission": "<string>",
"remedy": "<string>"
}{
"status": 123,
"title": "<string>",
"type": "<string>",
"code": "<string>",
"detail": "<string>",
"instance": "<string>",
"kits": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"permission": "<string>",
"remedy": "<string>"
}{
"status": 123,
"title": "<string>",
"type": "<string>",
"code": "<string>",
"detail": "<string>",
"instance": "<string>",
"kits": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"permission": "<string>",
"remedy": "<string>"
}{
"status": 123,
"title": "<string>",
"type": "<string>",
"code": "<string>",
"detail": "<string>",
"instance": "<string>",
"kits": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"permission": "<string>",
"remedy": "<string>"
}Upload a logo for an MCP server
Sets the logo shown for a registered server in place of the icon the server advertises. Upload a PNG or JPEG of at most 1 MiB and 2048 by 2048 pixels as the multipart field file; it is stored as a PNG of at most 128 by 128 pixels. Requires the same access as deleting the server: mcp-servers:delete for a workspace server, or owning a personal server.
PUT
/
v1
/
managed-tools
/
servers
/
{id}
/
icon
Upload a logo for an MCP server
curl --request PUT \
--url https://api.smith.langchain.com/v1/managed-tools/servers/{id}/icon \
--header 'Content-Type: multipart/form-data' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Tenant-Id: <api-key>' \
--form file=@example-fileimport requests
url = "https://api.smith.langchain.com/v1/managed-tools/servers/{id}/icon"
files = { "file": ("example-file", open("example-file", "rb")) }
headers = {
"X-Api-Key": "<api-key>",
"X-Tenant-Id": "<api-key>"
}
response = requests.put(url, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('file', '<string>');
const options = {method: 'PUT', headers: {'X-Api-Key': '<api-key>', 'X-Tenant-Id': '<api-key>'}};
options.body = form;
fetch('https://api.smith.langchain.com/v1/managed-tools/servers/{id}/icon', 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.smith.langchain.com/v1/managed-tools/servers/{id}/icon",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Content-Type: multipart/form-data",
"X-Api-Key: <api-key>",
"X-Tenant-Id: <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.smith.langchain.com/v1/managed-tools/servers/{id}/icon"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("X-Tenant-Id", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.smith.langchain.com/v1/managed-tools/servers/{id}/icon")
.header("X-Api-Key", "<api-key>")
.header("X-Tenant-Id", "<api-key>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smith.langchain.com/v1/managed-tools/servers/{id}/icon")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-Api-Key"] = '<api-key>'
request["X-Tenant-Id"] = '<api-key>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"status": 123,
"title": "<string>",
"type": "<string>",
"code": "<string>",
"detail": "<string>",
"instance": "<string>",
"kits": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"permission": "<string>",
"remedy": "<string>"
}{
"status": 123,
"title": "<string>",
"type": "<string>",
"code": "<string>",
"detail": "<string>",
"instance": "<string>",
"kits": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"permission": "<string>",
"remedy": "<string>"
}{
"status": 123,
"title": "<string>",
"type": "<string>",
"code": "<string>",
"detail": "<string>",
"instance": "<string>",
"kits": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"permission": "<string>",
"remedy": "<string>"
}{
"status": 123,
"title": "<string>",
"type": "<string>",
"code": "<string>",
"detail": "<string>",
"instance": "<string>",
"kits": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"permission": "<string>",
"remedy": "<string>"
}{
"status": 123,
"title": "<string>",
"type": "<string>",
"code": "<string>",
"detail": "<string>",
"instance": "<string>",
"kits": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"permission": "<string>",
"remedy": "<string>"
}{
"status": 123,
"title": "<string>",
"type": "<string>",
"code": "<string>",
"detail": "<string>",
"instance": "<string>",
"kits": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"permission": "<string>",
"remedy": "<string>"
}Authorizations
API Key & Tenant IDBearer Auth & Tenant ID
Response
logo stored
Was this page helpful?

