opencode
opencode copied to clipboard
How to pass project name to MCP server initialization?
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?