curl --request POST \
--url 'https://openapi.msu.io/v1rc1/resource/mcp' \
--header 'Content-Type: application/json' \
--header 'x-nxopen-api-key: YOUR_API_KEY' \
--data '{
"rawBody": "{\"jsonrpc\":\"2.0\",\"method\":\"tools/list\",\"id\":1}",
"sessionId": "YOUR_SESSION_ID"
}'
const response = await fetch('https://openapi.msu.io/v1rc1/resource/mcp', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-nxopen-api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
rawBody: '{"jsonrpc":"2.0","method":"tools/list","id":1}',
sessionId: 'YOUR_SESSION_ID'
})
});
const data = await response.json();
import requests
url = "https://openapi.msu.io/v1rc1/resource/mcp"
headers = {
"x-nxopen-api-key": "YOUR_API_KEY"
}
body = {
"rawBody": '{"jsonrpc":"2.0","method":"tools/list","id":1}',
"sessionId": "YOUR_SESSION_ID"
}
response = requests.post(url, headers=headers, json=body)
data = response.json()
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32601,
"message": "Method not found",
"data": {}
}
}
Game Resource
MCP Proxy Request
Proxy request to MCP (Model Context Protocol) resources
POST
/
v1rc1
/
resource
/
mcp
curl --request POST \
--url 'https://openapi.msu.io/v1rc1/resource/mcp' \
--header 'Content-Type: application/json' \
--header 'x-nxopen-api-key: YOUR_API_KEY' \
--data '{
"rawBody": "{\"jsonrpc\":\"2.0\",\"method\":\"tools/list\",\"id\":1}",
"sessionId": "YOUR_SESSION_ID"
}'
const response = await fetch('https://openapi.msu.io/v1rc1/resource/mcp', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-nxopen-api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
rawBody: '{"jsonrpc":"2.0","method":"tools/list","id":1}',
sessionId: 'YOUR_SESSION_ID'
})
});
const data = await response.json();
import requests
url = "https://openapi.msu.io/v1rc1/resource/mcp"
headers = {
"x-nxopen-api-key": "YOUR_API_KEY"
}
body = {
"rawBody": '{"jsonrpc":"2.0","method":"tools/list","id":1}',
"sessionId": "YOUR_SESSION_ID"
}
response = requests.post(url, headers=headers, json=body)
data = response.json()
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32601,
"message": "Method not found",
"data": {}
}
}
Body parameters
string
required
Raw JSON-RPC 2.0 request body to forward to the MCP server
string
MCP session ID
Response
Standard MCP JSON-RPC 2.0 response from the upstream MCP server. Content-Type may beapplication/json or text/event-stream (SSE).
string
JSON-RPC version. Always
"2.0"integer
Request ID echoed from the original request
object
Result payload. Shape depends on the MCP method called.
object
curl --request POST \
--url 'https://openapi.msu.io/v1rc1/resource/mcp' \
--header 'Content-Type: application/json' \
--header 'x-nxopen-api-key: YOUR_API_KEY' \
--data '{
"rawBody": "{\"jsonrpc\":\"2.0\",\"method\":\"tools/list\",\"id\":1}",
"sessionId": "YOUR_SESSION_ID"
}'
const response = await fetch('https://openapi.msu.io/v1rc1/resource/mcp', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-nxopen-api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
rawBody: '{"jsonrpc":"2.0","method":"tools/list","id":1}',
sessionId: 'YOUR_SESSION_ID'
})
});
const data = await response.json();
import requests
url = "https://openapi.msu.io/v1rc1/resource/mcp"
headers = {
"x-nxopen-api-key": "YOUR_API_KEY"
}
body = {
"rawBody": '{"jsonrpc":"2.0","method":"tools/list","id":1}',
"sessionId": "YOUR_SESSION_ID"
}
response = requests.post(url, headers=headers, json=body)
data = response.json()
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32601,
"message": "Method not found",
"data": {}
}
}

