Skip to main content
Glama
Lexmata

Bitbucket Cloud MCP Server

by Lexmata

list_repository_forks

Retrieve all forks of a Bitbucket Cloud repository to track derivative projects and analyze code distribution across workspaces.

Instructions

List all forks of a repository.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceYesThe workspace slug
repo_slugYesThe repository slug
pageNoPage number
pagelenNoResults per page

Implementation Reference

  • Handler function in ToolHandler.handleTool switch statement that parses arguments with the tool schema and delegates to RepositoriesAPI.listForks to retrieve the list of repository forks.
    case 'list_repository_forks': { const params = toolSchemas.list_repository_forks.parse(args); return this.repos.listForks(params); }
  • Zod input schema definition for the list_repository_forks tool parameters.
    list_repository_forks: z.object({ workspace: z.string().describe('The workspace slug'), repo_slug: z.string().describe('The repository slug'), page: z.number().optional().describe('Page number'), pagelen: z.number().optional().describe('Results per page'), }),
  • MCP tool registration in toolDefinitions array, specifying name, description, and input schema.
    { name: 'list_repository_forks', description: 'List all forks of a repository.', inputSchema: { type: 'object' as const, properties: { workspace: { type: 'string', description: 'The workspace slug' }, repo_slug: { type: 'string', description: 'The repository slug' }, page: { type: 'number', description: 'Page number' }, pagelen: { type: 'number', description: 'Results per page' }, }, required: ['workspace', 'repo_slug'], }, },

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

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