Логотип UltraFast MCP 连续思考

UltraFast MCP 连续思考

Сообщество
techgopal

Rust-based MCP server for sequential thinking using UltraFast MCP.

Издательtechgopal
Репозиторийultrafast-mcp-sequential-thinking
ЯзыкRust
Форки
3
Звёзды
16
Доступные инструменты
0
Тип транспортаstdio, streamable-http
Категории
ЛицензияMIT
Ссылки
  • Подключайте инструменты к рабочим процессам с ИИ

    UltraFast MCP 连续思考 предоставляет возможности MCP, доступные совместимым ИИ-клиентам и агентам.

  • Доступные инструменты: 0

    Ниже представлены доступные для вызова действия с названиями и описаниями, если сервер их предоставляет.

  • Готовая конфигурация для копирования

    Используйте примеры конфигурации, чтобы настроить этот сервер в предпочитаемом MCP-клиенте.

  • Показатели интереса к открытому проекту

    Звёзды: 16, форки: 3 — в связанном репозитории.

UltraFast MCP Sequential Thinking

Docker Image Crates.io

Official Docker image available at techgopal/ultrafast-mcp-sequential-thinking


A high-performance, Rust-based Model Context Protocol (MCP) server and client implementation for sequential thinking, built on the UltraFast MCP framework.

🚀 Overview

UltraFast MCP Sequential Thinking provides a structured approach to problem-solving through dynamic and reflective thinking processes. This implementation offers significant performance advantages over the official TypeScript version while maintaining full compatibility with the MCP 2025-06-18 specification.

✨ Features

Core Capabilities

  • Dynamic Problem Breakdown: Break complex problems into manageable steps
  • Reflective Thinking: Revise and refine thoughts as understanding deepens
  • Branching Logic: Explore alternative paths of reasoning
  • Adaptive Planning: Adjust the total number of thoughts dynamically
  • Solution Verification: Generate and verify solution hypotheses
  • Context Preservation: Maintain thinking context across multiple steps

Performance Advantages

  • 10-100x Faster: Rust implementation provides significant performance gains
  • Memory Efficient: Optimized for handling large thinking sessions
  • Concurrent Processing: Async/await support for high-throughput operations
  • Type Safety: Compile-time guarantees for protocol compliance
  • Production Ready: Comprehensive error handling and monitoring

Enhanced Features

  • Progress Tracking: Real-time progress notifications for long thinking sessions
  • Cancellation Support: Interrupt thinking processes when needed
  • Session Management: Persistent thinking sessions across connections
  • Export Capabilities: Export thinking sessions in various formats
  • Analytics: Detailed analytics on thinking patterns and efficiency

🏗️ Architecture

Server Components

┌─────────────────────────────────────────────────────────────┐
│                Sequential Thinking Server                   │
├─────────────────────────────────────────────────────────────┤
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐        │
│  │   Thinking  │  │   Session   │  │   Analytics │        │
│  │   Engine    │  │  Management │  │   & Metrics │        │
│  └─────────────┘  └─────────────┘  └─────────────┘        │
├─────────────────────────────────────────────────────────────┤
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐        │
│  │   Branch    │  │   Context   │  │   Export    │        │
│  │  Management │  │  Tracking   │  │   Handlers  │        │
│  └─────────────┘  └─────────────┘  └─────────────┘        │
├─────────────────────────────────────────────────────────────┤
│                    UltraFast MCP Core                      │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐        │
│  │   Protocol  │  │   Transport │  │   Handlers  │        │
│  │   Layer     │  │   Layer     │  │   System    │        │
│  └─────────────┘  └─────────────┘  └─────────────┘        │
└─────────────────────────────────────────────────────────────┘

Client Components

