NetworkConnectMcpResult network.connect-mcp-result@1
Generated at from
openvibe-contracts v0.454.0 and
openvibe-sdk v0.193.0.
- Version
- 1.0.0
- Owner
- network
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Decision
- ADR-003
- Schema
https://openvibe.network/contracts/network/connect-mcp-result.v1.json
network.connect-mcp-result@1: Connect's JSON-RPC 2.0 answer to a network.connect-mcp-request@1: a result (a tool's content, isError for a refusal such as a missing grant or a person who said no) or an error (an unknown method, a malformed request). It never carries a token or an app credential.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
jsonrpc | const | yes |
| |
id | string | integer | null | |||
result | object | |||
error | object | |||
error.code | integer | yes | ||
error.message | string | yes | ||
error.data | any |
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: no-grant
{
"jsonrpc": "2.0",
"id": 2,
"result": {
"content": [
{
"type": "text",
"text": "this caller has no grant in OpenVibe Finance"
}
],
"isError": true
}
}Valid: tool-result
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "{\"ok\":true}"
}
],
"isError": false
}
}Valid: unknown-method
{
"jsonrpc": "2.0",
"id": 3,
"error": {
"code": -32601,
"message": "Method not found: resources/list"
}
}Rejected: both
{
"jsonrpc": "2.0",
"id": 4,
"result": {},
"error": {
"code": -32603,
"message": "x"
}
}Rejected: neither
{
"jsonrpc": "2.0",
"id": 5
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('network.connect-mcp-result@1', value); // { valid, errors: [{ path, message }] }