شعار mcp-bitbucket

mcp-bitbucket

مؤسسة
n11techhub

A Node.js/TypeScript Model Context Protocol (MCP) server for Atlassian Bitbucket Server/Data Center that enables AI systems to securely interact with Bitbucket repositories, pull requests, and code.

الناشرn11techhub
المستودعmcp-bitbucket
اللغةTypeScript
التفريعات
4
النجوم
25
الأدوات المتاحة
0
نوع نقل البياناتstdio, streamable-http
الفئات
الترخيصApache-2.0
الروابط
  • اربط الأدوات بسير عمل الذكاء الاصطناعي

    يتيح mcp-bitbucket إمكانات MCP التي يمكن لتطبيقات الذكاء الاصطناعي العميلة ووكلاء الذكاء الاصطناعي المتوافقة استخدامها.

  • الأدوات المتاحة: 0

    تصفّح الإجراءات القابلة للاستدعاء أدناه، بما في ذلك أسماؤها وأوصافها عندما يوفّرها الخادم.

  • إعدادات جاهزة للنسخ

    استخدم أمثلة إعداد التثبيت لتهيئة هذا الخادم في تطبيق MCP العميل المفضّل لديك.

  • مؤشرات الاهتمام بالمصدر المفتوح

    النجوم: 25، والنسخ المتفرعة: 4 في المستودع المرتبط.

mcp-bitbucket

License: Apache 2.0 Version GitHub Container Registry Docker Build

A Node.js/TypeScript Model Context Protocol (MCP) server for Atlassian Bitbucket Server/Data Center.

This server enables AI systems (e.g., LLMs, AI coding assistants) to securely interact with your self-hosted Bitbucket repositories, pull requests, projects, and code in real time through both standard stdio and HTTP streaming transports.

Version 2.1.2 Release Notes

Bitbucket File Content Path Fix (June 2026)

This patch release fixes Bitbucket Server/Data Center path handling for file and directory operations.

🐛 Bug Fixes

  • Fixed: bitbucket_get_file_content path encoding for nested file paths. Path segments are now encoded safely while preserving / separators required by Bitbucket REST path parameters.
  • Fixed: bitbucket_browse_directory path handling for nested directories using the same segment-based encoding behavior.

⚠️ Breaking Changes

None - this is a backward-compatible bugfix.


Version 2.1.1 Release Notes

Environment Configuration Bugfix (June 2026)

This patch release fixes a critical bug where the .env file was not being loaded correctly when running from the compiled output.

🐛 Bug Fixes

  • Fixed: .env file path resolution when running from dist/ directory. The env.ts module used import.meta.url to determine __dirname, which resolves to the dist/ folder at runtime. The .env lookup path now correctly navigates one level up to the project root.

⚠️ Breaking Changes

None - this is a backward-compatible bugfix.


Version 2.1.0 Release Notes

Approval Tool & Security Hardening (June 2026)

This minor release adds pull request approval support and includes non-breaking security and maintainability improvements.

✨ New Features

  • Pull Request Approval Tool: Added bitbucket_approve_pull_request tool backed by Bitbucket Server/Data Center approve endpoint semantics.

🔒 Security & Reliability

  • Input/Path Safety Improvements: Strengthened schema and path-handling behavior in core request flows.
  • HTTP Transport Hardening: Improved authentication/session behavior for safer HTTP streaming operation.
  • Logging Hygiene: Reduced sensitive argument exposure by using safer request argument summaries.

⚠️ Breaking Changes

None - changes are backward compatible.


Version 2.0.0 Release Notes

Major Core Refactor & Transport Alignment (June 2026)

This major release reflects substantial changes in the core architecture and runtime behavior of the server to improve maintainability, consistency, and protocol alignment for Bitbucket-focused deployments.

✨ Core Improvements

  • Core Application Refactor: Internal layering and wiring were reorganized around cleaner boundaries across application, domain, and infrastructure modules.
  • MCP SDK HTTP Streaming Model Adoption: The transport/session lifecycle now follows MCP SDK's StreamableHTTPServerTransport pattern instead of a fully custom session-management flow.
  • HTTP Streaming Stabilization: Session lifecycle handling was improved for initialize/connect/close flows and more predictable session cleanup.
  • Bitbucket Service Identity Cleanup: Runtime logs and service naming were aligned to Bitbucket terminology.
  • Type-Safety Hardening: Core infrastructure paths use stricter typing and safer error handling patterns.

