keyway_list_environments
List available environments in your repository vault to manage secrets and configurations securely.
Instructions
List available environments for the current repository vault.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "keyway_list_environments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/list-environments.ts:11-25 (handler)The handler function for the `keyway_list_environments` tool, which retrieves the repository environments using helper functions.
export async function listEnvironments(): Promise<CallToolResult> { const token = await getToken(); const repository = getRepository(); const environments = await getVaultEnvironments(repository, token); return { content: [ { type: 'text', text: JSON.stringify({ repository, environments, count: environments.length }, null, 2), }, ], }; } - src/index.ts:68-73 (registration)The registration of the `keyway_list_environments` tool in the MCP server.
server.tool( 'keyway_list_environments', 'List available environments for the current repository vault.', {}, async () => listEnvironments() );