Environment Variable Specifications
Environment variable specifications define configuration values required by MCP servers and skills.
Overviewโ
Environment variables provide API keys, authentication tokens, and configuration values to agents. Each specification defines the variable's purpose, where to obtain it, and metadata.
Required Fieldsโ
id (string)โ
Unique identifier (UPPER_SNAKE_CASE, e.g., KAGGLE_TOKEN, GITHUB_TOKEN, OPENAI_API_KEY)
Important: Unlike other specs, envvar IDs use UPPER_SNAKE_CASE to match environment variable naming conventions.
name (string)โ
Display name shown in the UI
version (string)โ
Spec version (currently 0.0.1).
description (string)โ
Purpose and usage description
Optional Fieldsโ
registrationUrl (string)โ
URL where users can obtain the variable (e.g., API key registration page)
registrationUrl: https://www.kaggle.com/settings/account
registrationUrl: https://github.com/settings/tokens
registrationUrl: https://platform.openai.com/api-keys
tags (list of strings)โ
Categorization tags
tags:
- authentication
- api-key
- kaggle
- data
icon (string)โ
UI icon identifier
emoji (string)โ
UI emoji identifier
Complete Exampleโ
# Copyright (c) 2025-2026 Datalayer, Inc.
# Distributed under the terms of the Modified BSD License.
id: KAGGLE_TOKEN
version: 0.0.1
name: Kaggle API Token
description: >
API token for accessing Kaggle datasets, competitions, notebooks, and models.
Required for Kaggle MCP server authentication.
registrationUrl: https://www.kaggle.com/settings/account
tags:
- authentication
- api-key
- kaggle
- data
Environment Variable Hierarchyโ
Environment Variable Specification
โโโ Basic Info (id, name, description)
โโโ Registration (registrationUrl)
โโโ Categorization (tags)
โโโ UI (icon, emoji)
Linking to MCP Servers and Skillsโ
Environment variables are referenced by their ID in MCP server and skill specifications:
In MCP Server Specโ
id: kaggle
name: Kaggle MCP Server
# ... other fields ...
envvars:
- KAGGLE_TOKEN:0.0.1
args:
- "--Authorization"
- "Bearer ${KAGGLE_TOKEN}"
In Skill Specโ
id: data-analysis
name: Data Analysis Skill
# ... other fields ...
envvars:
- OPENAI_API_KEY:0.0.1
optional_env_vars:
- PLOT_DPI
- CHART_THEME
Available Environment Variablesโ
The following environment variables are defined in agentspecs/envvars/:
KAGGLE_TOKEN- Kaggle API authenticationGITHUB_TOKEN- GitHub authentication for MCP server and skillsTAVILY_API_KEY- Tavily search and web crawlingALPHAVANTAGE_API_KEY- Alpha Vantage financial dataOPENAI_API_KEY- OpenAI API accessSLACK_BOT_TOKEN- Slack bot authenticationSLACK_TEAM_ID- Slack workspace identifierSLACK_CHANNEL_IDS- Slack channel access listGOOGLE_OAUTH_CLIENT_ID- Google Workspace OAuth client IDGOOGLE_OAUTH_CLIENT_SECRET- Google Workspace OAuth secret
Best Practicesโ
- ID Format: Use UPPER_SNAKE_CASE (
KAGGLE_TOKEN, notkaggle_tokenorKaggleToken) - Naming: Follow standard environment variable conventions
- Description: Explain what the variable is used for and which services require it
- Registration URL: Always provide when applicable to help users obtain the value
- Tags: Include service name, type (api-key, token, secret), and category
- Security: Never include actual values in the specification
- Documentation: Be clear about whether the variable is required or optional
- Scope: Define one variable per specification file
Detailsโ
For additional conventions around references and catalog behavior, see Agentspecs Overview.