GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FEATURE]: Support _meta when calling downstream MCP tools · Issue #17084 · anomalyco/opencode

[FEATURE]: Support _meta when calling downstream MCP tools #17084

New issue
Copy link
New issue
Copy link
Closed as not planned
#38579
moghtader/opencode
#1
moghtader/opencode#1
Closed as not planned
[FEATURE]: Support _meta when calling downstream MCP tools#17084
#38579
moghtader/opencode
#1
Copy link
Assignees
rekram1-node

Description

@Rajmehta123
Rajmehta123
opened on Mar 11, 2026
Issue body actions

When opencode receives a tools/call request that contains _meta, that metadata does not appear to be forwarded when opencode invokes downstream MCP tools.

In a typical setup:

UI → opencode → downstream MCP server

the UI may attach runtime metadata in _meta (for example document IDs, container IDs, workspace context, or tracing information). This metadata is intended to travel with the request but remain hidden from the LLM.

Currently, when opencode makes the downstream tools/call, the _meta field is dropped. As a result, downstream MCP servers lose request-scoped context.

Example incoming request:

{
  "method": "tools/call",
  "params": {
    "name": "docuai_agent_tool",
    "arguments": {
      "user_request": {
        "user_input": "Translate this document to French"
      }
    },
    "_meta": {
      "com.example/documentId": "doc_123",
      "com.example/containerId": "cont_456"
    }
  }
}

Expected downstream request:

{
  "method": "tools/call",
  "params": {
    "name": "translate_document_preserving_structure",
    "arguments": {
      "destinationLanguageThreeLetterCode": "fra"
    },
    "_meta": {
      "com.example/documentId": "doc_123",
      "com.example/containerId": "cont_456"
    }
  }
}

Forwarding _meta would allow downstream MCP tools to access request context (e.g., document IDs or workspace metadata) without exposing those values to the model.

It would be helpful if opencode preserved _meta from incoming requests and forwarded it to downstream tools/call requests when present.

Reacted by Micah Hausler

Activity

  1. Rajmehta123
    added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Mar 11, 2026
  2. github-actions
    assigned
    rekram1-node
    on Mar 11, 2026
  3. github-actions
    added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 11, 2026
  4. github-actions commented on Mar 11, 2026

    @github-actions
    github-actionsBot
    on Mar 11, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • The description appears to be AI-generated (extensive structured prose, tables, JSON examples, and formatted sections are not acceptable per our guidelines). Please replace it with a concise, human-written description of the problem you're experiencing.

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


    This issue might be a duplicate of existing issues. Please check:

    • [FEATURE]: Forward request-scoped MCP _meta from incoming opencode requests to downstream MCP tool calls #16828: Exact duplicate — same title, same author, same content (already closed)

    If you believe this was flagged incorrectly, please let a maintainer know.

  5. github-actions
    added
    needs:complianceThis means the issue will auto-close after 2 hours.
    on Mar 11, 2026
  6. Rajmehta123
    changed the title [-][FEATURE]: Forward request-scoped MCP _meta from incoming opencode requests to downstream MCP tool calls[/-] [+][FEATURE]: Support _meta when calling downstream MCP tools[/+] on Mar 11, 2026
  7. github-actions
    removed
    needs:complianceThis means the issue will auto-close after 2 hours.
    on Mar 11, 2026
  8. github-actions commented on Mar 11, 2026

    @github-actions
    github-actionsBot
    on Mar 11, 2026 – with GitHub Actions
    Contributor
    More actions

    Thank you for updating the issue — the description is clear and well-written.

    However, the issue still doesn't fully match our Feature Request template. One required field is missing:

    • Verification checkbox: The template requires confirming "I have verified this feature I'm about to request hasn't been suggested before." Please edit the issue and re-apply the feature request template so this checkbox is included.

    You can do this by editing the issue and selecting the Feature Request template, or by adding the checkbox manually:

    - [ ] I have verified this feature I'm about to request hasn't been suggested before.
    

    Please update the issue to address this.

  9. thdxr
    removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  10. github-actions commented on Jul 3, 2026

    @github-actions
    github-actionsBot
    on Jul 3, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  11. github-actions
    closed this as not plannedon Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.