Update README and CLAUDE files
This commit is contained in:
@@ -25,7 +25,7 @@ The server is a 3-layer pipeline: **MCP protocol** -> **Router** -> **Bitbucket
|
||||
|
||||
- `src/index.ts` — MCP server setup. Registers tool schemas (inputSchema definitions) and delegates `CallToolRequest` to the router. This is where new tools must be declared.
|
||||
- `src/router.ts` — `BitbucketRouter` maps tool names to client methods. Handles parameter extraction (supports both `pullRequestId` and `pr_id` forms) and wraps results in `ToolResult { success, data?, error? }`.
|
||||
- `src/bitbucket-client.ts` — Axios-based HTTP client against `api.bitbucket.org/2.0`. Uses Basic Auth (email + app password). Has async initialization with a polling `ensureInitialized()` guard on every public method.
|
||||
- `src/bitbucket-client.ts` — Axios-based HTTP client against `api.bitbucket.org/2.0`. Uses Basic Auth (email + API token). Has async initialization with a polling `ensureInitialized()` guard on every public method.
|
||||
- `src/config.ts` — Credential loading with priority: env vars (`BITBUCKET_MCP_EMAIL`, `BITBUCKET_MCP_TOKEN`) > `.env` file > interactive prompt. Also loads `DEFAULT_WORKSPACE` and `DEFAULT_REPO` for optional parameter defaults.
|
||||
|
||||
## Adding a New Tool
|
||||
@@ -40,7 +40,7 @@ The server is a 3-layer pipeline: **MCP protocol** -> **Router** -> **Bitbucket
|
||||
| Variable | Purpose |
|
||||
|----------|---------|
|
||||
| `BITBUCKET_MCP_EMAIL` | Bitbucket account email (Basic Auth username) |
|
||||
| `BITBUCKET_MCP_TOKEN` | Bitbucket app password (Basic Auth password) |
|
||||
| `BITBUCKET_MCP_TOKEN` | Bitbucket API token (Basic Auth password) |
|
||||
| `DEFAULT_WORKSPACE` | Optional default workspace slug |
|
||||
| `DEFAULT_REPO` | Optional default repository slug |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user