list_workspaces
Retrieve all accessible Bitbucket workspaces to organize and manage repositories effectively.
Instructions
List all available Bitbucket workspaces
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/BitbucketClient.ts:99-102 (handler)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: {}, }, }, - src/index.ts:400-410 (handler)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), }, ], }; }