📦 Runtime & Dependency Updates

  • Node.js Runtime Baseline Updated: Runtime expectations were refreshed; use the version declared in package.json under engines.
  • Dependency Refresh: Core/runtime and development dependencies were upgraded to newer versions for compatibility, security, and maintainability.

⚠️ Breaking Changes

  • Major Version Bump: Package version moved to 2.0.0 to reflect core-level changes.
  • Package Rename: NPM package metadata now uses mcp-bitbucket.

Migration Notes

  • If you pin package metadata or release automation to the old package name, update it to mcp-bitbucket.
  • HTTP transport internals now align with MCP SDK session semantics; if you depended on custom session handling behavior, re-validate your client integration.
  • HTTP startup command remains available as npm run start:http; npm run start:http-streaming is kept as a compatibility alias.
  • Reinstall dependencies after upgrade to pick up new transitive versions (rm -rf node_modules && npm install).

Version 1.2.0 Release Notes

LLM Compatibility: Google Gemini Schema Sanitizer (May 2026)

This release fixes a known interoperability issue where Google Gemini-based MCP clients (e.g. n8n MCP Client with Gemini, Vertex AI function calling) reject tool schemas emitted by this server.

✨ New Features

  • Gemini-Compatible tools/list Output: Tool inputSchema payloads are now normalized server-side so they validate against Gemini's stricter JSON Schema subset.
    • JSON Schema unions expressed as type: ["string", "null"] are automatically rewritten to anyOf: [{type: "string"}, {type: "null"}].
    • Anthropic Claude and OpenAI ChatGPT clients are unaffected (the rewritten form is semantically equivalent and natively supported).
    • Eliminates the need for downstream workarounds such as n8n Code-node sanitizers.

🔒 Security Hardening

  • Prototype Pollution Defense: Schema sanitizer skips __proto__, prototype, and constructor keys and uses Object.create(null) as the recursion accumulator.
  • Recursion Depth Cap: Sanitizer bounds recursion at depth 64 to prevent stack-overflow DoS on hostile or cyclic schema input.
  • Pure Transformation: Sanitizer never mutates caller input and performs no I/O, logging, or credential handling.

📚 Documentation

  • Documented Gemini interoperability fix in release notes.

⚠️ Breaking Changes

None - all changes are backward compatible.


Version 1.1.0 Release Notes

New Feature: Directory Browsing & Security Fix (April 2026)

This release adds directory browsing capabilities and fixes a critical path traversal vulnerability:

✨ New Features

  • Directory Browsing Tool: Added bitbucket_browse_directory tool for exploring repository structure
    • Browse root directory with empty path, ., or /
    • Navigate subdirectories efficiently
    • Returns file/folder metadata without fetching content (lightweight operation)
    • Enables AI agents to discover repository structure autonomously
    • Resolves Issue #2

🔒 Security Fixes

  • CRITICAL: Fixed path traversal vulnerability in browseBitbucketDirectory path parameter
    • Added validation to block .. sequences (path traversal prevention)
    • Added control character filtering to prevent null byte injection
    • Added path length limits (max 1000 characters) to prevent DoS attacks
    • Multi-layer defense: schema validation + URL encoding + API-level checks

📚 Documentation

  • Added bitbucket_browse_directory tool to Available Tools section
  • Updated security documentation with path validation details

⚠️ Breaking Changes

None - all changes are backward compatible.


Version 1.0.1 Release Notes

Security Improvements & Bug Fixes (February 2026)

This release includes critical security enhancements and implements the BITBUCKET_DEFAULT_PROJECT feature:

🔒 Security Enhancements

  • Input Validation: Added strict regex validation for project keys and workspace slugs to prevent path traversal and injection attacks
  • URL Encoding: All API path parameters are now properly URL-encoded to prevent path manipulation
  • Environment Variable Validation: BITBUCKET_DEFAULT_PROJECT is validated and sanitized before use
  • Comprehensive Security Tests: Added extensive test coverage for path traversal, SQL injection, command injection, and DoS attacks