┌─────────────────────────────────────────────────────────────┐
│                Sequential Thinking Client                   │
├─────────────────────────────────────────────────────────────┤
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐        │
│  │   Session   │  │   Progress  │  │   Export    │        │
│  │   Manager   │  │   Tracker   │  │   Manager   │        │
│  └─────────────┘  └─────────────┘  └─────────────┘        │
├─────────────────────────────────────────────────────────────┤
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐        │
│  │   Thinking  │  │   Branch    │  │   Analytics │        │
│  │   Interface │  │   Explorer  │  │   Dashboard │        │
│  └─────────────┘  └─────────────┘  └─────────────┘        │
├─────────────────────────────────────────────────────────────┤
│                    UltraFast MCP Client                    │
└─────────────────────────────────────────────────────────────┘

🛠️ Installation

Prerequisites

  • Rust 1.70 or later
  • Cargo (Rust package manager)

Quick Start

1. Clone the Repository

bash
git clone https://github.com/your-org/ultrafast-mcp-sequential-thinking.git
cd ultrafast-mcp-sequential-thinking

2. Build the Project

bash
cargo build --release

3. Run the Server

bash
# STDIO transport (default)
cargo run --bin sequential-thinking-server

# HTTP transport
cargo run --bin sequential-thinking-server -- --transport http --port 8080

4. Run the Client

bash
# Connect to server
cargo run --bin sequential-thinking-client -- --server stdio://

# Connect to HTTP server
cargo run --bin sequential-thinking-client -- --server http://localhost:8080

5. Use MCP Inspector (Optional)

bash
# Start HTTP server for Inspector
cargo run --bin sequential-thinking-server -- --transport http --port 8080

# Open MCP Inspector and load mcp-inspector-config.json
# Choose "sequential-thinking-server-http" for HTTP transport

Quick Start with Docker

1. Use the Official Docker Image

bash
# Pull the latest image from Docker Hub
docker pull techgopal/ultrafast-mcp-sequential-thinking:latest

# Run HTTP server on port 8080
docker run --rm -p 8080:8080 techgopal/ultrafast-mcp-sequential-thinking:latest

# Run with custom configuration
docker run --rm -p 8080:8080 -e MAX_THOUGHTS=200 techgopal/ultrafast-mcp-sequential-thinking:latest

# Run in detached mode
docker run -d --name thinking-server -p 8080:8080 techgopal/ultrafast-mcp-sequential-thinking:latest

2. (Optional) Build the Docker Image Locally

bash
# Build the server image locally (if you want to make changes)
docker build -t sequential-thinking-server .

# Verify the image was created
docker images | grep sequential-thinking-server

3. Connect Client to Docker Server

bash
# Connect to HTTP server running in Docker
cargo run --bin sequential-thinking-client -- --server http://localhost:8080

# Or use curl to test the server
curl -X POST http://localhost:8080/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"initialize","params":{"protocolVersion":"2025-06-18"},"id":1}'

Example MCP Inspector Docker Configuration

If you want to use MCP Inspector or other tools to launch the server in a Docker container with advanced options (such as analytics and increased max thoughts), use the following configuration:

json
{
  "mcpServers": {
    "sequential-thinking": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "techgopal/ultrafast-mcp-sequential-thinking:latest",
        "/usr/local/bin/sequential-thinking-server",
        "--transport",
        "stdio",
        "--max-thoughts",
        "200",
        "--enable-analytics"
      ],
      "env": {}
    }
  }
}

This configuration will start the server in a Docker container using STDIO transport, with analytics enabled and a higher max thoughts limit. Adjust the arguments as needed for your use case.

4. Docker Compose (Optional)

bash
# Create docker-compose.yml for easy deployment
cat > docker-compose.yml << EOF
version: '3.8'
services:
  sequential-thinking-server:
    build: .
    ports:
      - "8080:8080"
    environment:
      - MAX_THOUGHTS=100
      - ENABLE_ANALYTICS=true
    restart: unless-stopped
EOF

# Start with Docker Compose
docker-compose up -d

# Stop the service
docker-compose down

Multi-Platform Docker Support

The Docker image supports multiple platforms for maximum compatibility:

Supported Platforms

  • linux/amd64: Intel/AMD 64-bit processors
  • linux/arm64: ARM 64-bit processors (Apple Silicon, ARM servers)
  • linux/arm/v7: ARM 32-bit processors (Raspberry Pi, older ARM devices)

Platform-Specific Usage

