opencode icon indicating copy to clipboard operation
opencode copied to clipboard

How to pass project name to MCP server initialization?

Open klonuo opened this issue 2 days ago • 1 comments

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?

klonuo avatar Jan 12 '26 22:01 klonuo