🐛 Bug Fixes

  • Fixed: BITBUCKET_DEFAULT_PROJECT environment variable was being ignored (PR #1)
  • Fixed: getDefaultProjectKey() method now properly returns the configured default project instead of always returning undefined

📚 Documentation

  • Added security notes for BITBUCKET_DEFAULT_PROJECT configuration
  • Documented valid and invalid project key formats
  • Added multi-tenant environment warnings

⚠️ Breaking Changes

None - all changes are backward compatible.


Table of Contents

Features

  • Dual Transport Support: Choose between stdio and HTTP streaming transports
  • Secure Authentication: Optional API key authentication for HTTP transport
  • Comprehensive Bitbucket Integration: Full access to Bitbucket Server/Data Center APIs
  • Developer Focused: Designed to help AI assistants understand and interact with your codebase
  • Production Ready: Built with TypeScript, proper error handling, and security best practices
  • Container Support: Docker support for easy deployment and scaling

What is MCP?

Model Context Protocol (MCP) is an open standard for securely connecting AI systems to external tools and data sources. This server implements MCP for Bitbucket Server/Data Center, enabling AI assistants to interact with your Bitbucket data programmatically through standardized interfaces.

Prerequisites

  • Node.js: Version defined by package.json engines (currently >=18)
  • Bitbucket Server/Data Center: Access with a Personal Access Token (PAT)
  • Docker: (Recommended) For containerized deployment
  • Git: For cloning the repository

Installation

Docker (Recommended)

Using Pre-built Image from GHCR

Pull and run the latest image:

bash
# Pull the latest image from GitHub Container Registry
docker pull ghcr.io/n11techhub/mcp-bitbucket:latest

# Run with environment variables
docker run -i --rm \
  -e BITBUCKET_URL="https://your-bitbucket-server.com" \
  -e BITBUCKET_TOKEN="your_personal_access_token" \
  ghcr.io/n11techhub/mcp-bitbucket:latest

Building from Source

  1. Clone the Repository:

    bash
    git clone https://github.com/n11tech/mcp-bitbucket.git
    cd mcp-bitbucket
  2. Build the Docker Image:

    bash
    docker build -t mcp-bitbucket:latest .
  3. Run with Docker:

    bash
    docker run -i --rm \
      -e BITBUCKET_URL="https://your-bitbucket-server.com" \
      -e BITBUCKET_TOKEN="your_personal_access_token" \
      mcp-bitbucket:latest

Local Development

  1. Clone and Install:

    bash
    git clone https://github.com/n11tech/mcp-bitbucket.git
    cd mcp-bitbucket
    npm install
  2. Build:

    bash
    npm run build
  3. Start:

    bash
    npm start

Using This MCP Server with Smithery CLI

You can use this Bitbucket MCP server locally with the Smithery CLI. This allows you to connect your AI tools or agents to your self-hosted Bitbucket Server/Data Center. This server is not hosted on Smithery AI cloud; you must run it yourself (locally or on your own server).

Prerequisites

  • Node.js version defined by package.json engines (currently >=18)
  • Smithery CLI

1. Install Smithery CLI

bash
npm install -g @smithery/cli

2. Start the Bitbucket MCP Server Locally

You must run your own instance of the server (Docker recommended):

bash
docker run -it --rm \
  -e BITBUCKET_URL="https://your-bitbucket-server.com" \
  -e BITBUCKET_TOKEN="your_personal_access_token" \
  -e ENABLE_HTTP_TRANSPORT="true" \
  -e MCP_HTTP_PORT="3001" \
  -e MCP_HTTP_ENDPOINT="/mcp" \
  -p 3001:3001 \
  ghcr.io/n11techhub/mcp-bitbucket:latest

Or, using npm:

bash
npm run start:http

3. Connect to Your Local MCP Server with Smithery CLI

Once your server is running locally, connect to it using the local address:

bash
npx @smithery/cli connect http://localhost:3001/mcp

4. Example: Using with Smithery CLI

Once connected, you can call tools (e.g., list repositories):

bash
npx @smithery/cli call http://localhost:3001/mcp bitbucket_list_repositories --params '{"workspaceSlug": "your-workspace"}'

For more details, see the Smithery CLI documentation.

Note for Smithery Users:

When connecting to this MCP server via Smithery, you only need to provide:

  • Bitbucket Server URL (e.g., <your-bitbucket-url>)
  • Bitbucket Personal Access Token

All other environment variables (such as port, endpoint, API key) are managed by the server administrator or deployment and do not need to be set by end users.

If the server administrator has enabled API key authentication, you may be asked to provide an API key as well. In that case, enter the value provided by your admin.

Example:

When prompted by Smithery, enter:

bitbucketUrl: <your-bitbucket-url>
bitbucketToken: <your-bitbucket-token>

Advanced: Using STDIO Transport

By default, this MCP server is configured for HTTP transport, which is recommended for most users and for Smithery CLI/web integrations.

Advanced users who want to run the MCP server as a local subprocess (STDIO transport) can use the following Smithery configuration:

yaml
startCommand:
  type: "stdio"
  configSchema:
    type: "object"
    required: ["bitbucketUrl", "bitbucketToken"]
    properties:
      bitbucketUrl:
        type: "string"
        description: "The base URL of your self-hosted Bitbucket instance (e.g., https://<your-bitbucket-url>)"
      bitbucketToken:
        type: "string"
        description: "Personal Access Token for Bitbucket Server/Data Center"
  commandFunction: |-
    (config) => ({
      command: 'node',
      args: ['build/infrastructure/index.js'],
      env: {
        BITBUCKET_URL: config.bitbucketUrl,
        BITBUCKET_TOKEN: config.bitbucketToken
      }
    })
  exampleConfig:
    bitbucketUrl: "https://<your-bitbucket-url>"
    bitbucketToken: "<your-bitbucket-token>"

This allows you to launch the MCP server as a subprocess and communicate via standard input/output, which may be useful for certain local agent or automation scenarios.

Configuration

Environment Variables

VariableDescriptionDefaultRequired
BITBUCKET_URLYour Bitbucket Server/Data Center URL-✅
BITBUCKET_TOKENPersonal Access Token-✅
BITBUCKET_DEFAULT_PROJECTDefault project key for operations (see Security Notes below)-❌
ENABLE_HTTP_TRANSPORTEnable HTTP streaming transportfalse❌
MCP_HTTP_PORTHTTP server port3001❌
MCP_HTTP_ENDPOINTHTTP endpoint path/stream❌
MCP_API_KEYAPI key for authentication-❌

Security Notes for BITBUCKET_DEFAULT_PROJECT

⚠️ Important Security Considerations:

  • Input Validation: The BITBUCKET_DEFAULT_PROJECT value is automatically validated to prevent path traversal and injection attacks. Only alphanumeric characters, hyphens, and underscores are allowed.
  • Multi-Tenant Environments: In shared or multi-tenant deployments, be aware that the default project applies globally to all requests that don't specify a workspaceSlug. Consider using explicit workspace slugs in API calls instead.
  • Valid Format: Project keys must match the pattern ^[A-Z0-9_-]+$ (case-insensitive) and be between 1-255 characters.
  • Invalid Values: If an invalid project key is provided, the server will log an error and ignore the value, requiring explicit workspaceSlug in all API calls.

Example Valid Values:

bash
BITBUCKET_DEFAULT_PROJECT=MYPROJECT
BITBUCKET_DEFAULT_PROJECT=my-project-123
BITBUCKET_DEFAULT_PROJECT=TEAM_ALPHA

Example Invalid Values (will be rejected):

bash
BITBUCKET_DEFAULT_PROJECT=../../../admin  # Path traversal attempt
BITBUCKET_DEFAULT_PROJECT=PROJ; rm -rf /  # Command injection attempt
BITBUCKET_DEFAULT_PROJECT=PROJ/test       # Contains invalid character

MCP Client Setup

Configure your MCP-compatible client to connect to this server. The configuration depends on your chosen transport method.

Transport Options

Standard I/O Transport (Default)

The default transport method uses standard input/output for communication. This is suitable for direct integration with AI systems that launch the server as a child process.

Example MCP Configuration:

json
{
  "mcpServers": {
    "mcp-bitbucket": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm", "--network=host",
        "-e", "BITBUCKET_URL",
        "-e", "BITBUCKET_TOKEN",
        "ghcr.io/n11techhub/mcp-bitbucket:latest"
      ],
      "env": {
        "BITBUCKET_URL": "https://your-bitbucket-server.com",
        "BITBUCKET_TOKEN": "your_personal_access_token"
      }
    }
  }
}

HTTP Streaming Transport

For scenarios requiring remote connections or web-based integrations, the server supports HTTP streaming transport with Server-Sent Events (SSE).

Enable HTTP Transport:

bash
# Using GHCR image
docker run -i --rm \
  -p 3001:3001 \
  -e BITBUCKET_URL="https://your-bitbucket-server.com" \
  -e BITBUCKET_TOKEN="your_personal_access_token" \
  -e ENABLE_HTTP_TRANSPORT="true" \
  -e MCP_HTTP_PORT="3001" \
  -e MCP_HTTP_ENDPOINT="mcp" \
  ghcr.io/n11techhub/mcp-bitbucket:latest

# Using npm script
npm run start:http

Example MCP Configuration for HTTP Transport:

json
{
  "mcpServers": {
    "mcp-bitbucket": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-p", "3001:3001",
        "-e", "BITBUCKET_URL",
        "-e", "BITBUCKET_TOKEN", 
        "-e", "ENABLE_HTTP_TRANSPORT",
        "-e", "MCP_HTTP_PORT",
        "-e", "MCP_HTTP_ENDPOINT",
        "ghcr.io/n11techhub/mcp-bitbucket:latest"
      ],
      "env": {
        "BITBUCKET_URL": "https://your-bitbucket-server.com",
        "BITBUCKET_TOKEN": "your_personal_access_token",
        "ENABLE_HTTP_TRANSPORT": "true",
        "MCP_HTTP_PORT": "3001",
        "MCP_HTTP_ENDPOINT": "mcp"
      }
    }
  }
}

HTTP Endpoints:

  • POST http://localhost:3001/mcp - Send MCP requests
  • GET http://localhost:3001/mcp - Server-Sent Events stream
  • GET http://localhost:3001/health - Health check endpoint

Security

API Key Authentication

For HTTP transport, you can enable API key authentication to secure your server:

Setup API Key Authentication:

bash
# Generate a secure API key (recommended: 32+ characters)
export MCP_API_KEY="your-secure-api-key-here"

# Run with authentication enabled
docker run -i --rm \
  -p 3001:3001 \
  -e BITBUCKET_URL="https://your-bitbucket-server.com" \
  -e BITBUCKET_TOKEN="your_personal_access_token" \
  -e ENABLE_HTTP_TRANSPORT="true" \
  -e MCP_API_KEY="your-secure-api-key-here" \
  mcp-bitbucket:latest

Configuration with API Key:

json
{
  "mcpServers": {
    "mcp-bitbucket": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-p", "3001:3001",
        "-e", "BITBUCKET_URL",
        "-e", "BITBUCKET_TOKEN",
        "-e", "ENABLE_HTTP_TRANSPORT",
        "-e", "MCP_API_KEY",
        "mcp-bitbucket:latest"
      ],
      "env": {
        "BITBUCKET_URL": "https://your-bitbucket-server.com",
        "BITBUCKET_TOKEN": "your_personal_access_token",
        "ENABLE_HTTP_TRANSPORT": "true",
        "MCP_API_KEY": "your-secure-api-key-here"
      }
    }
  }
}

When API key authentication is enabled, all HTTP requests must include the API key in the request headers or parameters.

Usage Examples

Pull Request Management

javascript
// Create a pull request
await callTool('bitbucket_create_pull_request', {
  repository: 'my-repo',
  title: 'Feature: Add new API endpoint',
  sourceBranch: 'feature/api-endpoint',
  targetBranch: 'main',
  description: 'This PR adds a new REST API endpoint for user management.'
});

// Get pull request details
await callTool('bitbucket_get_pull_request_details', {
  repository: 'my-repo',
  prId: 123
});

Repository Operations

javascript
// Search gateway content
await callTool('bitbucket_search_content', {
  workspaceSlug: 'my-workspace',
  query: 'authentication',
  extension: 'js'
});

// Get file content
await callTool('bitbucket_get_file_content', {
  workspaceSlug: 'my-workspace',
  repoSlug: 'my-repo',
  filePath: 'src/auth/login.js'
});

Available Tools

This server provides a comprehensive suite of tools for interacting with Bitbucket Server/Data Center:

Pull Request Management

  • bitbucket_create_pull_request - Create new pull requests
  • bitbucket_get_pull_request_details - Get PR details and metadata
  • bitbucket_approve_pull_request - Approve pull requests
  • bitbucket_get_pull_request_diff - Retrieve PR diffs
  • bitbucket_get_pull_request_reviews - Get PR review status
  • bitbucket_merge_pull_request - Merge pull requests
  • bitbucket_decline_pull_request - Decline pull requests
  • bitbucket_add_pull_request_comment - Add general PR comments

Repository Operations

  • bitbucket_list_workspaces - List available workspaces
  • bitbucket_list_repositories - Browse repositories
  • bitbucket_get_repository_details - Get repository information
  • bitbucket_search_content - Search within repositories
  • bitbucket_get_file_content - Read file contents
  • bitbucket_browse_directory - Browse directory contents (returns file/folder metadata without content)

Branch Management

  • bitbucket_create_branch - Create new branches
  • bitbucket_list_repository_branches - List repository branches

User Management

  • bitbucket_get_user_profile - Get user profile details

For detailed parameter information and usage examples, refer to the individual tool schemas in src/domain/contracts/schemas/.

Development

Available Scripts

  • Build: npm run build - Compile TypeScript to JavaScript
  • Start: npm start - Run the server with stdio transport
  • HTTP: npm run start:http - Run with HTTP streaming transport
  • Development: npm run dev - Watch mode for development
  • Lint: npm run lint - Code quality checks
  • Test: npm run test - Run test suite
  • Inspector: npm run inspector - Debug MCP server interactions

Development Setup

bash
# Clone and setup
git clone <repository_url>
cd mcp-bitbucket
npm install

# Create environment file
cp .env.example .env
# Edit .env with your Bitbucket credentials

# Development with watch mode
npm run dev

Architecture

The codebase follows clean architecture principles:

src/
├── application/          # Application layer
│   ├── facade/          # Client facades  
│   └── use-cases/       # Business logic
├── domain/              # Domain layer
│   ├── contracts/       # Interfaces and schemas
│   ├── entity/          # Domain entities
│   └── repository/      # Repository interfaces
├── infrastructure/      # Infrastructure layer
│   ├── clients/         # External API clients
│   ├── config/          # Configuration management
│   ├── http/            # HTTP transport implementation
│   └── setup/           # Server setup and initialization

License

This project is licensed under the Apache License, Version 2.0.

See the LICENSE file for more details.


Built with the Model Context Protocol

التثبيت

TypingMind
{
  "mcpServers": {
    "mcp-bitbucket": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "--network=host",
        "-e",
        "BITBUCKET_URL",
        "-e",
        "BITBUCKET_TOKEN",
        "ghcr.io/n11tech/mcp-bitbucket:latest"
      ],
      "env": {
        "BITBUCKET_URL": "<BITBUCKET_URL>",
        "BITBUCKET_TOKEN": "<BITBUCKET_TOKEN>"
      }
    }
  }
}

استخدم MCP الخاص بـ mcp-bitbucket مع نماذج ذكاء اصطناعي متعددة

يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا بمجرد توصيل mcp-bitbucket، يمكنك استخدامه مع نماذج ذكاء اصطناعي مختلفة في TypingMind بدلًا من إعداده لكل نموذج على حدة. يمكنك تشغيل MCP محليًا على جهازك أو الاتصال بعنوان URL لخادم MCP بعيد.

الخيار 1: استخدام الموصل المحلي

استخدم هذا الخيار عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات أو موارد خاصة على جهاز الكمبيوتر لديك.

1

فتح إعدادات MCP

في TypingMind، انتقل إلى «الإعدادات»، ثم «الإعدادات المتقدمة»، ثم «بروتوكول سياق النموذج»، واختر «إعداد الموصل».

  1. افتح TypingMind في متصفحك.
  2. انقر على أيقونة الإعدادات.
  3. انتقل إلى الإعدادات المتقدمة.
  4. افتح قسم بروتوكول سياق النموذج.
  5. انقر على «إعداد الموصل» واختر «هذا الجهاز».
شاشة إعداد موصل MCP في TypingMind مع تحديد «هذا الجهاز»
2

تنفيذ أمر الموصل

اختر «هذا الجهاز»، وانسخ الأمر من TypingMind وشغّله في Terminal. أبقِ العملية قيد التشغيل أثناء استخدام MCP.

  1. انسخ أمر الإعداد الذي يعرضه TypingMind.
  2. افتح Terminal على macOS أو Windows Terminal على Windows.
  3. الصق الأمر ونفّذه.
  4. وافق على تثبيت الحزمة إذا طلب منك Terminal تأكيد المتابعة.
  5. أبقِ نافذة Terminal والعملية التي تعمل فيها قيد التشغيل أثناء استخدام أدوات MCP.
3

أضف mcp-bitbucket كخادم

عندما تظهر حالة الموصل «جاهز»، انقر على «تعديل الخوادم» والصق إعدادات خادم MCP.

  1. انتظر حتى تظهر حالة الموصل «جاهز».
  2. انقر على «تعديل الخوادم».
  3. الصق إعدادات خادم MCP الخاص بـ mcp-bitbucket.
  4. احفظ قائمة الخوادم.
  5. حدّث الحالة إذا أردت التأكد من أن الموصل لا يزال جاهزًا.
إعدادات MCP في TypingMind تعرض خادمًا نشطًا وزر «تعديل الخوادم»
{
  "mcpServers": {
    "mcp-bitbucket": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-bitbucket"
      ]
    }
  }
}
4

استخدام الاتصال مع نماذج مختلفة

احفظ قائمة الخوادم، وافتح «الإضافات»، وفعّل أدوات MCP الخاصة بـ mcp-bitbucket، ثم اختر أي نموذج ذكاء اصطناعي مدعوم في TypingMind واستخدم الأدوات في المحادثة أو أسندها إلى وكيل ذكاء اصطناعي.

  1. افتح صفحة الإضافات في TypingMind.
  2. فعّل أدوات MCP الخاصة بـ mcp-bitbucket.
  3. ابدأ محادثة واختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  4. استخدم أدوات MCP في المحادثة أو عيّنها لوكيل ذكاء اصطناعي.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر عند الحاجة دون إعادة الاتصال بـ MCP.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام mcp-bitbucket لمساعدتي في هذه المهمة؟
mcp-bitbucket
بالتأكيد. قرأته.
إليك ما وجدته باستخدام mcp-bitbucket.

الخيار 2: إضافة عنوان URL لخادم MCP

استخدم هذا الخيار عندما يكون mcp-bitbucket مستضافًا بالفعل عن بُعد أو عندما يريد فريقك موصلًا مشتركًا واحدًا يمكن لعدة مستخدمين الوصول إليه.

1

فتح موصلات MCP

في TypingMind، انتقل إلى «الإضافات»، وافتح «موصلات MCP»، ثم اختر «إضافة رابط».

  1. افتح TypingMind في متصفحك.
  2. انتقل إلى الإضافات.
  3. افتح موصلات MCP.
  4. انقر على «إضافة عنوان URL».
نموذج إضافة عنوان URL لخادم MCP مخصص في TypingMind
2

لصق عنوان URL للخادم

أدخل عنوان URL لخادم MCP الذي يقدّمه مزوّد الخدمة في حقل «رابط الخادم». أضف اسمًا للاتصال أو وصفًا أو أيقونة أو ترويسات HTTP مخصصة أو إعدادات عميل OAuth إذا كان الخادم يتطلب ذلك.

  1. ألصق عنوان URL لخادم MCP الذي يقدّمه مزوّد الخدمة في حقل «رابط الخادم».
  2. أدخل اسمًا لاتصال mcp-bitbucket.
  3. أضف وصفًا وأيقونة لتسهيل التعرّف على الاتصال إن أردت.
  4. أضف ترويسات HTTP مخصصة أو تفاصيل عميل OAuth إذا كان الخادم يتطلب المصادقة.
