Skip to main content
Glama
keywaysh

Keyway MCP Server

by keywaysh

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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()
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/keywaysh/keyway-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server