urml-mcp-server 0.5.0__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.
@@ -0,0 +1,114 @@
1
+ # --- Python ---
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+ build/
8
+ dist/
9
+ develop-eggs/
10
+ downloads/
11
+ eggs/
12
+ .eggs/
13
+ lib/
14
+ lib64/
15
+ parts/
16
+ sdist/
17
+ var/
18
+ wheels/
19
+ *.egg-info/
20
+ .installed.cfg
21
+ *.egg
22
+ MANIFEST
23
+
24
+ # Virtual envs
25
+ .venv/
26
+ venv/
27
+ env/
28
+ ENV/
29
+ .python-version
30
+
31
+ # Test / coverage / mypy / pyright
32
+ .coverage
33
+ .coverage.*
34
+ .cache
35
+ .pytest_cache/
36
+ .mypy_cache/
37
+ .dmypy.json
38
+ .pyre/
39
+ .pyright/
40
+ htmlcov/
41
+ nosetests.xml
42
+ coverage.xml
43
+ *.cover
44
+ .hypothesis/
45
+ .tox/
46
+
47
+ # --- Node / web tooling (kept out of core repo; here for safety) ---
48
+ node_modules/
49
+ .pnp.*
50
+ .yarn/cache/
51
+ .yarn/unplugged/
52
+ .yarn/build-state.yml
53
+ .yarn/install-state.gz
54
+ npm-debug.log*
55
+ yarn-debug.log*
56
+ yarn-error.log*
57
+
58
+ # --- C++ / Rust build artifacts (in case reference runtimes land here in early Phase 1) ---
59
+ target/
60
+ *.o
61
+ *.obj
62
+ *.a
63
+ *.lib
64
+ *.dll
65
+ *.dylib
66
+ *.exe
67
+ *.pdb
68
+ cmake-build-*/
69
+ CMakeCache.txt
70
+ CMakeFiles/
71
+ CMakeScripts/
72
+ Testing/
73
+ cmake_install.cmake
74
+ install_manifest.txt
75
+ compile_commands.json
76
+
77
+ # --- ROS 2 build dirs ---
78
+ build/
79
+ install/
80
+ log/
81
+
82
+ # --- Editor and OS junk ---
83
+ .vscode/
84
+ .idea/
85
+ *.swp
86
+ *.swo
87
+ *~
88
+ .DS_Store
89
+ Thumbs.db
90
+ desktop.ini
91
+
92
+ # --- Local-only artifacts ---
93
+ .env
94
+ .env.*
95
+ *.log
96
+ *.tmp
97
+ .local/
98
+ .scratch/
99
+
100
+ # --- Outreach campaign artifacts (operational, not part of the open standard) ---
101
+ # Target lists, message drafts, tracking data, and the launch-approval record
102
+ # stay local. They are private to the maintainer; committing them would
103
+ # telegraph the campaign before launch and could embarrass listed projects.
104
+ outreach/
105
+
106
+ # Outreach dashboard SQLite mirror (RFC-0275). Derived from
107
+ # examples/lighthouses/outreach*.yaml via tools/scripts/refresh_outreach_db.py.
108
+ # Regenerated on demand by `make outreach-refresh`.
109
+ tools/outreach.db
110
+ tools/.outreach.db
111
+
112
+ # Local Claude Code settings (per-machine; permission rules, etc.). Not committed.
113
+ .claude/settings.json
114
+ .claude/settings.local.json
@@ -0,0 +1,175 @@
1
+ Metadata-Version: 2.5
2
+ Name: urml-mcp-server
3
+ Version: 0.5.0
4
+ Summary: Model Context Protocol server for URML: validate-before-actuate robot intent as agent tools
5
+ Project-URL: Homepage, https://github.com/urml-dev/URML
6
+ Project-URL: Repository, https://github.com/urml-dev/URML
7
+ Project-URL: Issues, https://github.com/urml-dev/URML/issues
8
+ Author: URML Maintainers
9
+ License-Expression: BUSL-1.1
10
+ Keywords: mcp,robot-intent,robotics,safety,urml,validation
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3 :: Only
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Topic :: Scientific/Engineering :: Information Analysis
18
+ Requires-Python: >=3.11
19
+ Requires-Dist: mcp<2,>=1.10
20
+ Requires-Dist: pyyaml<7,>=6.0
21
+ Requires-Dist: urml-llm-bridge>=0.5.0
22
+ Requires-Dist: urml-ros2-runtime>=0.5.0
23
+ Requires-Dist: urml-validator>=0.5.0
24
+ Provides-Extra: dev
25
+ Requires-Dist: mypy>=1.10; extra == 'dev'
26
+ Requires-Dist: pytest-cov>=5; extra == 'dev'
27
+ Requires-Dist: pytest>=8; extra == 'dev'
28
+ Requires-Dist: ruff>=0.5; extra == 'dev'
29
+ Description-Content-Type: text/markdown
30
+
31
+ <p align="center">
32
+ <a href="https://urml.dev"><img src="https://urml.dev/favicon.svg" alt="URML" width="72" height="72"></a>
33
+ </p>
34
+
35
+ ---
36
+
37
+ # URML MCP server
38
+
39
+ A [Model Context Protocol](https://modelcontextprotocol.io) server that exposes URML's validate-before-actuate loop as tools any MCP-capable agent (Claude Code, Cursor, VS Code, Goose, OpenHands, and the rest of the ecosystem) can call. Design and rationale: [`docs/integrations/mcp-server-scope.md`](../../docs/integrations/mcp-server-scope.md).
40
+
41
+ **The server is the safety boundary, never the model.** It exposes validation and execution and never calls an LLM. The calling agent is already a model: it emits the URML, the server checks and runs it. That keeps URML's provider-neutrality intact by construction and keeps the validator as the safety boundary.
42
+
43
+ ## Tools
44
+
45
+ | Tool | What it does | Safety |
46
+ |---|---|---|
47
+ | `urml_get_contract` | Returns the Layer-4 system prompt + the URML program JSON Schema to emit against | read-only |
48
+ | `urml_validate` | Validates a program against a manifest + safety envelope; returns `accepted` + structured errors | read-only, the safety check |
49
+ | `urml_execute` | Runs a program against an adapter; re-validates first | gated, see below |
50
+ | `urml_list_profiles` | Lists available profiles (home, industrial, drone, educational, fleet) | read-only |
51
+ | `urml_describe_manifest` | Compact structural summary of a capability manifest | read-only |
52
+
53
+ There is no `translate` tool by design. The agent calls `urml_get_contract`, emits the URML itself, then `urml_validate`. No LLM is embedded.
54
+
55
+ ## Execution gating
56
+
57
+ `urml_execute` defaults to the hermetic `mock` adapter (records calls, touches no hardware). The `ros2`, `px4` and `ardupilot` adapters actuate real hardware and are disabled unless:
58
+
59
+ - `URML_MCP_ALLOW_REAL_EXECUTE` is set to `1` (or `true`/`yes`/`on`),
60
+ - the operator pinned the manifest and the envelope when starting the server (see [Pin the deployment](#pin-the-deployment)), and
61
+ - the relevant runtime is available (`rclpy` + a sourced ROS 2 for `ros2`; `urml-px4-runtime` + a reachable PX4 for `px4`; `urml-ardupilot-runtime` + a reachable ArduCopter for `ardupilot`).
62
+
63
+ Optionally point `URML_MCP_ADAPTER_CONFIG` at an adapter-config YAML. Every execute validates the program before it builds a runtime or an adapter, and the runtime re-validates before running; there is no path to an actuator that skips the validator.
64
+
65
+ ## Use it now, from GitHub (no PyPI needed)
66
+
67
+ The server runs today, straight from source. `urml-mcp-server` is not on PyPI yet, and the `urml-validator` 0.4.0 build on PyPI predates code the server imports (a mixed install fails with `No module named 'urml_validator.evidence'`). Install the server together with its three dependencies from their git subdirectories in a single `pip install`, so all four come from the same source:
68
+
69
+ ```bash
70
+ python -m venv .urml-mcp
71
+ . .urml-mcp/bin/activate # Windows: .urml-mcp\Scripts\activate
72
+
73
+ pip install \
74
+ "git+https://github.com/urml-dev/URML.git#subdirectory=reference/validator" \
75
+ "git+https://github.com/urml-dev/URML.git#subdirectory=reference/llm-bridge" \
76
+ "git+https://github.com/urml-dev/URML.git#subdirectory=reference/ros2-runtime" \
77
+ "git+https://github.com/urml-dev/URML.git#subdirectory=reference/mcp-server"
78
+
79
+ urml-mcp # runs over stdio
80
+ ```
81
+
82
+ `urml-ros2-runtime` carries the hermetic `mock` adapter, so `urml_execute` works with no ROS install and no hardware.
83
+
84
+ ### Register it with an MCP client
85
+
86
+ Point the client at the `urml-mcp` command (stdio transport), using the absolute path to the `urml-mcp` inside the venv above (`.../.urml-mcp/bin/urml-mcp`, or `...\.urml-mcp\Scripts\urml-mcp.exe` on Windows):
87
+
88
+ ```json
89
+ {
90
+ "mcpServers": {
91
+ "urml": {
92
+ "command": "/absolute/path/to/.urml-mcp/bin/urml-mcp"
93
+ }
94
+ }
95
+ }
96
+ ```
97
+
98
+ Claude Desktop (`claude_desktop_config.json`) and Cursor (`.cursor/mcp.json`) take that shape as-is; VS Code (`.vscode/mcp.json`) uses the same fields under a top-level `servers` key instead of `mcpServers`. The agent then holds the five URML tools: it emits URML, the server validates and runs it.
99
+
100
+ Once `urml-mcp-server` and a release that carries this code are on PyPI, the four git URLs collapse to `pip install urml-mcp-server`.
101
+
102
+ ## Pin the deployment
103
+
104
+ By default the agent passes the manifest, envelope, profiles and policy with each call. That suits the hermetic `mock` adapter. On a real robot the agent must not choose the rules it is checked against: it could pass a manifest that claims more than the robot can do, or leave the envelope out.
105
+
106
+ Pin them when you start the server, with env vars or the matching flags. A flag wins over its env var.
107
+
108
+ | Env var | Flag | Value |
109
+ |---|---|---|
110
+ | `URML_MCP_MANIFEST` | `--manifest` | Path to the robot's capability manifest |
111
+ | `URML_MCP_ENVELOPE` | `--envelope` | Path to the site's safety envelope |
112
+ | `URML_MCP_PROFILES` | `--profiles` | Comma-separated profiles, for example `home` or `drone,fleet` |
113
+ | `URML_MCP_POLICY` | `--policy` | Path to a compliance policy, `DEFAULT` for the bundled US-federal policy, or `none` |
114
+ | `URML_MCP_RULEBOOKS` | `--rulebooks` | Rulebook files (RFC-0702, Draft), separated by the OS path separator (`;` on Windows, `:` elsewhere) |
115
+ | `URML_MCP_DEFAULT_RULEBOOKS` | `--default-rulebooks` | `on` (the default) or `off` for the bundled rulebooks, such as the FAA Part 107 subset for aircraft |
116
+ | `URML_MCP_EVIDENCE_LOG` | `--evidence-log` | Path to a local JSON Lines file that receives one [validation record](../../docs/evidence/validation-records.md) per `urml_validate` and `urml_execute` verdict. Off when unset; no tool can change it |
117
+
118
+ ```json
119
+ {
120
+ "mcpServers": {
121
+ "urml": {
122
+ "command": "/absolute/path/to/.urml-mcp/bin/urml-mcp",
123
+ "env": {
124
+ "URML_MCP_MANIFEST": "/absolute/path/to/robot.manifest.yaml",
125
+ "URML_MCP_ENVELOPE": "/absolute/path/to/site.envelope.yaml",
126
+ "URML_MCP_PROFILES": "home",
127
+ "URML_MCP_POLICY": "DEFAULT"
128
+ }
129
+ }
130
+ }
131
+ }
132
+ ```
133
+
134
+ Use absolute paths; MCP clients do not promise a working directory. To drive real hardware, also set `"URML_MCP_ALLOW_REAL_EXECUTE": "1"` in `env`.
135
+
136
+ What pinning does:
137
+
138
+ - The server reads each pinned file once, at startup, and checks it against its schema. A file that does not load stops the server with a message that names the env var or flag.
139
+ - Every tool uses the pinned values, so the agent can leave them out. `urml_get_contract` lists what is pinned.
140
+ - An agent value that differs from a pin is refused with a tool error before any runtime or adapter is built.
141
+ - `ros2`, `px4` and `ardupilot` run only with a pinned manifest and a pinned envelope. If the profiles are not pinned, a real adapter runs with no profiles and refuses profiles from the agent.
142
+ - Rulebooks are never agent values: no tool has an argument for them, pinned or not. A deployment rulebook can carry exceptions, so an agent that could pass one could grant itself a waiver. Every validation, and the runtime's re-validation, uses the operator's rulebooks, and the bundled rulebooks stay on unless the operator switches them off.
143
+
144
+ ## Develop against a local checkout
145
+
146
+ ```bash
147
+ pip install -e reference/validator
148
+ pip install -e reference/llm-bridge
149
+ pip install -e reference/ros2-runtime
150
+ pip install -e reference/mcp-server
151
+
152
+ urml-mcp # runs over stdio
153
+ ```
154
+
155
+ ## Layout
156
+
157
+ ```
158
+ reference/mcp-server/
159
+ src/urml_mcp/
160
+ tools.py # pure tool logic and operator pins (no MCP dependency, hermetically testable)
161
+ server.py # FastMCP wiring over stdio
162
+ tests/
163
+ test_tools.py # hermetic, reuses examples/home fixtures
164
+ test_pinned.py # pinned manifest, envelope, profiles and policy; the real-adapter gate
165
+ test_server.py # transport wiring; skips when the mcp SDK is not installed
166
+ ```
167
+
168
+ The split is deliberate: `tools.py` has no MCP dependency, so the validate/execute guarantees are testable without the transport. Every command stays in lockstep with the `urml` CLI.
169
+
170
+ ## Publishing to MCP registries (maintainer action)
171
+
172
+ [`server.json`](server.json) is the registry manifest for the [official MCP Registry](https://registry.modelcontextprotocol.io). The full playbook (PyPI first, then `mcp-publisher`, then the Smithery/Glama/PulseMCP/mcp.so directory claims) lives in [`SUBMISSIONS.md`](SUBMISSIONS.md). It is gated on the 0.2.0 core release ([`RELEASING.md`](../../RELEASING.md)), since the registry resolves the package from PyPI.
173
+
174
+ Track each listing in [`examples/lighthouses/distribution.yaml`](../../examples/lighthouses/distribution.yaml) (`response: none` until real adoption signal). Do not cite install counts as engagement without corroboration.
175
+
@@ -0,0 +1,145 @@
1
+ <p align="center">
2
+ <a href="https://urml.dev"><img src="https://urml.dev/favicon.svg" alt="URML" width="72" height="72"></a>
3
+ </p>
4
+
5
+ ---
6
+
7
+ # URML MCP server
8
+
9
+ A [Model Context Protocol](https://modelcontextprotocol.io) server that exposes URML's validate-before-actuate loop as tools any MCP-capable agent (Claude Code, Cursor, VS Code, Goose, OpenHands, and the rest of the ecosystem) can call. Design and rationale: [`docs/integrations/mcp-server-scope.md`](../../docs/integrations/mcp-server-scope.md).
10
+
11
+ **The server is the safety boundary, never the model.** It exposes validation and execution and never calls an LLM. The calling agent is already a model: it emits the URML, the server checks and runs it. That keeps URML's provider-neutrality intact by construction and keeps the validator as the safety boundary.
12
+
13
+ ## Tools
14
+
15
+ | Tool | What it does | Safety |
16
+ |---|---|---|
17
+ | `urml_get_contract` | Returns the Layer-4 system prompt + the URML program JSON Schema to emit against | read-only |
18
+ | `urml_validate` | Validates a program against a manifest + safety envelope; returns `accepted` + structured errors | read-only, the safety check |
19
+ | `urml_execute` | Runs a program against an adapter; re-validates first | gated, see below |
20
+ | `urml_list_profiles` | Lists available profiles (home, industrial, drone, educational, fleet) | read-only |
21
+ | `urml_describe_manifest` | Compact structural summary of a capability manifest | read-only |
22
+
23
+ There is no `translate` tool by design. The agent calls `urml_get_contract`, emits the URML itself, then `urml_validate`. No LLM is embedded.
24
+
25
+ ## Execution gating
26
+
27
+ `urml_execute` defaults to the hermetic `mock` adapter (records calls, touches no hardware). The `ros2`, `px4` and `ardupilot` adapters actuate real hardware and are disabled unless:
28
+
29
+ - `URML_MCP_ALLOW_REAL_EXECUTE` is set to `1` (or `true`/`yes`/`on`),
30
+ - the operator pinned the manifest and the envelope when starting the server (see [Pin the deployment](#pin-the-deployment)), and
31
+ - the relevant runtime is available (`rclpy` + a sourced ROS 2 for `ros2`; `urml-px4-runtime` + a reachable PX4 for `px4`; `urml-ardupilot-runtime` + a reachable ArduCopter for `ardupilot`).
32
+
33
+ Optionally point `URML_MCP_ADAPTER_CONFIG` at an adapter-config YAML. Every execute validates the program before it builds a runtime or an adapter, and the runtime re-validates before running; there is no path to an actuator that skips the validator.
34
+
35
+ ## Use it now, from GitHub (no PyPI needed)
36
+
37
+ The server runs today, straight from source. `urml-mcp-server` is not on PyPI yet, and the `urml-validator` 0.4.0 build on PyPI predates code the server imports (a mixed install fails with `No module named 'urml_validator.evidence'`). Install the server together with its three dependencies from their git subdirectories in a single `pip install`, so all four come from the same source:
38
+
39
+ ```bash
40
+ python -m venv .urml-mcp
41
+ . .urml-mcp/bin/activate # Windows: .urml-mcp\Scripts\activate
42
+
43
+ pip install \
44
+ "git+https://github.com/urml-dev/URML.git#subdirectory=reference/validator" \
45
+ "git+https://github.com/urml-dev/URML.git#subdirectory=reference/llm-bridge" \
46
+ "git+https://github.com/urml-dev/URML.git#subdirectory=reference/ros2-runtime" \
47
+ "git+https://github.com/urml-dev/URML.git#subdirectory=reference/mcp-server"
48
+
49
+ urml-mcp # runs over stdio
50
+ ```
51
+
52
+ `urml-ros2-runtime` carries the hermetic `mock` adapter, so `urml_execute` works with no ROS install and no hardware.
53
+
54
+ ### Register it with an MCP client
55
+
56
+ Point the client at the `urml-mcp` command (stdio transport), using the absolute path to the `urml-mcp` inside the venv above (`.../.urml-mcp/bin/urml-mcp`, or `...\.urml-mcp\Scripts\urml-mcp.exe` on Windows):
57
+
58
+ ```json
59
+ {
60
+ "mcpServers": {
61
+ "urml": {
62
+ "command": "/absolute/path/to/.urml-mcp/bin/urml-mcp"
63
+ }
64
+ }
65
+ }
66
+ ```
67
+
68
+ Claude Desktop (`claude_desktop_config.json`) and Cursor (`.cursor/mcp.json`) take that shape as-is; VS Code (`.vscode/mcp.json`) uses the same fields under a top-level `servers` key instead of `mcpServers`. The agent then holds the five URML tools: it emits URML, the server validates and runs it.
69
+
70
+ Once `urml-mcp-server` and a release that carries this code are on PyPI, the four git URLs collapse to `pip install urml-mcp-server`.
71
+
72
+ ## Pin the deployment
73
+
74
+ By default the agent passes the manifest, envelope, profiles and policy with each call. That suits the hermetic `mock` adapter. On a real robot the agent must not choose the rules it is checked against: it could pass a manifest that claims more than the robot can do, or leave the envelope out.
75
+
76
+ Pin them when you start the server, with env vars or the matching flags. A flag wins over its env var.
77
+
78
+ | Env var | Flag | Value |
79
+ |---|---|---|
80
+ | `URML_MCP_MANIFEST` | `--manifest` | Path to the robot's capability manifest |
81
+ | `URML_MCP_ENVELOPE` | `--envelope` | Path to the site's safety envelope |
82
+ | `URML_MCP_PROFILES` | `--profiles` | Comma-separated profiles, for example `home` or `drone,fleet` |
83
+ | `URML_MCP_POLICY` | `--policy` | Path to a compliance policy, `DEFAULT` for the bundled US-federal policy, or `none` |
84
+ | `URML_MCP_RULEBOOKS` | `--rulebooks` | Rulebook files (RFC-0702, Draft), separated by the OS path separator (`;` on Windows, `:` elsewhere) |
85
+ | `URML_MCP_DEFAULT_RULEBOOKS` | `--default-rulebooks` | `on` (the default) or `off` for the bundled rulebooks, such as the FAA Part 107 subset for aircraft |
86
+ | `URML_MCP_EVIDENCE_LOG` | `--evidence-log` | Path to a local JSON Lines file that receives one [validation record](../../docs/evidence/validation-records.md) per `urml_validate` and `urml_execute` verdict. Off when unset; no tool can change it |
87
+
88
+ ```json
89
+ {
90
+ "mcpServers": {
91
+ "urml": {
92
+ "command": "/absolute/path/to/.urml-mcp/bin/urml-mcp",
93
+ "env": {
94
+ "URML_MCP_MANIFEST": "/absolute/path/to/robot.manifest.yaml",
95
+ "URML_MCP_ENVELOPE": "/absolute/path/to/site.envelope.yaml",
96
+ "URML_MCP_PROFILES": "home",
97
+ "URML_MCP_POLICY": "DEFAULT"
98
+ }
99
+ }
100
+ }
101
+ }
102
+ ```
103
+
104
+ Use absolute paths; MCP clients do not promise a working directory. To drive real hardware, also set `"URML_MCP_ALLOW_REAL_EXECUTE": "1"` in `env`.
105
+
106
+ What pinning does:
107
+
108
+ - The server reads each pinned file once, at startup, and checks it against its schema. A file that does not load stops the server with a message that names the env var or flag.
109
+ - Every tool uses the pinned values, so the agent can leave them out. `urml_get_contract` lists what is pinned.
110
+ - An agent value that differs from a pin is refused with a tool error before any runtime or adapter is built.
111
+ - `ros2`, `px4` and `ardupilot` run only with a pinned manifest and a pinned envelope. If the profiles are not pinned, a real adapter runs with no profiles and refuses profiles from the agent.
112
+ - Rulebooks are never agent values: no tool has an argument for them, pinned or not. A deployment rulebook can carry exceptions, so an agent that could pass one could grant itself a waiver. Every validation, and the runtime's re-validation, uses the operator's rulebooks, and the bundled rulebooks stay on unless the operator switches them off.
113
+
114
+ ## Develop against a local checkout
115
+
116
+ ```bash
117
+ pip install -e reference/validator
118
+ pip install -e reference/llm-bridge
119
+ pip install -e reference/ros2-runtime
120
+ pip install -e reference/mcp-server
121
+
122
+ urml-mcp # runs over stdio
123
+ ```
124
+
125
+ ## Layout
126
+
127
+ ```
128
+ reference/mcp-server/
129
+ src/urml_mcp/
130
+ tools.py # pure tool logic and operator pins (no MCP dependency, hermetically testable)
131
+ server.py # FastMCP wiring over stdio
132
+ tests/
133
+ test_tools.py # hermetic, reuses examples/home fixtures
134
+ test_pinned.py # pinned manifest, envelope, profiles and policy; the real-adapter gate
135
+ test_server.py # transport wiring; skips when the mcp SDK is not installed
136
+ ```
137
+
138
+ The split is deliberate: `tools.py` has no MCP dependency, so the validate/execute guarantees are testable without the transport. Every command stays in lockstep with the `urml` CLI.
139
+
140
+ ## Publishing to MCP registries (maintainer action)
141
+
142
+ [`server.json`](server.json) is the registry manifest for the [official MCP Registry](https://registry.modelcontextprotocol.io). The full playbook (PyPI first, then `mcp-publisher`, then the Smithery/Glama/PulseMCP/mcp.so directory claims) lives in [`SUBMISSIONS.md`](SUBMISSIONS.md). It is gated on the 0.2.0 core release ([`RELEASING.md`](../../RELEASING.md)), since the registry resolves the package from PyPI.
143
+
144
+ Track each listing in [`examples/lighthouses/distribution.yaml`](../../examples/lighthouses/distribution.yaml) (`response: none` until real adoption signal). Do not cite install counts as engagement without corroboration.
145
+
@@ -0,0 +1,92 @@
1
+ <p align="center">
2
+ <a href="https://urml.dev"><img src="https://urml.dev/favicon.svg" alt="URML" width="72" height="72"></a>
3
+ </p>
4
+
5
+ ---
6
+
7
+ # MCP registry submissions (maintainer action)
8
+
9
+ Ready-to-run playbook for publishing the URML MCP server to PyPI and the MCP
10
+ directories. The in-repo [`server.json`](server.json) is the single source; the
11
+ entries here point back to it. These steps need the maintainer's PyPI and GitHub
12
+ identity, so they are drafted for the founder to run. Contact field everywhere:
13
+ `greenvh@gmail.com`. Track progress in
14
+ [`examples/lighthouses/distribution.yaml`](../../examples/lighthouses/distribution.yaml)
15
+ (the `track: mcp` rows).
16
+
17
+ Publishing is irreversible and outward-facing. Nothing here goes live until the
18
+ 0.2.0 core release is on PyPI.
19
+
20
+ ---
21
+
22
+ ## Prerequisite: the 0.2.0 core release (blocking)
23
+
24
+ The package `urml-mcp-server` depends on `urml-validator>=0.2.0`,
25
+ `urml-llm-bridge>=0.2.0`, and `urml-ros2-runtime>=0.2.0` (the `mock` adapter
26
+ lives in ros2-runtime). PyPI resolves those at install time, so they must be on
27
+ the index **before** `urml-mcp-server` is uploaded. As of this writing only
28
+ `urml-validator` and `urml-llm-bridge` are on PyPI, and both at `0.1.0`, so the
29
+ MCP publish is gated on cutting the full 0.2.0 release first.
30
+
31
+ Do that release per [`RELEASING.md`](../../RELEASING.md). `urml-mcp-server` is
32
+ now the sixth package in that ordered flow.
33
+
34
+ ---
35
+
36
+ ## Channel 1: PyPI (`urml-mcp-server`)
37
+
38
+ First-ever publish, so the name is unclaimed. Configure a **pending** Trusted
39
+ Publisher on TestPyPI and PyPI (owner `urml-dev`, repo `URML`, workflow
40
+ `release.yml`) before the first upload, or use a token with the manual `twine`
41
+ path. The build + ordered upload commands are in
42
+ [`RELEASING.md`](../../RELEASING.md) (step-by-step, sixth in the loop).
43
+
44
+ Verify from a clean venv outside the repo before real PyPI:
45
+
46
+ ```bash
47
+ urml-mcp --help # console script resolves
48
+ python -m pytest reference/mcp-server/tests # 10 hermetic tool tests pass
49
+ ```
50
+
51
+ ---
52
+
53
+ ## Channel 2: Official MCP Registry (`io.github.urml-dev/urml`)
54
+
55
+ [`server.json`](server.json) is the manifest for
56
+ [registry.modelcontextprotocol.io](https://registry.modelcontextprotocol.io).
57
+ The registry hosts no code; it points at the PyPI package, so Channel 1 must be
58
+ live first.
59
+
60
+ **Steps:**
61
+ 1. Install the `mcp-publisher` CLI.
62
+ 2. `mcp-publisher publish` against [`server.json`](server.json). GitHub login
63
+ verifies ownership of the `io.github.urml-dev` namespace.
64
+ 3. Confirm the schema version and field casing against the CLI at publish time;
65
+ the registry schema is still evolving.
66
+
67
+ ---
68
+
69
+ ## Channel 3: MCP directories (Smithery, Glama, PulseMCP, mcp.so)
70
+
71
+ These crawl the ecosystem and let you claim ownership of the listing. After the
72
+ registry entry is live, submit / claim each under `greenvh@gmail.com`. They are
73
+ directory listings, not the source of truth; [`server.json`](server.json) is.
74
+
75
+ **Listing metadata:**
76
+ - **Name:** URML MCP server (`urml-mcp-server`)
77
+ - **One-liner:** Validate-before-actuate robot intent as agent tools: validate a plain-language-derived robot program against the robot's declared capabilities and safety envelope before any actuator moves. The server never calls an LLM.
78
+ - **Tags:** robotics, robot-intent, validation, safety, ros2, px4, mcp, open-standard
79
+ - **Repo:** https://github.com/urml-dev/URML
80
+ - **Homepage:** https://urml.dev
81
+ - **License:** BUSL-1.1 (free for non-production use)
82
+
83
+ ---
84
+
85
+ ## After publishing
86
+
87
+ Track each venue in
88
+ [`examples/lighthouses/distribution.yaml`](../../examples/lighthouses/distribution.yaml):
89
+ fill `submitted_at` / `posted_url`, keep `response: none` until real adoption
90
+ signal. Install counts and listing views are vanity, not engagement. Do not
91
+ cite them without corroboration. Keep the server in lockstep with the `urml`
92
+ CLI; if the CLI changes, update the tools and re-publish.
@@ -0,0 +1,45 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.27"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "urml-mcp-server"
7
+ version = "0.5.0"
8
+ description = "Model Context Protocol server for URML: validate-before-actuate robot intent as agent tools"
9
+ readme = "README.md"
10
+ requires-python = ">=3.11"
11
+ license = "BUSL-1.1"
12
+ authors = [{ name = "URML Maintainers" }]
13
+ keywords = ["robotics", "robot-intent", "mcp", "validation", "safety", "urml"]
14
+ classifiers = [
15
+ "Development Status :: 3 - Alpha",
16
+ "Intended Audience :: Developers",
17
+ "Operating System :: OS Independent",
18
+ "Programming Language :: Python :: 3 :: Only",
19
+ "Programming Language :: Python :: 3.11",
20
+ "Programming Language :: Python :: 3.12",
21
+ "Topic :: Scientific/Engineering :: Information Analysis",
22
+ ]
23
+ dependencies = [
24
+ # Pin below 2.0: server.py uses the bundled FastMCP 1.x
25
+ # (`mcp.server.fastmcp.FastMCP`), which mcp 2.0 removed.
26
+ "mcp>=1.10,<2",
27
+ "PyYAML>=6.0,<7",
28
+ "urml-validator>=0.5.0",
29
+ "urml-llm-bridge>=0.5.0",
30
+ "urml-ros2-runtime>=0.5.0",
31
+ ]
32
+
33
+ [project.optional-dependencies]
34
+ dev = ["pytest>=8", "pytest-cov>=5", "ruff>=0.5", "mypy>=1.10"]
35
+
36
+ [project.scripts]
37
+ urml-mcp = "urml_mcp.server:main"
38
+
39
+ [project.urls]
40
+ Homepage = "https://github.com/urml-dev/URML"
41
+ Repository = "https://github.com/urml-dev/URML"
42
+ Issues = "https://github.com/urml-dev/URML/issues"
43
+
44
+ [tool.hatch.build.targets.wheel]
45
+ packages = ["src/urml_mcp"]
@@ -0,0 +1,22 @@
1
+ {
2
+ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-09-29/server.schema.json",
3
+ "name": "io.github.urml-dev/urml",
4
+ "description": "Validate-before-actuate robot intent for agents. Turn a natural-language goal into a URML program checked against a robot's declared capabilities and safety envelope before any actuator moves. The server never calls an LLM; the agent emits URML, the server validates and runs it.",
5
+ "version": "0.2.0",
6
+ "websiteUrl": "https://urml.dev",
7
+ "repository": {
8
+ "url": "https://github.com/urml-dev/URML",
9
+ "source": "github",
10
+ "subfolder": "reference/mcp-server"
11
+ },
12
+ "packages": [
13
+ {
14
+ "registryType": "pypi",
15
+ "identifier": "urml-mcp-server",
16
+ "version": "0.2.0",
17
+ "transport": {
18
+ "type": "stdio"
19
+ }
20
+ }
21
+ ]
22
+ }
@@ -0,0 +1,38 @@
1
+ """URML MCP server.
2
+
3
+ Exposes URML's validate-before-actuate loop as Model Context Protocol tools so
4
+ any MCP-capable agent can check and run robot intent. The tool *logic* lives in
5
+ ``urml_mcp.tools`` (pure functions, no MCP dependency, hermetically testable);
6
+ the transport wiring lives in ``urml_mcp.server``.
7
+
8
+ Design rule: the server is the safety boundary, never the model. It exposes
9
+ validation and execution, and never calls an LLM. The calling agent is already a
10
+ model; it emits the URML, the server checks and runs it. This keeps URML's
11
+ provider-neutrality intact by construction.
12
+ """
13
+
14
+ from __future__ import annotations
15
+
16
+ from urml_mcp.tools import (
17
+ AVAILABLE_PROFILES,
18
+ Pinned,
19
+ PinnedConfigError,
20
+ describe_manifest,
21
+ execute_program,
22
+ get_contract,
23
+ list_profiles,
24
+ load_pinned,
25
+ validate_program,
26
+ )
27
+
28
+ __all__ = [
29
+ "AVAILABLE_PROFILES",
30
+ "Pinned",
31
+ "PinnedConfigError",
32
+ "describe_manifest",
33
+ "execute_program",
34
+ "get_contract",
35
+ "list_profiles",
36
+ "load_pinned",
37
+ "validate_program",
38
+ ]