Skip to content

bug(openclaw_agent): consume resources-server MCP metadata from seed_session #2670

Open

Description

@cwing-nvidia

Summary

Gym resources servers can return a per-rollout MCP endpoint and signed session token from /seed_session, but responses_api_agents/openclaw_agent currently retains only the response cookies. The standalone OpenClaw harness therefore cannot call Gym resources-server tools even though upstream OpenClaw supports MCP servers.

This is the OpenClaw counterpart to the Hermes integration tracked in #2667.

Current behavior

OpenClawAgent.run() calls /seed_session to establish rollout state, preserves its cookies for /verify, and then runs the OpenClaw CLI. It does not read NEMO_GYM_MCP_METADATA_KEY from the seed response or add that server to the rollout's OpenClaw configuration.

The harness documentation consequently describes the resources server as verifier-only while OpenClaw uses its own internal tools.

Expected behavior

When /seed_session returns MCP metadata, the OpenClaw harness should:

  1. Parse the server name, URL path, transport, and signed headers.
  2. Resolve the resources-server base URL.
  3. Add a rollout-scoped MCP server to the temporary OpenClaw configuration.
  4. Keep the token isolated to that rollout under concurrent execution.
  5. Preserve the session cookie for /verify.
  6. Preserve today's verifier-only behavior when no MCP metadata is returned.

Acceptance criteria

  • OpenClaw can discover and call tools from a Gym resources server with expose_tools_over_mcp: true.
  • Every rollout uses only its own signed MCP token and temporary configuration.
  • Missing MCP metadata remains backward compatible.
  • Tests cover URL/header propagation, cookie propagation, concurrent rollout isolation, and temporary-config cleanup.
  • Documentation distinguishes OpenClaw's built-in tools from dynamically attached Gym resources-server tools.

Canonicalizing OpenClaw's <server>__<tool> trajectory aliases is tracked in #2668. Running the complete OpenClaw runtime inside a Gym SandboxProvider is a separate capability tracked in #2669.

Activity

  1. self-assigned this
    on Aug 25, 2026
  2. moved this from Dev WIP to Review Todo in NeMo Gym 0.6.0 - Sept 2on Aug 25, 2026
  3. added theissue type on Aug 31, 2026
  4. changed the title [-]feat(openclaw_agent): consume resources-server MCP metadata from seed_session[/-] [+]bug(openclaw_agent): consume resources-server MCP metadata from seed_session[/+] on Aug 31, 2026
  5. removed their assignment
    on Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions