Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Stash

БесплатноНе проверен

Enables interaction with Bitbucket Server/Data Center (Stash) for project and repository discovery, pull request management, code review, and code search.

GitHubEmbed

Описание

Enables interaction with Bitbucket Server/Data Center (Stash) for project and repository discovery, pull request management, code review, and code search.

README

Professional MCP (Model Context Protocol) server for Bitbucket Server/Data Center (formerly Stash). It provides high-signal tools for project discovery, repository browsing, pull request workflows, and code search.

CI License

Features

  • Project and repository discovery
  • Pull request lifecycle management (create, review, merge, decline)
  • Commenting and inline review notes
  • Diff viewing with safe truncation for large files
  • Code search (when enabled on the server)
  • Read-only mode to prevent write operations

Requirements

  • Node.js 18+
  • Bitbucket Server/Data Center (Stash) REST API access

Install

npm install
npm run build

Or use the helper script:

./scripts/install.sh

Configuration

Add to ~/.claude/user-mcps.json:

{
  "mcpServers": {
    "stash": {
      "command": "node",
      "args": ["/absolute/path/to/stash-mcp/dist/index.js"],
      "env": {
        "BITBUCKET_URL": "https://stash.example.com",
        "BITBUCKET_TOKEN": "your-access-token",
        "BITBUCKET_DEFAULT_PROJECT": "PROJ"
      }
    }
  }
}

Environment Variables

  • BITBUCKET_URL (required): Base URL of your Bitbucket Server instance.
  • BITBUCKET_TOKEN: Personal access token (recommended).
  • BITBUCKET_USERNAME / BITBUCKET_PASSWORD: Basic auth alternative.
  • BITBUCKET_DEFAULT_PROJECT: Default project key when project is omitted.
  • BITBUCKET_DIFF_MAX_LINES_PER_FILE: Diff truncation limit per file.
  • BITBUCKET_READ_ONLY: Set to true to disable write operations.

Dependencies

  • Hermes — Authentication broker. Manages OAuth2/SSO token acquisition, refresh, and serving for this MCP server.
  • ToolHive — Container runtime. Hosts this server as a Docker container with streamable HTTP transport.
  • MCP Gateway — Aggregation layer. Provides unified tool access across all MCP backends.
  • node-vault-mcp — Credential storage. AES-256-GCM encrypted file vault (replaces macOS Keychain/keytar).

Architecture

This MCP server runs as a Docker container managed by ToolHive:

  1. Container — Built from the local Dockerfile and published as localhost:5555/stash-mcp:latest
  2. Transport — Streamable HTTP via the ToolHive proxy
  3. Authentication — Managed by Hermes (http://127.0.0.1:9876)
  4. Discovery — Exposed through MCP Gateway at http://127.0.0.1:3100/mcp
  5. Credentials — Stored in ~/.claude/secrets.vault via node-vault-mcp (AES-256-GCM)

Usage

List projects

list_projects:
  limit: 25

List repositories

list_repositories:
  project: PROJ

Review a pull request

get_pull_request:
  project: PROJ
  repository: my-repo
  prId: 123

Search for a file

search:
  query: README.md
  type: file
  project: PROJ

Read-Only Mode

Set BITBUCKET_READ_ONLY=true to block write operations. Read-only mode allows safe browsing and review without modifying repositories.

Development

npm run build
npm test
npm run lint

Security

Please report security issues privately. See SECURITY.md for guidance.

License

MIT. See LICENSE.

from github.com/schwarztim/stash-mcp

Установка Stash

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/schwarztim/stash-mcp

FAQ

Stash MCP бесплатный?

Да, Stash MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Stash?

Нет, Stash работает без API-ключей и переменных окружения.

Stash — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Stash в Claude Desktop, Claude Code или Cursor?

Открой Stash на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Stash with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development