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 — feat: Implement MCP server instruction fetching and integration by seuros · Pull Request #7334 · anomalyco/opencode

Conversation

@seuros

@seuros seuros commented Jan 8, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Now the LLM can see the instructions that that the server emit at initialisation.

The data was where, just not used.

Fixes #7373

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jcdickinson, altendky, JDNdeveloper, nikosml, and Arcadi4 reacted with thumbs up emoji
All reactions
  • 👍 5 reactions
@github-actions

github-actions Bot commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@seuros
seuros force-pushed the instruction branch 2 times, most recently from 67e6dd6 to 1a95b75 Compare January 8, 2026 18:57
@github-actions github-actions Bot added the needs:issue label Jan 8, 2026
@github-actions

github-actions Bot commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@seuros seuros mentioned this pull request Jan 8, 2026
[FEATURE]: MCP Server instructions exposure #7373
Closed
1 task done
@github-actions github-actions Bot removed the needs:issue label Jan 8, 2026
@seuros
seuros force-pushed the instruction branch 4 times, most recently from d2dc000 to de40032 Compare January 12, 2026 18:37
@thdxr
thdxr force-pushed the dev branch from cbab81f to 2d3c7a0 Compare January 30, 2026 04:50
@opencode-agent
opencode-agent Bot force-pushed the dev branch from 00637c0 to 71e0ba2 Compare January 30, 2026 14:32
@thdxr
thdxr force-pushed the dev branch 3 times, most recently from f1ae801 to 08fa7f7 Compare January 30, 2026 14:37
@seuros
seuros force-pushed the instruction branch 3 times, most recently from 1b41755 to fa38aec Compare February 23, 2026 11:15
@jcdickinson

jcdickinson commented Feb 25, 2026

Copy link
Copy Markdown

Confirmed working on my side. Before, After.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@seuros
seuros force-pushed the instruction branch from fa38aec to e9f21ee Compare February 25, 2026 20:19
altendky
altendky reviewed Mar 10, 2026
View reviewed changes

@altendky altendky left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! I just discovered myself that the instructions are not presented to the model. No wonder it was doing silly things. :] Maybe a little activity here will help get some attention and move this along. I had a couple questions as I read through the changes.

I noticed getInstructions() on the SDK client is a synchronous getter (it just reads a field set during initialize). Was there a reason you wrapped it in an async helper with try/catch? Relatedly, create() already runs for all three paths (init, connect(), add()), so I was wondering if reading it there would avoid needing the separate function — and would also pick up instructions on reconnect/add, which I think the current version misses?

On the refresh functions and InstructionsChanged event — are those intended for a follow-up, or is there something I'm not seeing? I couldn't find an MCP protocol notification for instructions changing mid-session (unlike notifications/tools/list_changed for tools), so I wasn't sure what would trigger them.

Thanks for submitting the feature request and providing an implementation here. I'm hoping we get to start using this soon!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@seuros
seuros force-pushed the instruction branch from e9f21ee to a983681 Compare March 10, 2026 14:33
altendky
altendky reviewed Mar 10, 2026
View reviewed changes

@altendky altendky left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! a few more detailed comments here. to be clear, i'm just another contributor looking to get this merged, but after we get done here i'll bring it up in discord. hopefully with two of us involved it can float above the masses. :]

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

nikosml reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread packages/opencode/src/session/system.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/opencode/src/session/system.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/opencode/src/mcp/index.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/opencode/src/mcp/index.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/opencode/src/mcp/index.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/sdk/js/src/v2/gen/types.gen.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@seuros
seuros force-pushed the instruction branch from a983681 to 0775bdb Compare March 10, 2026 20:02
altendky
altendky reviewed Mar 10, 2026
View reviewed changes

@altendky altendky left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

looks good to me. thanks @seuros!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@seuros
seuros force-pushed the instruction branch 2 times, most recently from 65b60a8 to 916962f Compare March 18, 2026 15:26
@opencode-agent
opencode-agent Bot force-pushed the dev branch from 2f2ed11 to 9f201d6 Compare April 16, 2026 21:55
@seuros
seuros force-pushed the instruction branch from 916962f to 5b8a533 Compare April 25, 2026 15:11
@seuros
seuros force-pushed the instruction branch 2 times, most recently from 28eca37 to d8afd7c Compare April 25, 2026 15:29
@Arcadi4

Arcadi4 commented May 18, 2026

Copy link
Copy Markdown
Contributor

Any updates on this PR? I ran into the same issue while developing my own MCP. This really seems like a severe gap that would glitch loads of MCP use. Hope this gets merged soon!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Arcadi4 Arcadi4 mentioned this pull request May 21, 2026
[FEATURE]: Full MCP client capabilities #28567
Closed
1 task done
@nimrodmoshe05-glitch

nimrodmoshe05-glitch commented May 26, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

@thdxr @rekram1-node any chance this is going to be merged soon? it breaks full MCP integration and should be an quick patch
Thanks again for all the hard work you invest and put into the product!! It is amazing!

Arcadi4 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@seuros
seuros force-pushed the instruction branch from d8afd7c to 01b078d Compare May 26, 2026 08:34
@sergiobank

sergiobank commented May 26, 2026

Copy link
Copy Markdown

@altendky

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nimrodmoshe05-glitch

nimrodmoshe05-glitch commented May 27, 2026

Copy link
Copy Markdown

any chance this is being merged?? the current behavior/bug of not doing anything to the mcp server's instructions breaks too many mcps!!

Arcadi4 reacted with confused emoji
All reactions
  • 😕 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@seuros
seuros force-pushed the instruction branch from 01b078d to 8b7356d Compare May 27, 2026 13:12
@seuros

seuros commented May 27, 2026

Copy link
Copy Markdown
Contributor Author

I will keep rebasing this until get merged or they go full server side like openai codex.

Arcadi4 reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@seuros
feat(mcp): include server instructions in system prompt
d9c1fd8
@seuros
seuros force-pushed the instruction branch from 8b7356d to d9c1fd8 Compare June 10, 2026 22:46
buyvtuygJW pushed a commit to buyvtuygJW/Ocode that referenced this pull request Jun 21, 2026
claudedbuildbot
X-patch += MCP server instructions (anomalyco#7334, combined w/ trans…
ffe3a4f
…parency); workflow: drop-optional+retry on build fail
buyvtuygJW pushed a commit to buyvtuygJW/Ocode that referenced this pull request Jun 29, 2026
claudedbuildbot
chore(patches): regenerate against upstream 0a5e617; X transparency-only
20258ce
Core: rebased onto upstream refactored assembly; persona leads + stock identity stripped (gated) via synthesized agent.prompt at request.ts:60; new stripIdentity() helper (beast.txt exempt). Validated via git apply --check and --3way.

X: dropped MCP anomalyco#7334 hunks (upstream merged the same feature natively with permission filtering) -> transparency-only (theme.tsx + app.tsx).
@thdxr

thdxr commented Oct 10, 2026

Copy link
Copy Markdown
Member

This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2.

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thdxr thdxr closed this Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@altendky altendky altendky left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[FEATURE]: MCP Server instructions exposure

Uh oh!

There was an error while loading. Please reload this page.

7 participants

@seuros @jcdickinson @Arcadi4 @nimrodmoshe05-glitch @sergiobank @thdxr @altendky
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.
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.