Skip to main content
Glama

get_project

Retrieve detailed information about a specific Zephyr project using its project ID or key to access comprehensive test management data.

Instructions

Get detailed information about a specific Zephyr project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYesProject ID or key to retrieve

Implementation Reference

  • The handler function for the 'get_project' tool. It extracts the projectId from arguments, fetches the project details using ZephyrClient.getProject, formats the response as JSON text, and handles errors appropriately.
    async function getProject(args) {
      try {
        const { projectId } = args;
        if (!projectId) {
          throw new Error('projectId is required');
        }
    
        const project = await client.getProject(projectId);
    
        return {
          content: [
            {
              type: 'text',
              text: JSON.stringify(project, null, 2)
            }
          ]
        };
      } catch (error) {
        return {
          content: [
            {
              type: 'text',
              text: formatError(error, `fetching project ${args.projectId}`)
            }
          ],
          isError: true
        };
      }
    }
  • Registration of the 'get_project' tool within the projectTools array export. Specifies name, description, input schema, and references the handler function.
    {
      name: 'get_project',
      description: 'Get detailed information about a specific Zephyr project',
      inputSchema: {
        type: 'object',
        properties: {
          projectId: {
            type: 'string',
            description: 'Project ID or key to retrieve',
            pattern: '^[A-Z][A-Z_0-9]+$|^\\d+$'
          }
        },
        required: ['projectId']
      },
      handler: getProject
    }
  • Input schema definition for the 'get_project' tool, validating the required projectId parameter with regex pattern for project keys or numeric IDs.
    inputSchema: {
      type: 'object',
      properties: {
        projectId: {
          type: 'string',
          description: 'Project ID or key to retrieve',
          pattern: '^[A-Z][A-Z_0-9]+$|^\\d+$'
        }
      },
      required: ['projectId']
    },
  • src/index.js:30-37 (registration)
    Main registration in src/index.js where projectTools (including get_project) are spread into the allTools array used by the MCP server for tool handling.
    const allTools = [
      ...projectTools,
      ...folderTools,
      ...testCaseTools,
      ...testStepsTools,
      ...testScriptTools,
      ...referenceDataTools
    ];

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/donyfs/mcp-zephyr'

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