Skip to content

Conversation

@mattgillard
Copy link
Contributor

This issue was blocking my work so contributing a fix.

I needed to set this slightly higher timeout so opencode registers the atlassian tools. Otherwise i get this error in the logs:

INFO  2025-10-30T04:43:45 +16ms service=mcp name=atlassian type=local found 
WARN  2025-10-30T04:44:11 +25749ms service=mcp name=atlassian mcp client verification failed, dropping client

With this slightly higher timeout its fine - there is still a weird delay but I have not debugged that yet:

INFO  2025-10-30T04:38:20 +16ms service=mcp name=atlassian type=local found
INFO  2025-10-30T04:38:51 +31600ms service=bus type=message.updated publishing

My MCP config:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "atlassian": {
      "type": "local",
      "command": ["npx", "-y", "mcp-remote", "https://mcp.atlassian.com/v1/sse", "--transport", "sse-only", "--debug"],
      "enabled": true,
    }
  },
}

@rekram1-node
Copy link
Collaborator

@mattgillard can we instead make timeout an optional param for an mcp server in the config? We like to error earlier if possible and 10 seconds is a long time

@mattgillard
Copy link
Contributor Author

mattgillard commented Oct 30, 2025

@mattgillard can we instead make timeout an optional param for an mcp server in the config? We like to error earlier if possible and 10 seconds is a long time

sure i can have a go at that

@mattgillard
Copy link
Contributor Author

@mattgillard can we instead make timeout an optional param for an mcp server in the config? We like to error earlier if possible and 10 seconds is a long time

this is done and tested

@rekram1-node
Copy link
Collaborator

Thanks!

@rekram1-node
Copy link
Collaborator

/oc in this PR reword all "Timeout in milliseconds for tools....." to say "Timeout in ms for fetching tools from the MCP server."

@opencode-agent
Copy link
Contributor

opencode-agent bot commented Oct 30, 2025

Perfect! I've successfully updated all 4 occurrences of the timeout description text:

  1. packages/opencode/src/config/config.ts:289 - McpLocal timeout description
  2. packages/opencode/src/config/config.ts:351 - McpRemote timeout description
  3. packages/web/src/content/docs/mcp-servers.mdx:115 - Local MCP timeout table entry
  4. packages/web/src/content/docs/mcp-servers.mdx:149 - Remote MCP timeout table entry

All instances now say "Timeout in ms for fetching tools from the MCP server." instead of "Timeout in milliseconds for tools verification." as requested.

New%20session%20-%202025-10-30T06%3A21%3A15.580Z
opencode session  |  github run

Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
@rekram1-node rekram1-node changed the title updated mcp tools timeout so it works with slower responding servers add optional timeout field to mcp config to allow users to use responding servers Oct 30, 2025
@rekram1-node rekram1-node merged commit 3ae75d7 into sst:dev Oct 30, 2025
3 checks passed
@rekram1-node
Copy link
Collaborator

Thanks Matt!

groeimetai pushed a commit to groeimetai/snowcode that referenced this pull request Oct 31, 2025
…ding servers (sst#3558)

Co-authored-by: Matt Gillard <matt-github@gillard.biz>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
groeimetai added a commit to groeimetai/snowcode that referenced this pull request Oct 31, 2025
🔥 CRITICAL BUGFIXES:
- Fix hanging permission prompts in headless mode (sst#3522)
- Add doom loop detection (sst#3445)
- Fix MCP metadata preservation (sst#3573)
- Fix agent model selection priority (sst#3572)
- Fix TUI error display
- Fix parcel watcher issue (sst#3544)

🚀 NEW FEATURES:
- Add MCP server timeout configuration (sst#3558)
- Add positional arguments for slash commands (sst#3456)
- Add session ID to agent context metadata (sst#3559)
- Add session.started event hook (sst#3413)
- Add SNOWCODE_CONFIG_DIR support (rebranded from OPENCODE_CONFIG_DIR)

🔧 IMPROVEMENTS:
- Add Zod validation for tool inputs
- Fix MCP status() overwrite issue
- Add bash timeout validation
- Use stdout.write instead of console.log (sst#3508)
- Fix SSE buffer overflow (sst#3531)
- Make build script cross-platform (sst#3430)

🎨 UX ENHANCEMENTS:
- Fix editor paste functionality (sst#3489)
- Better frontmatter error messages
- Configurable provider timeout (sst#3443)

📝 CHANGES:
- 32 files changed, +1,668/-874 lines
- Merged from OpenCode production branch (week 44)
- Bun version check relaxed to 1.3.x

Co-authored-by: OpenCode Contributors
lorenzorasmussen pushed a commit to lorenzorasmussen/opencode that referenced this pull request Nov 2, 2025
…ding servers (sst#3558)

Co-authored-by: Matt Gillard <matt-github@gillard.biz>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants