Creating a Server Variable
Because HasMCP connects generic Tools (like Github or Postgres) seamlessly into diverse Server pipelines , it utilizes a globalized variable architectural standard natively. A “Server Variable” represents a dynamicENV string or encrypted SECRET securely inherently mapped globally inside your ecosystem.
When you bind a Provider Tool requiring an explicit API Key (e.g. API_GITHUB_COM_PRIVATE_TOKEN) to an MCP Server execution loop, HasMCP inherently parses its internal database for that variable name globally. If it exists iteratively, the manager silently securely injects the value downstream directly perfectly into the local agent execution pipe.
Using HasMCP UI
- Open the global Variables interface natively mapped on the main sidebar menu natively outside the rigid Server loop.
- Click Create Variable.
- Supply the strict string name expected by your underlying integration (e.g.,
MOLTBOOK_COM_BEARERAUTH). - Enter the required Value.
- Select the Type (
ENVfor plaintext,Secretfor irreversible cryptography storage natively). - Click Save.
Using REST API
For pipeline automations configuring credentials dynamically natively upon cluster boot cleanly.The API Endpoint
POST /variables
Because HasMCP utilizes globalized mappings , you do not POST environmental overrides specifically uniquely to independent Server hashes intuitively.
201 Created returning the Variable definition securely masking the explicit string return logically.