-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjsonrpc.proto
More file actions
32 lines (26 loc) · 662 Bytes
/
Copy pathjsonrpc.proto
File metadata and controls
32 lines (26 loc) · 662 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
syntax = "proto3";
option go_package = "github.com/rustycl0ck/mcp-grpc-transport/pkg/protogen/jsonrpc";
import "google/protobuf/struct.proto";
service JSONRPCService {
rpc Transport (stream GenericJSONRPCMessage) returns (stream GenericJSONRPCMessage);
}
// Represents a request ID (string or number)
message ID {
oneof kind {
string str = 1;
int64 num = 2;
}
}
message GenericJSONRPCMessage {
string jsonrpc = 1;
ID typed_id = 2;
string method = 3;
google.protobuf.Struct params = 4;
google.protobuf.Struct result = 5;
JSONRPCError error = 6;
}
message JSONRPCError {
int32 code = 1;
string message = 2;
string data = 3;
}