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.
Input Schema
TableJSON 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() );