Skip to main content
Glama
cuongtl1992

Unleash MCP (Feature Toggle)

getProjects

Retrieve a comprehensive list of all projects integrated with the Unleash Feature Toggle system for efficient project management and oversight.

Instructions

Get a list of all projects

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that implements the core logic of the 'getProjects' tool. It calls getAllProjects to fetch projects and formats the response as MCP content or an error.
    async function handleGetProjects() { try { const projects = await getAllProjects(); return { content: [ { type: 'text', text: JSON.stringify(projects, null, 2), }, ], }; } catch (error: any) { return { content: [ { type: 'text', text: JSON.stringify( { success: false, error: error.message, }, null, 2 ), }, ], isError: true, }; } }
  • The tool definition object providing the name, description, and reference to the handler function. No input parameters schema is defined.
    export const getProjects = { name: 'getProjects', description: 'Get a list of all projects', handler: handleGetProjects, };
  • src/server.ts:171-175 (registration)
    Registration of the 'getProjects' tool on the MCP server instance using server.tool().
    server.tool( getProjects.name, getProjects.description, getProjects.handler as any );

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/cuongtl1992/unleash-mcp'

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