Metadata-Version: 2.4
Name: iflow-mcp_rudycazabon-usd-mcp
Version: 0.1.0
Summary: A Model Context Protocol server for USD (Universal Scene Description) operations
Author: USD MCP Server
License: MIT
License-File: LICENSE.md
Keywords: 3d,mcp,pixar,universal-scene-description,usd
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Requires-Dist: annotated-types==0.7.0
Requires-Dist: anthropic==0.58.2
Requires-Dist: anyio==4.9.0
Requires-Dist: attrs==25.3.0
Requires-Dist: certifi==2025.7.14
Requires-Dist: click==8.2.1
Requires-Dist: colorama==0.4.6
Requires-Dist: distro==1.9.0
Requires-Dist: h11==0.16.0
Requires-Dist: httpcore==1.0.9
Requires-Dist: httpx-sse==0.4.1
Requires-Dist: httpx==0.28.1
Requires-Dist: idna==3.10
Requires-Dist: iniconfig==2.1.0
Requires-Dist: jiter==0.10.0
Requires-Dist: jsonschema-specifications==2025.4.1
Requires-Dist: jsonschema==4.25.0
Requires-Dist: markdown-it-py==3.0.0
Requires-Dist: mcp==1.12.1
Requires-Dist: mdurl==0.1.2
Requires-Dist: packaging==25.0
Requires-Dist: pluggy==1.6.0
Requires-Dist: pydantic-core==2.33.2
Requires-Dist: pydantic-settings==2.10.1
Requires-Dist: pydantic==2.11.7
Requires-Dist: pygments==2.19.2
Requires-Dist: pytest-asyncio==1.1.0
Requires-Dist: pytest-env>=1.1.5
Requires-Dist: pytest-testconfig==0.2.0
Requires-Dist: pytest==8.4.1
Requires-Dist: python-dotenv==1.1.1
Requires-Dist: python-multipart==0.0.20
Requires-Dist: pyyaml==6.0.2
Requires-Dist: referencing==0.36.2
Requires-Dist: rich==14.0.0
Requires-Dist: rpds-py==0.26.0
Requires-Dist: shellingham==1.5.4
Requires-Dist: sniffio==1.3.1
Requires-Dist: sse-starlette==2.4.1
Requires-Dist: starlette==0.47.2
Requires-Dist: typer==0.16.0
Requires-Dist: typing-extensions==4.14.1
Requires-Dist: typing-inspection==0.4.1
Requires-Dist: usd-core>25.5
Requires-Dist: uvicorn==0.35.0
Description-Content-Type: text/markdown

# USD AI 
The contents of this repository are a collection of OpenUSD tools that interface with MCP (modelcontextprotocol) and A2A (agent2agent). The goal of this effort is to give large language models and agentic workflows the tools to work directly with OpenUSD objects, e.g., UsdStage, prims, hierarchies, and others and integrate them into comprehensive asset creation workflows.

# Introduction 

## Setup
Currently this project has been tested to work on Windows 11 with usd-core from PyPi and NVidia USD v25.05 with Python 3.11.11. 

- Install UV package manager from https://astral.sh
- Execute the following:
  - git clone https://github.com/rudycazabon/usd-ai.git
  - cd usd-ai
  - uv python install "3.11.11"
  - uv venv --python="3.11.11"
  - ./.venv/Scripts/activate.ps1
  - uv pip install -r .\requirements.txt
- To test out the server
  - python -m pytest usd-mcp/server/tests/test_server.py
  - python -m pytest usd-mcp/server/tests/test_usd_mcp_server.py
- Adding to the Claude Desktop (Windows)
  - Open %APPDATA%\claude_desktop_config.json
  - Add/Modify the file with the following:
```
{
  "mcpServers": {
    "usd-mcp": {
      "command": "<FULL PATH>\\usd-ai\\.venv\\Scripts\\python.exe",
      "args": ["<FULL PATH>\\usd-ai\\usd-mcp\\usd_mcp\\main.py"],
      "cwd": "<FULL PATH>\\usd-ai"
    }
  }
}
```

## Usage
Within the context for Claude Desktop (Windows) you will have access to the following USD tools:
- load_usd_stage
- get_stage_hierarchy
- inspect_prim
- list_stage_prims
- find_prims_by_name

For the purposes of this repo I have included usd-mcp\data\HelloWorld.usda. I have loaded the Pixar KitchenSet, however, your milage _will_ vary (trust me).

A sample prompt session that has worked"

```
Load the USD file at <FULL PATH>\\usd-ai\\usd-mcp\\data\\HelloWorld.usda.
<will see load of file>

Show me the hierarchy and present in formatted JSON.
```
## Contents
### usd-mcp - OpenUSD tools exposed with MCP protocols.
[usd-mcp README.md](./usd-mcp/README.md)

### usd-a2a - OpenUSD tools exposed to agentic workflows with the a2a protocol.
