Skip to main content
Glama
jlromano

Bitbucket MCP Server

by jlromano

list_workspaces

Retrieve all accessible Bitbucket workspaces to organize and manage repositories effectively.

Instructions

List all available Bitbucket workspaces

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The implementation of the logic for listing workspaces.
    async listWorkspaces(): Promise<any[]> {
      const response = await this.api.get('/workspaces');
      return response.data.values;
    }
  • src/index.ts:45-52 (registration)
    Tool definition registration for list_workspaces.
    {
      name: 'list_workspaces',
      description: 'List all available Bitbucket workspaces',
      inputSchema: {
        type: 'object',
        properties: {},
      },
    },
  • The request handler case that calls the BitbucketClient to list workspaces.
    case 'list_workspaces': {
      const workspaces = await client.listWorkspaces();
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(workspaces, 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