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
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | The workspace slug | |
| repo_slug | Yes | The repository slug | |
| page | No | Page number | |
| pagelen | No | Results per page |
Implementation Reference
- src/tools/index.ts:919-922 (handler)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); }
- src/tools/index.ts:45-50 (schema)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'), }),
- src/tools/index.ts:373-386 (registration)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'], }, },