mcpforunityserver 9.0.7__tar.gz → 9.0.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/PKG-INFO +2 -2
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/README.md +1 -1
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/pyproject.toml +1 -1
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/mcpforunityserver.egg-info/PKG-INFO +2 -2
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/read_console.py +39 -3
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/LICENSE +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/setup.cfg +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/__init__.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/core/__init__.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/core/config.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/core/logging_decorator.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/core/telemetry.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/core/telemetry_decorator.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/main.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/mcpforunityserver.egg-info/SOURCES.txt +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/mcpforunityserver.egg-info/dependency_links.txt +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/mcpforunityserver.egg-info/entry_points.txt +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/mcpforunityserver.egg-info/requires.txt +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/mcpforunityserver.egg-info/top_level.txt +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/models/__init__.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/models/models.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/models/unity_response.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/__init__.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/custom_tool_service.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/registry/__init__.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/registry/resource_registry.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/registry/tool_registry.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/resources/__init__.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/resources/active_tool.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/resources/custom_tools.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/resources/editor_state.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/resources/gameobject.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/resources/layers.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/resources/menu_items.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/resources/prefab_stage.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/resources/project_info.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/resources/selection.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/resources/tags.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/resources/tests.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/resources/unity_instances.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/resources/windows.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/state/external_changes_scanner.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/__init__.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/batch_execute.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/debug_request_context.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/execute_custom_tool.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/execute_menu_item.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/find_gameobjects.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/find_in_file.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/manage_asset.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/manage_components.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/manage_editor.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/manage_gameobject.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/manage_material.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/manage_prefabs.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/manage_scene.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/manage_script.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/manage_scriptable_object.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/manage_shader.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/manage_vfx.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/preflight.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/refresh_unity.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/run_tests.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/script_apply_edits.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/set_active_instance.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/utils.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/transport/__init__.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/transport/legacy/port_discovery.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/transport/legacy/stdio_port_registry.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/transport/legacy/unity_connection.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/transport/models.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/transport/plugin_hub.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/transport/plugin_registry.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/transport/unity_instance_middleware.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/transport/unity_transport.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/utils/focus_nudge.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/utils/module_discovery.py +0 -0
- {mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/utils/reload_sentinel.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcpforunityserver
|
|
3
|
-
Version: 9.0.
|
|
3
|
+
Version: 9.0.8
|
|
4
4
|
Summary: MCP for Unity Server: A Unity package for Unity Editor integration via the Model Context Protocol (MCP).
|
|
5
5
|
Author-email: Marcus Sanatan <msanatan@gmail.com>, David Sarno <david.sarno@gmail.com>, Wu Shutong <martinwfire@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -109,7 +109,7 @@ Use this to run the latest released version from the repository. Change the vers
|
|
|
109
109
|
"command": "uvx",
|
|
110
110
|
"args": [
|
|
111
111
|
"--from",
|
|
112
|
-
"git+https://github.com/CoplayDev/unity-mcp@v9.0.
|
|
112
|
+
"git+https://github.com/CoplayDev/unity-mcp@v9.0.8#subdirectory=Server",
|
|
113
113
|
"mcp-for-unity",
|
|
114
114
|
"--transport",
|
|
115
115
|
"stdio"
|
|
@@ -69,7 +69,7 @@ Use this to run the latest released version from the repository. Change the vers
|
|
|
69
69
|
"command": "uvx",
|
|
70
70
|
"args": [
|
|
71
71
|
"--from",
|
|
72
|
-
"git+https://github.com/CoplayDev/unity-mcp@v9.0.
|
|
72
|
+
"git+https://github.com/CoplayDev/unity-mcp@v9.0.8#subdirectory=Server",
|
|
73
73
|
"mcp-for-unity",
|
|
74
74
|
"--transport",
|
|
75
75
|
"stdio"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcpforunityserver
|
|
3
|
-
Version: 9.0.
|
|
3
|
+
Version: 9.0.8
|
|
4
4
|
Summary: MCP for Unity Server: A Unity package for Unity Editor integration via the Model Context Protocol (MCP).
|
|
5
5
|
Author-email: Marcus Sanatan <msanatan@gmail.com>, David Sarno <david.sarno@gmail.com>, Wu Shutong <martinwfire@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -109,7 +109,7 @@ Use this to run the latest released version from the repository. Change the vers
|
|
|
109
109
|
"command": "uvx",
|
|
110
110
|
"args": [
|
|
111
111
|
"--from",
|
|
112
|
-
"git+https://github.com/CoplayDev/unity-mcp@v9.0.
|
|
112
|
+
"git+https://github.com/CoplayDev/unity-mcp@v9.0.8#subdirectory=Server",
|
|
113
113
|
"mcp-for-unity",
|
|
114
114
|
"--transport",
|
|
115
115
|
"stdio"
|
|
@@ -8,7 +8,7 @@ from mcp.types import ToolAnnotations
|
|
|
8
8
|
|
|
9
9
|
from services.registry import mcp_for_unity_tool
|
|
10
10
|
from services.tools import get_unity_instance_from_context
|
|
11
|
-
from services.tools.utils import coerce_int, coerce_bool
|
|
11
|
+
from services.tools.utils import coerce_int, coerce_bool, parse_json_payload
|
|
12
12
|
from transport.unity_transport import send_with_unity_instance
|
|
13
13
|
from transport.legacy.unity_connection import async_send_command_with_retry
|
|
14
14
|
|
|
@@ -31,7 +31,8 @@ async def read_console(
|
|
|
31
31
|
action: Annotated[Literal['get', 'clear'],
|
|
32
32
|
"Get or clear the Unity Editor console. Defaults to 'get' if omitted."] | None = None,
|
|
33
33
|
types: Annotated[list[Literal['error', 'warning',
|
|
34
|
-
'log', 'all']]
|
|
34
|
+
'log', 'all']] | str,
|
|
35
|
+
"Message types to get (accepts list or JSON string)"] | None = None,
|
|
35
36
|
count: Annotated[int | str,
|
|
36
37
|
"Max messages to return in non-paging mode (accepts int or string, e.g., 5 or '5'). Ignored when paging with page_size/cursor."] | None = None,
|
|
37
38
|
filter_text: Annotated[str, "Text filter for messages"] | None = None,
|
|
@@ -51,7 +52,42 @@ async def read_console(
|
|
|
51
52
|
unity_instance = get_unity_instance_from_context(ctx)
|
|
52
53
|
# Set defaults if values are None
|
|
53
54
|
action = action if action is not None else 'get'
|
|
54
|
-
|
|
55
|
+
|
|
56
|
+
# Parse types if it's a JSON string (handles client compatibility issue #561)
|
|
57
|
+
if isinstance(types, str):
|
|
58
|
+
types = parse_json_payload(types)
|
|
59
|
+
# Validate types is a list after parsing
|
|
60
|
+
if types is not None and not isinstance(types, list):
|
|
61
|
+
return {
|
|
62
|
+
"success": False,
|
|
63
|
+
"message": (
|
|
64
|
+
f"types must be a list, got {type(types).__name__}. "
|
|
65
|
+
"If passing as JSON string, use format: '[\"error\", \"warning\"]'"
|
|
66
|
+
)
|
|
67
|
+
}
|
|
68
|
+
if types is not None:
|
|
69
|
+
allowed_types = {"error", "warning", "log", "all"}
|
|
70
|
+
normalized_types = []
|
|
71
|
+
for entry in types:
|
|
72
|
+
if not isinstance(entry, str):
|
|
73
|
+
return {
|
|
74
|
+
"success": False,
|
|
75
|
+
"message": f"types entries must be strings, got {type(entry).__name__}"
|
|
76
|
+
}
|
|
77
|
+
normalized = entry.strip().lower()
|
|
78
|
+
if normalized not in allowed_types:
|
|
79
|
+
return {
|
|
80
|
+
"success": False,
|
|
81
|
+
"message": (
|
|
82
|
+
f"invalid types entry '{entry}'. "
|
|
83
|
+
f"Allowed values: {sorted(allowed_types)}"
|
|
84
|
+
)
|
|
85
|
+
}
|
|
86
|
+
normalized_types.append(normalized)
|
|
87
|
+
types = normalized_types
|
|
88
|
+
else:
|
|
89
|
+
types = ['error', 'warning', 'log']
|
|
90
|
+
|
|
55
91
|
format = format if format is not None else 'plain'
|
|
56
92
|
# Coerce booleans defensively (strings like 'true'/'false')
|
|
57
93
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/mcpforunityserver.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/mcpforunityserver.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/mcpforunityserver.egg-info/requires.txt
RENAMED
|
File without changes
|
{mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/mcpforunityserver.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/registry/resource_registry.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/resources/unity_instances.py
RENAMED
|
File without changes
|
|
File without changes
|
{mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/state/external_changes_scanner.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/debug_request_context.py
RENAMED
|
File without changes
|
{mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/execute_custom_tool.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/manage_scriptable_object.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/script_apply_edits.py
RENAMED
|
File without changes
|
{mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/services/tools/set_active_instance.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/transport/legacy/stdio_port_registry.py
RENAMED
|
File without changes
|
{mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/transport/legacy/unity_connection.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mcpforunityserver-9.0.7 → mcpforunityserver-9.0.8}/src/transport/unity_instance_middleware.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|