curl --request POST \
--url https://app.trustivan.com/api/v1/mcp \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "<unknown>",
"method": "<string>",
"params": {}
}
'import requests
url = "https://app.trustivan.com/api/v1/mcp"
payload = {
"jsonrpc": "2.0",
"id": "<unknown>",
"method": "<string>",
"params": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({jsonrpc: '2.0', id: '<unknown>', method: '<string>', params: {}})
};
fetch('https://app.trustivan.com/api/v1/mcp', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/mcp"
payload := strings.NewReader("{\n \"jsonrpc\": \"2.0\",\n \"id\": \"<unknown>\",\n \"method\": \"<string>\",\n \"params\": {}\n}")
req, _ := http.NewRequest("POST", 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))
}{
"jsonrpc": "<string>",
"id": "<unknown>",
"result": {},
"error": {
"code": 123,
"message": "<string>"
}
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Send one MCP message (streamable HTTP transport)
The tools trustivan mcp serves over stdio, for an assistant that
connects to a URL instead of starting a process. One JSON-RPC 2.0
message per request: initialize, ping, tools/list, tools/call,
or a notification. Protocol revisions 2025-06-18 and 2025-03-26 (the
streamable HTTP ones); a client may send MCP-Protocol-Version.
An API key only, as Authorization: Bearer twk_...; a session or
workload credential is refused with 401. Each tool calls the API with
that key, so the key’s scopes decide what a tool may do (a refusal is
a tool result naming the missing scope, not an HTTP error), changes are
recorded as the key, and the per-key rate limit counts this request and
each API call a tool makes. Write tools change nothing until called
with confirm: true.
Stateless: no Mcp-Session-Id is issued, nothing is kept between
requests, and the answer is always application/json, never a stream.
A request carrying an Origin header other than the dashboard’s is
refused with 403 (DNS rebinding). Bodies are bounded at 1 MiB; a batch
(a JSON array) is refused.
curl --request POST \
--url https://app.trustivan.com/api/v1/mcp \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "<unknown>",
"method": "<string>",
"params": {}
}
'import requests
url = "https://app.trustivan.com/api/v1/mcp"
payload = {
"jsonrpc": "2.0",
"id": "<unknown>",
"method": "<string>",
"params": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({jsonrpc: '2.0', id: '<unknown>', method: '<string>', params: {}})
};
fetch('https://app.trustivan.com/api/v1/mcp', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/mcp"
payload := strings.NewReader("{\n \"jsonrpc\": \"2.0\",\n \"id\": \"<unknown>\",\n \"method\": \"<string>\",\n \"params\": {}\n}")
req, _ := http.NewRequest("POST", 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))
}{
"jsonrpc": "<string>",
"id": "<unknown>",
"result": {},
"error": {
"code": 123,
"message": "<string>"
}
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}