Skip to main content
Glama
jlromano

Bitbucket MCP Server

by jlromano

get_repository

Retrieve detailed information about a specific Bitbucket repository by providing its workspace and repository slug identifiers.

Instructions

Get details of a specific repository

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceYesThe workspace slug
repo_slugYesThe repository slug

Implementation Reference

  • The handler method that calls the Bitbucket API to fetch repository details.
    async getRepository(workspace: string, repoSlug: string): Promise<Repository> {
      const response = await this.api.get(`/repositories/${workspace}/${repoSlug}`);
      return response.data;
    }
  • Tool definition and input schema registration for get_repository.
    {
      name: 'get_repository',
      description: 'Get details of a specific repository',
      inputSchema: {
        type: 'object',
        properties: {
          workspace: {
            type: 'string',
            description: 'The workspace slug',
          },
          repo_slug: {
            type: 'string',
            description: 'The repository slug',
          },
        },
        required: ['workspace', 'repo_slug'],
      },
    },
  • src/index.ts:425-436 (registration)
    Registration of the tool logic within the main server request handler loop.
    case 'get_repository': {
      const { workspace, repo_slug } = args as { workspace: string; repo_slug: string };
      const repository = await client.getRepository(workspace, repo_slug);
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(repository, null, 2),
          },
        ],
      };
    }

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/jlromano/bitbucket-mcp'

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