-
Notifications
You must be signed in to change notification settings - Fork 36
Closed
Description
Hi, thank you for the great package,
I would understand how to get environment variables passed by an MCP client using Stdio transport. How the server makes them available in the elements class or methods declared as tools?
Do you have a code example on how to access env variables?
This should be a valid client configuration:
{
"mcpServers": {
"php-calculator": {
"command": "php",
"args": ["/absolute/path/to/your/mcp-server.php"],
"env": {"API_KEY": "xxxx"}
}
}
}Metadata
Metadata
Assignees
Labels
No labels