bash
# Pull for specific platform
docker pull --platform linux/amd64 techgopal/ultrafast-mcp-sequential-thinking:latest
docker pull --platform linux/arm64 techgopal/ultrafast-mcp-sequential-thinking:latest
docker pull --platform linux/arm/v7 techgopal/ultrafast-mcp-sequential-thinking:latest

# Run on specific platform
docker run --platform linux/amd64 --rm -p 8080:8080 techgopal/ultrafast-mcp-sequential-thinking:latest
docker run --platform linux/arm64 --rm -p 8080:8080 techgopal/ultrafast-mcp-sequential-thinking:latest
docker run --platform linux/arm/v7 --rm -p 8080:8080 techgopal/ultrafast-mcp-sequential-thinking:latest

Build Multi-Platform Images Locally

bash
# Set up Docker Buildx for multi-platform builds
docker buildx create --name multiplatform --use

# Build for all supported platforms
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 \
  -t your-username/ultrafast-mcp-sequential-thinking:latest \
  --push .

# Build for specific platform only
docker buildx build --platform linux/arm64 \
  -t your-username/ultrafast-mcp-sequential-thinking:arm64 \
  --push .

Docker Compose with Platform Specification

yaml
# docker-compose.yml
version: '3.8'
services:
  sequential-thinking:
    image: techgopal/ultrafast-mcp-sequential-thinking:latest
    platform: linux/arm64  # Specify platform for ARM64
    ports:
      - "8080:8080"
    environment:
      - MAX_THOUGHTS=200
      - ENABLE_ANALYTICS=true
    restart: unless-stopped

CI/CD Multi-Platform Pipeline

The project includes GitHub Actions workflows that automatically build and push multi-platform images:

  • Docker Test: Builds and tests images on pull requests
  • Docker Release: Builds and pushes multi-platform images on main branch
  • Caching: Uses GitHub Actions cache for faster builds
  • Provenance: Disabled for better compatibility

Build Scripts

The project includes convenient scripts for building and testing multi-platform images:

bash
# Build multi-platform images locally
./scripts/build-multi-platform.sh --push

# Test multi-platform images
./scripts/test-multi-platform.sh

# Build for specific platforms only
./scripts/build-multi-platform.sh -p linux/amd64,linux/arm64 --push

# Test with custom image and port
./scripts/test-multi-platform.sh -i my-image -t v1.0.0 -p 9090

🔧 Configuration

MCP Inspector

This project includes an MCP Inspector configuration file (mcp-inspector-config.json) that supports both HTTP and STDIO transport modes.

Using MCP Inspector

  1. Start the server (choose one):

    bash
    # HTTP transport (recommended for Inspector)
    cargo run --bin sequential-thinking-server -- --transport http --port 8080
    
    # STDIO transport
    cargo run --bin sequential-thinking-server -- --transport stdio
  2. Open MCP Inspector and load the config file:

    • Navigate to the project directory
    • Select mcp-inspector-config.json
    • Choose your preferred transport mode:
      • HTTP: sequential-thinking-server-http (default)
      • STDIO: sequential-thinking-server-stdio
  3. Test the tools:

    • sequential_thinking: Main thinking tool for problem-solving
    • export_session: Export sessions in various formats
    • analyze_session: Get analytics and insights
    • merge_sessions: Combine multiple sessions

Config File Structure

The mcp-inspector-config.json includes:

  • HTTP Server: http://localhost:8080/mcp
  • STDIO Server: Cargo subprocess with stdio transport
  • Tool Schemas: Complete input/output schemas for all tools
  • Documentation: Detailed descriptions for each tool

Server Configuration

toml
# config.toml
[server]
name = "ultrafast-sequential-thinking"
version = "1.0.0"
transport = "http"
port = 8080

[thinking]
max_thoughts_per_session = 100
max_branches_per_session = 10
session_timeout_seconds = 3600
enable_analytics = true

[export]
formats = ["json", "markdown", "pdf"]
auto_export = false

Client Configuration

toml
# client_config.toml
[client]
server_url = "http://localhost:8080"
timeout_seconds = 30
retry_attempts = 3