3

إنشاء الاتصال

انقر على «إنشاء اتصال»، ثم عُد إلى قائمة الإضافات وتأكد من أن اتصال MCP الجديد نشط.

  1. انقر على «إنشاء اتصال».
  2. عُد إلى قائمة موصلات MCP.
  3. تأكد من ظهور اتصال mcp-bitbucket بحالة «نشط».
  4. حدّث قائمة الإضافات إذا لم يظهر الاتصال فورًا.
4

تبديل النماذج دون إعادة الاتصال

ابدأ محادثة مع نموذجك المفضل، وفعّل أدوات mcp-bitbucket من «الإضافات»، وانتقل إلى نموذج آخر عند الحاجة. يظل اتصال MCP متاحًا في مساحة عمل TypingMind.

  1. ابدأ محادثة جديدة في TypingMind.
  2. اختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  3. فعّل أدوات mcp-bitbucket من قسم الإضافات.
  4. اطلب من النموذج استخدام الأداة عند الحاجة.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر وأعد استخدام اتصال MCP نفسه.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام mcp-bitbucket لمساعدتي في هذه المهمة؟
mcp-bitbucket
بالتأكيد. قرأته.
إليك ما وجدته باستخدام mcp-bitbucket.

الأسئلة الشائعة

ما استخدامات خادم MCP mcp-bitbucket؟

mcp-bitbucket هو خادم MCP يتيح لتطبيقات الذكاء الاصطناعي المتوافقة الاتصال بأدوات ومصادر سياق خارجية. في TypingMind، يمكنك إضافة خادم MCP هذا مرة واحدة وإتاحة أدواته في مساحة عملك للذكاء الاصطناعي.

هل يمكنني استخدام خادم MCP mcp-bitbucket مع نماذج ذكاء اصطناعي متعددة في TypingMind؟

نعم. يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا يمكنك استخدام mcp-bitbucket مع نماذج ذكاء اصطناعي مختلفة مثل Claude أو ChatGPT أو Gemini أو غيرها من النماذج التي أعددتها في TypingMind، دون إعداد خادم MCP لكل نموذج على حدة.

لماذا تستخدم موصل MCP mcp-bitbucket مع TypingMind؟

يُعد TypingMind من أفضل واجهات المحادثة مع النماذج اللغوية الكبيرة، إذ يجمع نماذج ذكاء اصطناعي متعددة ومطالبات وإضافات ووكلاء ذكاء اصطناعي ومفاتيح API وأدوات MCP في مساحة عمل واحدة. بعد توصيل mcp-bitbucket، يمكنك استخدام أدوات MCP الخاصة به عبر نماذجك المفضلة مع الحفاظ على سير عمل محادثاتك منظمًا في TypingMind.

كيف أوصّل خادم MCP mcp-bitbucket بـ TypingMind؟

يمكن توصيل mcp-bitbucket بـ TypingMind باستخدام موصل MCP المحلي أو بإضافة عنوان URL لخادم MCP بعيد. استخدم الموصل المحلي عندما يحتاج الخادم إلى الوصول إلى ملفات أو تطبيقات أو موارد خاصة على جهازك، واستخدم عنوان URL للخادم عندما يكون خادم MCP مستضافًا عن بُعد.

ما الأدوات التي يوفّرها خادم MCP mcp-bitbucket في TypingMind؟

يتيح mcp-bitbucket إمكانات MCP يمكنك تفعيلها من صفحة الإضافات في TypingMind واستخدامها في المحادثات أو تعيينها لوكلاء ذكاء اصطناعي.

هل أحتاج إلى مشاركة مفاتيح API الخاصة بي مع TypingMind لاستخدام خادم MCP mcp-bitbucket؟

لا. يعطي TypingMind الأولوية للعمل المحلي ويُبقي مزوّدي النماذج ومفاتيح API والمطالبات وإعدادات MCP تحت تحكمك. إذا كان mcp-bitbucket يتطلب مصادقة، فأضف الترويسات أو إعدادات OAuth أو الإعدادات المحلية المطلوبة لخادم MCP هذا عند إنشاء الاتصال.

خوادم MCP ذات صلة

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