Skip to main content
Glama
flipt-io

Flipt MCP Server

Official
by flipt-io

list_namespaces

Retrieve all available namespaces in Flipt MCP Server to manage and organize feature flags, segments, and evaluations efficiently for AI-driven interactions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool registration and handler implementation for 'list_namespaces'. Fetches namespaces using fliptClient and returns them as formatted JSON text content.
    server.tool('list_namespaces', {}, async args => { const namespaces = await fliptClient.listNamespaces(); return { content: [ { type: 'text', text: JSON.stringify(namespaces, null, 2), }, ], }; });
  • Helper service method in FliptClient that invokes the generated NamespacesServiceApi.listNamespaces() to retrieve the list of namespaces, handling response and errors.
    async listNamespaces() { try { const response = await this.namespacesApi.listNamespaces(); // The response is a NamespaceList object, not a response with a data property if (response && response.namespaces) { return response.namespaces; } else { console.error('Unexpected response structure:', response); return []; } } catch (error) { console.error('Error getting namespaces:', error); return []; } }

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/flipt-io/mcp-server-flipt'

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