Skip to main content
Glama

init

Initialize OSS Autopilot by setting up your GitHub username to manage open source contributions across repositories.

Instructions

Initialize OSS Autopilot with a GitHub username. Creates the state file and sets up initial configuration.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usernameYesYour GitHub username

Implementation Reference

  • The runInit handler function which updates the githubUsername configuration using the StateManager.
    export async function runInit(options: { username: string }): Promise<InitOutput> {
      validateGitHubUsername(options.username);
      const stateManager = getStateManager();
    
      // Set username in config
      stateManager.updateConfig({ githubUsername: options.username });
    
      return {
        username: options.username,
        message: 'Username saved. Run `daily` to fetch your open PRs from GitHub.',
      };
    }
  • Registration of the 'init' tool in the MCP server, using the runInit handler.
    // 12. init — Initialize with GitHub username
    server.registerTool(
      'init',
      {
        description:
          'Initialize OSS Autopilot with a GitHub username. Creates the state file and sets up initial configuration.',
        inputSchema: {
          username: z.string().describe('Your GitHub username'),
        },
        annotations: { readOnlyHint: false, destructiveHint: false },
      },
      wrapTool(runInit),
    );
  • Type definition for the output of the init command.
    export interface InitOutput {
      username: string;
      message: string;
    }

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