feat(simulator): streamable-http MCP servers and workspace-file reachability for container agents - #977
Merged
Merged
Conversation
…ability for container agents
An MCP server may be a remote {name, url} endpoint on both container
runtimes: OpenClaw renders its native streamable-http transport and
NanoClaw passes the definition through its application config. Remote
URLs can carry per-agent capability tokens, so the shared sanitized
configuration digests them by origin only, records the URL as redacted,
and refuses unparseable URLs at definition time.
OpenClaw definitions now also refuse workspace files that provably can
never reach the model (outside the context-injection set while the deny
list is the wildcard), warn at acquisition when such files are merely
tool-reachable, and pin the injection set behind a drift canary that
reads the installed package so a version bump that changes the set
breaks loudly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
{name, url}endpoint alongside the stdio shape: OpenClaw renders its nativestreamable-httptransport; NanoClaw passes it through its application config.AgentRuntimeDefinitionError— no new failure types — and warn at acquisition when such files are merely tool-reachable.Tests
workspace.test.ts: union snapshot round-trip, url redaction, origin-only digests, unparseable-url refusal.openclaw/configuration.test.ts: stdio/streamable-http/omitted render.openclaw/context-files.test.ts: guard refuse/warn/accept + the drift canary.nanoclaw/runtime.test.ts: url passthrough into the application config; projection never carries the URL./simplify applied (4-lens review): digest↔redaction collapsed into one producer, nanoclaw re-copy branch deleted, guard split into pure query + explicit assert, canary unions across all matching dist chunks.
🤖 Generated with Claude Code