[thinking]
auto_save_interval = 60
enable_progress_tracking = true
show_thought_visualization = true

📊 API Reference

Core Types

ThoughtData

rust
pub struct ThoughtData {
    pub thought: String,
    pub thought_number: u32,
    pub total_thoughts: u32,
    pub next_thought_needed: bool,
    pub is_revision: Option<bool>,
    pub revises_thought: Option<u32>,
    pub branch_from_thought: Option<u32>,
    pub branch_id: Option<String>,
    pub needs_more_thoughts: Option<bool>,
}

ThinkingSession

rust
pub struct ThinkingSession {
    pub session_id: String,
    pub title: String,
    pub thoughts: Vec<ThoughtData>,
    pub branches: HashMap<String, Vec<ThoughtData>>,
    pub metadata: SessionMetadata,
}

Server Endpoints

Tools

  • sequential_thinking: Main thinking tool (MCP 2025-06-18 compliant)
  • export_session: Export thinking session in various formats
  • analyze_session: Get analytics and insights from session
  • merge_sessions: Merge multiple thinking sessions

Resources

  • session_history: Access to thinking session history
  • analytics_data: Session analytics and metrics
  • export_templates: Export format templates

🧪 Testing

Run Tests

bash
# Run all tests
cargo test

# Run specific test suite
cargo test --test thinking_tests

# Run with coverage
cargo tarpaulin

Integration Tests

bash
# Run integration tests
cargo test --test integration_tests

# Run performance benchmarks
cargo bench

📈 Performance

Benchmarks

  • Thought Processing: ~0.1ms per thought (vs 1-5ms in TypeScript)
  • Session Creation: ~0.5ms (vs 10-20ms in TypeScript)
  • Branch Management: ~0.2ms per branch (vs 2-8ms in TypeScript)
  • Export Operations: ~1ms for JSON, ~5ms for Markdown (vs 50-200ms in TypeScript)

Memory Usage

  • Per Session: ~2KB base + 100 bytes per thought
  • Server Memory: ~10MB base + 1KB per active session
  • Client Memory: ~5MB base + 500 bytes per session

🔒 Security

Features

  • Input Validation: Comprehensive validation of all inputs
  • Session Isolation: Complete isolation between sessions
  • Rate Limiting: Built-in rate limiting for API endpoints
  • Authentication: Optional OAuth 2.1 support
  • Audit Logging: Complete audit trail for all operations

Best Practices

  • Validate all user inputs before processing
  • Implement proper session cleanup
  • Use HTTPS for all HTTP communications
  • Regular security audits and updates

🤝 Contributing

Development Setup

bash
# Clone repository
git clone https://github.com/techgopal/ultrafast-mcp-sequential-thinking.git
cd ultrafast-mcp-sequential-thinking

# Install dependencies
cargo build

# Run development server
cargo run --bin sequential-thinking-server -- --dev

# Run tests
cargo test

Code Style

  • Follow Rust coding standards
  • Use cargo fmt for formatting
  • Use cargo clippy for linting
  • Write comprehensive tests

Pull Request Process

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Update documentation
  6. Submit a pull request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Model Context Protocol: For the excellent protocol specification
  • UltraFast MCP: For the high-performance Rust framework
  • Official Sequential Thinking Server: For the original TypeScript implementation

🔄 Changelog

v1.0.0

  • Initial release
  • Full MCP 2025-06-18 compliance
  • High-performance Rust implementation
  • Comprehensive testing suite
  • Production-ready features

Built with ❤️ using UltraFast MCP

Установка

TypingMind
{
  "mcpServers": {
    "ultrafast-mcp-sequential-thinking": {
      "command": "cargo",
      "args": [
        "run",
        "--bin",
        "sequential-thinking-server",
        "--",
        "--transport",
        "stdio"
      ]
    }
  }
}

Используйте MCP UltraFast MCP 连续思考 с разными ИИ-моделями

