Skip to main content
Glama

bitbucket_code_search

Search code across Bitbucket repositories using Lucene-style queries to find specific functions, files, or patterns within accessible projects.

Instructions

Search code across all Bitbucket repositories using the search API.

Uses Bitbucket's built-in code search (powered by Elasticsearch). Searches across all repositories the authenticated user has access to. Returns matching files with surrounding code context and line numbers.

Requires the Bitbucket Search feature to be enabled on the Data Center instance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesLucene-style search query. Supports field filters and boolean operators: - File filters: ext:java, lang:python, path:src/main - Repository filters: repo:my-repo, project:PROJECT_KEY - Boolean operators: AND, OR, NOT (uppercase), use () for grouping - Examples: 'CompanyInfoUpdater', 'function ext:java', 'config AND (yaml OR yml)', 'className NOT test project:MYPROJ'
limitNoNumber of results per page (1-100)
startNoStarting index for pagination (use nextStart from previous results)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/christopherekfeldt/mcp-bitbucket-dc'

If you have feedback or need assistance with the MCP directory API, please join our Discord server