| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
This document provides detailed information about the API endpoints exposed by the MCP server, including request and response formats.
Returns the server manifest, which describes the available tools and resources.
{
"schema_version": "v1",
"name": "unity-mcp",
"description": "Unity-AI Bridge with MCP compatibility",
"tools": [
{
"id": "unity_execute_code",
"description": "Execute C# code in Unity at runtime",
"parameters": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "C# code to execute"
},
"timeout": {
"type": "number",
"description": "Maximum time to wait in milliseconds before returning (default: 1000)",
"default": 1000
}
},
"required": ["code"]
}
},
{
"id": "unity_query",
"description": "Execute a query using dot notation to access objects, properties, and methods",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Query string using dot notation (e.g., Scene['Player'].transform.position)"
},
"timeout": {
"type": "number",
"description": "Maximum time to wait in milliseconds before returning (default: 1000)",
"default": 1000
}
},
"required": ["query"]
}
},
// Other tools...
]
}Executes a tool with the provided parameters.
{
"tool_id": "unity_execute_code",
"parameters": {
"code": "Debug.Log(\"Hello, World!\");"
}
}{
"status": "success",
"log_id": "550e8400-e29b-41d4-a716-446655440000",
"result": {
"message": "Code executed successfully"
},
"is_complete": true,
"message": "Tool unity_execute_code executed successfully."
}{
"status": "error",
"error": "Tool not found: invalid_tool"
}{
"status": "timeout",
"log_id": "550e8400-e29b-41d4-a716-446655440000",
"partial_result": {
"message": "Operation is still running"
},
"is_complete": false,
"message": "Operation timed out, but is still running in the background. Use the log_id to retrieve the result later."
}Retrieves the result of a previously executed operation.
{
"status": "success",
"log_id": "550e8400-e29b-41d4-a716-446655440000",
"result": {
"message": "Code executed successfully"
},
"is_complete": true,
"message": "Tool unity_execute_code executed successfully."
}{
"status": "error",
"error": "Result not found for log ID: invalid-log-id"
}Establishes a Server-Sent Events (SSE) connection for real-time updates.
event: result
data: {"log_id":"550e8400-e29b-41d4-a716-446655440000","status":"success","result":{"message":"Code executed successfully"},"is_complete":true}
Returns documentation on the available commands and query syntax.
{
"status": "success",
"log_id": "550e8400-e29b-41d4-a716-446655440000",
"result": {
"documentation": "Unity-AI Bridge Help Documentation",
"tools": [
{
"id": "unity_execute_code",
"description": "Execute C# code in Unity at runtime"
},
{
"id": "unity_query",
"description": "Execute a query using dot notation to access objects, properties, and methods"
},
// Other tools...
]
},
"is_complete": true,
"message": "Help documentation retrieved successfully."
}The MCP server returns appropriate HTTP status codes and error messages for different types of errors:
{
"status": "error",
"error": "Detailed error message"
}The MCP server implements rate limiting to prevent abuse. By default, clients are limited to 5 requests per minute. When the rate limit is exceeded, the server returns a 429 status code with an error message.
The MCP server does not currently implement authentication. It is recommended to run the server on a secure network or implement authentication at the network level.
| Back | FazBrowse Home | New Git URL |