publicCodeJan 1, 20260 calls
Bitbucket MCP Template
Curated MCP template for repositories, pull requests, branches, and CI status.
Hosted MCP endpoint
/api/mcp/preset-bitbucketPrivate servers require an Astrail API key in the Authorization header.
MCP client snippets
Claude Desktop config
{
"mcpServers": {
"bitbucket-mcp-template": {
"url": "/api/mcp/preset-bitbucket"
}
}
}cURL initialize
curl -sS -X POST "/api/mcp/preset-bitbucket" \
-H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}'cURL tools/list
curl -sS -X POST "/api/mcp/preset-bitbucket" \
-H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'cURL tools/call
curl -sS -X POST "/api/mcp/preset-bitbucket" \
-H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"bitbucket_list_repositories","arguments":{"workspace":"example"}}}'Runtime behavior
Runtime health
needs_mappingEndpoint health
not_checkedExecution mode
mapping_requiredDeterministic executionNot yet executable
Generated sourceExport only
Endpoint mapRequired
Endpoint mappedNo
Auth-required endpointsNone detected
Browser runtime endpointsNone detected
Last status
not recordedLast execution mode
not recordedLast toolnot recorded
Last latencynot recorded
Upstream statusnot recorded
Trace ID
not recordedError code
noneObservability
structured fallbackRate limit mode
standardMissing auth
auth_requiredMissing mapping
mapping_requiredAstrail does not evaluate generated TypeScript inside Next.js. Hosted calls are routed through stored tool metadata and endpoint maps.
Tools
bitbucket_list_repositoriesList repositories in a Bitbucket workspace.
bitbucket_get_pull_requestFetch pull request metadata and diff links.
bitbucket_list_pipelinesList recent pipeline runs for a repository.
server.ts
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { z } from "zod";
const server = new McpServer({ name: "Bitbucket MCP Template", version: "1.0.0" });
// Curated Astrail template. Add the provider API token and replace the
// placeholder handlers with real fetch calls for: bitbucket_list_repositories, bitbucket_get_pull_request, bitbucket_list_pipelines.
server.tool("template_status", "Confirm this curated MCP template is installed.", z.object({}), async () => ({
content: [{ type: "text", text: "Template installed. Add provider credentials to enable live API calls." }],
}));
const transport = new StdioServerTransport();
await server.connect(transport);