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
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | The workspace slug | |
| repo_slug | Yes | The repository slug |
Implementation Reference
- src/BitbucketClient.ts:114-117 (handler)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; } - src/index.ts:66-83 (schema)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), }, ], }; }