Skip to main content
Glama

get_project

Retrieve detailed project information using a specified project ID to facilitate API management and integration within the MCP server environment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYesProject ID

Implementation Reference

  • MCP tool registration and handler for 'get_project'. Defines input schema with projectId, fetches project from eolinkService, and returns JSON-formatted response.
    this.server.tool( "get_project", { projectId: z.string().describe("Project ID") }, async ({ projectId }) => { const project = await eolinkService.getProject(projectId); return { content: [{ type: "text", text: JSON.stringify({ project }, null, 2) }] }; } );
  • Core implementation of project retrieval via Eolink API using axios GET request to /projects/{projectId}.
    async getProject(projectId: string): Promise<Project | null> { try { const response = await axios.get(`${this.baseUrl}/projects/${projectId}`, { headers: this.getHeaders(), }); return response.data.data || null; } catch (error) { console.error(`Error fetching project ${projectId}:`, error); return null; } }
  • TypeScript interface defining the Project type returned by the get_project tool.
    export interface Project { id: string; name: string; description?: string; createdAt: string; updatedAt: string; }

Other Tools

Related Tools

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/scarqin/mcp-apikit'

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