-
Notifications
You must be signed in to change notification settings - Fork 14.7k
opentui: fatal: undefined is not an object (evaluating 'enabledFormatters().length') after adding an MCP #8588
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui
Description
Description
After I added an MCP server to a local project config file /project-root/opencode.json and running /status this error pops up
opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"directus": {
"enabled": true,
"type": "remote",
"url": "https://server.domain/mcp",
"headers": {
"Authorization": "Bearer token"
}
},
},
}
TypeError: undefined is not an object (evaluating 'enabledFormatters().length')
at when (src/cli/cmd/tui/component/dialog-status.tsx:238:34)
at <anonymous> (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:1521:43)
at runComputation (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:742:22)
at updateComputation (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:724:3)
at readSignal (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:660:67)
at runComputation (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:742:22)
at updateComputation (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:724:3)
at createMemo (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:273:10)
at Show (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:1524:46)
at untrack (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:475:12)...
Plugins
None
OpenCode version
1.1.20
Steps to reproduce
- Add an MCP server (example: Directus)
- run /status
Screenshot and/or share link
No response
Operating System
macOS 26.3 Beta (25D5087f)
Terminal
Ghostty 1.2.3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui