Skip to main content
Glama

status

Check current pull request tracking status to monitor open PRs, shelved PRs, and dismissed issues for open source project management.

Instructions

Show current PR tracking status including open PRs, shelved PRs, and dismissed issues.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
offlineNoIf true, show only locally cached state without fetching from GitHub

Implementation Reference

  • The handler function for the "status" tool, which reads contribution statistics from the local state.
    export async function runStatus(options: StatusOptions): Promise<StatusOutput> {
      const stateManager = getStateManager();
      const stats = stateManager.getStats();
      const state = stateManager.getState();
    
      // Status always reads from local state (no API calls), so offline mode
      // simply adds metadata about cache freshness.
      const lastUpdated = state.lastDigestAt || state.lastRunAt;
    
      // Extract only the stats we want to output (exclude totalTracked)
      const { totalTracked: _totalTracked, ...outputStats } = stats as typeof stats & { totalTracked?: number };
      const output: StatusOutput = {
        stats: outputStats,
        lastRunAt: state.lastRunAt,
      };
      if (options.offline) {
        output.offline = true;
        output.lastUpdated = lastUpdated;
      }
    
      return output;
    }
  • Registration of the "status" tool in the MCP server.
    // 2. status — Show tracking status
    server.registerTool(
      'status',
      {
        description: 'Show current PR tracking status including open PRs, shelved PRs, and dismissed issues.',
        inputSchema: {
          offline: z
            .boolean()
            .optional()
            .describe('If true, show only locally cached state without fetching from GitHub'),
        },
        annotations: { readOnlyHint: true },
      },
      wrapTool(runStatus),
    );

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/costajohnt/oss-autopilot'

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