TypingMind подключает инструменты MCP на уровне рабочего пространства, поэтому после подключения UltraFast MCP 连续思考 вы можете использовать их с разными моделями ИИ в TypingMind, не настраивая подключение отдельно для каждой модели. Вы можете запустить MCP локально на своём устройстве или подключиться к удалённому серверу MCP по URL.

Вариант 1: используйте локальный коннектор

Выберите этот способ, если серверу MCP нужен доступ к локальным файлам, приложениям или закрытым ресурсам на вашем компьютере.

1

Откройте настройки MCP

В TypingMind откройте «Настройки», затем «Расширенные настройки», перейдите в раздел «Протокол контекста модели» и выберите «Настроить коннектор».

  1. Откройте TypingMind в браузере.
  2. Нажмите значок настроек.
  3. Перейдите в «Расширенные настройки».
  4. Откройте раздел «Протокол контекста модели».
  5. Нажмите «Настроить коннектор» и выберите «Это устройство».
Экран настройки коннектора MCP в TypingMind с выбранным вариантом «Это устройство»
2

Выполните команду коннектора

Выберите «Это устройство», скопируйте команду из TypingMind и выполните её в терминале. Не останавливайте процесс, пока используете MCP.

  1. Скопируйте команду настройки, показанную в TypingMind.
  2. Откройте «Терминал» в macOS или Windows Terminal в Windows.
  3. Вставьте и выполните команду.
  4. Подтвердите установку пакета, если терминал запросит разрешение продолжить.
  5. Не закрывайте окно терминала и не останавливайте процесс, пока используете инструменты MCP.
3

Добавьте UltraFast MCP 连续思考 как сервер

Когда статус коннектора сменится на «Готов», нажмите «Изменить серверы» и вставьте конфигурацию сервера MCP.

  1. Дождитесь, пока статус коннектора сменится на «Готов».
  2. Нажмите «Изменить серверы».
  3. Вставьте конфигурацию сервера MCP для UltraFast MCP 连续思考.
  4. Сохраните список серверов.
  5. Обновите статус, если хотите убедиться, что коннектор по-прежнему готов к работе.
