How to pass project name to MCP server initialization? #5064

Open
opened 2026-02-16 17:48:17 -05:00 by yindo · 0 comments
Owner

Originally created by @klonuo on GitHub (Jan 12, 2026).

Originally assigned to: @jayair on GitHub.

Question

Hi,

in https://opencode.ai/docs/config/#variables seems just env vars or file content can be used as substitutes in config file. Env var for project name doesn't seem intuitive and I must remember to run it all the time or use wrapper script to start opencode. File content looks interesting but I would need to know absolute path to the project or for relative path create per project opencode config.

Is there something simpler maybe?

Originally created by @klonuo on GitHub (Jan 12, 2026). Originally assigned to: @jayair on GitHub. ### Question Hi, in https://opencode.ai/docs/config/#variables seems just env vars or file content can be used as substitutes in config file. Env var for project name doesn't seem intuitive and I must remember to run it all the time or use wrapper script to start opencode. File content looks interesting but I would need to know absolute path to the project or for relative path create per project opencode config. Is there something simpler maybe?
yindo added the docs label 2026-02-16 17:48:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5064