[PR #311] [CLOSED] feat: add http headers to remote mcp calls #9582

Closed
opened 2026-02-16 18:13:48 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/311
Author: @moutansos
Created: 6/22/2025
Status: Closed

Base: devHead: feat-http-headers-for-mcp-servers


📝 Commits (10+)

  • 51d87c4 wip: currently testing this to see if it works
  • 08c8978 wip: fixed some formatting in config.ts
  • 971c7ca fix(tui): theme dialog visuals
  • 520fd6e fix(tui): cleanup modal visuals
  • 551896b fix: invisible html tags and compact long delay (#304)
  • fa2e2a6 fix(tui): cleanup help dialog
  • a63e80b fix(tui): mouse wheel escape codes leaking into input
  • 048ef54 combine stdout and stderr in bash tool output (#300)
  • ec6782e fix: resolve test failures by adding missing zod-openapi import (#301)
  • 3a8ed78 ignore: fix typos and formatting (#294)

📊 Changes

5 files changed (+104 additions, -4 deletions)

View changed files

📝 packages/opencode/config.schema.json (+7 -0)
📝 packages/opencode/src/config/config.ts (+4 -0)
📝 packages/opencode/src/mcp/index.ts (+11 -3)
packages/opencode/src/util/env-substitution.ts (+76 -0)
📝 packages/web/src/content/docs/docs/mcp-servers.mdx (+6 -1)

📄 Description

Implemented passthrough of http headers from config to the AI SDK calls for MCP servers, and added environment variable replacement for URLs and headers.

Happy to make additional changes/refactors or remove the env substitution if this isn't how you guys would have implemented this!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/311 **Author:** [@moutansos](https://github.com/moutansos) **Created:** 6/22/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feat-http-headers-for-mcp-servers` --- ### 📝 Commits (10+) - [`51d87c4`](https://github.com/anomalyco/opencode/commit/51d87c414426251b13f4513e95019a1335cd42f4) wip: currently testing this to see if it works - [`08c8978`](https://github.com/anomalyco/opencode/commit/08c8978e5774c118150180a098c74f01d9313cd8) wip: fixed some formatting in config.ts - [`971c7ca`](https://github.com/anomalyco/opencode/commit/971c7ca2bea2691d322ae5793fca3b9a58a9e206) fix(tui): theme dialog visuals - [`520fd6e`](https://github.com/anomalyco/opencode/commit/520fd6e095d398969d6c8d414892a789ae8abc1b) fix(tui): cleanup modal visuals - [`551896b`](https://github.com/anomalyco/opencode/commit/551896b82b7d2256c0befb0fbf648ba1765c3265) fix: invisible html tags and compact long delay (#304) - [`fa2e2a6`](https://github.com/anomalyco/opencode/commit/fa2e2a63d5627a39ca20d817ae44302765be5ea7) fix(tui): cleanup help dialog - [`a63e80b`](https://github.com/anomalyco/opencode/commit/a63e80bf4dc3c86b2f2df378803ba8e7f34f8caf) fix(tui): mouse wheel escape codes leaking into input - [`048ef54`](https://github.com/anomalyco/opencode/commit/048ef544ef572d1eea2efafd17f0c567b79a58c0) combine stdout and stderr in bash tool output (#300) - [`ec6782e`](https://github.com/anomalyco/opencode/commit/ec6782e2ef7cee80e29ae8ea32f14972fdd7d00d) fix: resolve test failures by adding missing zod-openapi import (#301) - [`3a8ed78`](https://github.com/anomalyco/opencode/commit/3a8ed782d343f58b1d656bba10351802c033e529) ignore: fix typos and formatting (#294) ### 📊 Changes **5 files changed** (+104 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/config.schema.json` (+7 -0) 📝 `packages/opencode/src/config/config.ts` (+4 -0) 📝 `packages/opencode/src/mcp/index.ts` (+11 -3) ➕ `packages/opencode/src/util/env-substitution.ts` (+76 -0) 📝 `packages/web/src/content/docs/docs/mcp-servers.mdx` (+6 -1) </details> ### 📄 Description Implemented passthrough of http headers from config to the AI SDK calls for MCP servers, and added environment variable replacement for URLs and headers. Happy to make additional changes/refactors or remove the env substitution if this isn't how you guys would have implemented this! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:13:48 -05:00
yindo closed this issue 2026-02-16 18:13:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9582