Настройки MCP в TypingMind с активным сервером и кнопкой «Изменить серверы»
{
  "mcpServers": {
    "ultrafast-mcp-sequential-thinking": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Используйте подключение с разными моделями

Сохраните список серверов, откройте раздел «Плагины», включите инструменты MCP для UltraFast MCP 连续思考, затем выберите любую поддерживаемую модель ИИ в TypingMind и используйте инструменты в чате или назначьте их ИИ-агенту.

  1. Откройте страницу «Плагины» в TypingMind.
  2. Включите инструменты MCP для UltraFast MCP 连续思考.
  3. Начните чат и выберите модель ИИ, которую хотите использовать.
  4. Используйте инструменты MCP в чате или назначьте их ИИ-агенту.
  5. При необходимости переключайтесь на другую модель ИИ без повторного подключения MCP.
Чат TypingMind с включёнными инструментами MCP и выбранной ИИ-моделью
Можете помочь мне с этой задачей с помощью UltraFast MCP 连续思考?
UltraFast MCP 连续思考
Конечно. Я всё прочитал.
Вот что я нашёл с помощью UltraFast MCP 连续思考.

Вариант 2: добавьте URL сервера MCP

Выберите этот способ, если UltraFast MCP 连续思考 уже размещён на удалённом сервере или вашей команде нужен общий коннектор для нескольких пользователей.

1

Откройте коннекторы MCP

В TypingMind перейдите в раздел «Плагины», откройте «Коннекторы MCP» и выберите «Добавить URL».

  1. Откройте TypingMind в браузере.
  2. Перейдите в раздел «Плагины».
  3. Откройте раздел «Коннекторы MCP».
  4. Нажмите «Добавить URL».
Форма «Добавить URL своего сервера MCP» в TypingMind
2

Вставьте URL сервера

Введите URL сервера MCP, предоставленный поставщиком в поле «URL сервера». Добавьте название подключения, описание, значок, пользовательские HTTP-заголовки или настройки клиента OAuth, если они требуются серверу.

  1. Вставьте URL сервера MCP, предоставленный поставщиком в поле «URL сервера».
  2. Введите название подключения для UltraFast MCP 连续思考.
  3. Добавьте описание и значок, чтобы подключение было проще узнать.
  4. Добавьте пользовательские HTTP-заголовки или данные клиента OAuth, если сервер требует аутентификации.
3

Создайте подключение

Нажмите «Создать подключение», затем вернитесь к списку плагинов и убедитесь, что новое подключение MCP активно.

  1. Нажмите «Создать подключение».
  2. Вернитесь к списку коннекторов MCP.
  3. Убедитесь, что подключение UltraFast MCP 连续思考 отображается как активное.
  4. Обновите список плагинов, если подключение не появится сразу.
4

Переключайте модели без повторного подключения

Начните чат с предпочитаемой моделью, включите инструменты UltraFast MCP 连续思考 в разделе «Плагины» и при необходимости переключитесь на другую модель. Подключение MCP останется доступным в рабочем пространстве TypingMind.

  1. Начните новый чат в TypingMind.
  2. Выберите модель ИИ, которую хотите использовать.
  3. Включите инструменты UltraFast MCP 连续思考 в разделе «Плагины».
  4. При необходимости попросите модель использовать инструмент.
  5. Переключитесь на другую модель ИИ и используйте то же подключение MCP.
Чат TypingMind с включёнными инструментами MCP и выбранной ИИ-моделью
Можете помочь мне с этой задачей с помощью UltraFast MCP 连续思考?
UltraFast MCP 连续思考
Конечно. Я всё прочитал.
Вот что я нашёл с помощью UltraFast MCP 连续思考.

Часто задаваемые вопросы

Для чего используется сервер MCP UltraFast MCP 连续思考?

UltraFast MCP 连续思考 — это сервер MCP, который позволяет совместимым ИИ-клиентам подключаться к внешним инструментам и получать контекст. В TypingMind достаточно один раз добавить этот сервер MCP, чтобы его инструменты стали доступны в вашем рабочем пространстве с ИИ.

Можно ли использовать сервер MCP UltraFast MCP 连续思考 с несколькими ИИ-моделями в TypingMind?

Да. TypingMind подключает инструменты MCP на уровне рабочего пространства, поэтому вы можете использовать UltraFast MCP 连续思考 с разными ИИ-моделями, например Claude, ChatGPT, Gemini или другими моделями, настроенными в TypingMind, без отдельной настройки сервера MCP для каждой модели.

Зачем использовать MCP UltraFast MCP 连续思考 с TypingMind?

TypingMind — один из лучших интерфейсов для чата с LLM: он объединяет разные ИИ-модели, промпты, плагины, ИИ-агентов, ключи API и инструменты MCP в одном рабочем пространстве. Подключив UltraFast MCP 连续思考, вы сможете использовать его инструменты MCP с предпочитаемыми моделями, сохраняя удобную организацию работы с чатами в TypingMind.

Как подключить сервер MCP UltraFast MCP 连续思考 к TypingMind?

UltraFast MCP 连续思考 можно подключить к TypingMind через локальный коннектор MCP или добавив URL удалённого сервера MCP. Используйте локальный коннектор, если серверу нужен доступ к файлам, приложениям или закрытым ресурсам на вашем устройстве, и URL сервера, если сервер MCP размещён удалённо.

Какие инструменты предоставляет сервер MCP UltraFast MCP 连续思考 в TypingMind?

UltraFast MCP 连续思考 предоставляет возможности MCP, которые можно включить на странице «Плагины» в TypingMind и использовать в чате или назначить ИИ-агентам.

Нужно ли передавать TypingMind свои ключи API для использования сервера MCP UltraFast MCP 连续思考?

Нет. TypingMind ориентирован прежде всего на локальную работу и позволяет вам контролировать выбор провайдеров моделей, ключи API, промпты и конфигурацию MCP. Если UltraFast MCP 连续思考 требует аутентификации, при создании подключения добавьте необходимые заголовки, настройки OAuth или локальную конфигурацию для этого сервера MCP.

Похожие серверы MCP

Все

Создайте свою рабочую ИИ-среду сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