Agents
Get MCP configs
Get all MCP server configurations for the workspace
GET
/
api
/
agents
/
mcp-configs
Get MCP configs
curl --request GET \
--url https://{baseUrl}/api/v1/api/agents/mcp-configsimport requests
url = "https://{baseUrl}/api/v1/api/agents/mcp-configs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{baseUrl}/api/v1/api/agents/mcp-configs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/agents/mcp-configs"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"servers": [
{
"name": "my-mcp-server",
"url": "http://localhost:3000/sse",
"transport": "sse",
"headers": {
"x-oasm-api-key": "sk-..."
},
"disabled": false,
"allowed_tools": [
"tool1",
"tool2"
],
"timeout": 60,
"sse_read_timeout": 300
}
]
}⌘I
Get MCP configs
curl --request GET \
--url https://{baseUrl}/api/v1/api/agents/mcp-configsimport requests
url = "https://{baseUrl}/api/v1/api/agents/mcp-configs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{baseUrl}/api/v1/api/agents/mcp-configs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/agents/mcp-configs"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"servers": [
{
"name": "my-mcp-server",
"url": "http://localhost:3000/sse",
"transport": "sse",
"headers": {
"x-oasm-api-key": "sk-..."
},
"disabled": false,
"allowed_tools": [
"tool1",
"tool2"
],
"timeout": 60,
"sse_read_timeout": 300
}
]
}