Logotipo de UltraFast MCP 连续思考

UltraFast MCP 连续思考

Comunidad
techgopal

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

Editortechgopal
Repositorioultrafast-mcp-sequential-thinking
IdiomaRust
Forks
3
Estrellas
16
Herramientas disponibles
0
Tipo de transportestdio, streamable-http
Categorías
LicenciaMIT
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    UltraFast MCP 连续思考 ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 0 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés en el código abierto

    16 estrellas y 3 forks en el repositorio enlazado.

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

Instalación

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

Usa el MCP de UltraFast MCP 连续思考 con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado UltraFast MCP 连续思考, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Puedes ejecutar MCP localmente en tu dispositivo o conectarte a la URL de un servidor MCP remoto.

Opción 1: Usa el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade UltraFast MCP 连续思考 como servidor

Cuando el estado del conector sea «Listo», haz clic en «Edita servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en Edita servidores.
  3. Pega la configuración del servidor MCP de UltraFast MCP 连续思考.
  4. Guarda la lista de servidores.
  5. Actualiza para comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Edita servidores»
{
  "mcpServers": {
    "ultrafast-mcp-sequential-thinking": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Úsala con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de UltraFast MCP 连续思考 y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de UltraFast MCP 连续思考.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar UltraFast MCP 连续思考 para ayudarme con esta tarea?
UltraFast MCP 连续思考
Claro. Lo he leído.
Esto he encontrado usando UltraFast MCP 连续思考.

Opción 2: Añade la URL de un servidor MCP

Usa esta opción si UltraFast MCP 连续思考 ya está alojado en un servidor remoto o si tu equipo quiere un conector compartido al que puedan acceder varios usuarios.

1

Abre Conectores MCP

En TypingMind, ve a Plugins, abre Conectores MCP y elige Añadir URL.

  1. Abre TypingMind en tu navegador.
  2. Ve a Plugins.
  3. Abre Conectores MCP.
  4. Haz clic en Añadir URL.
Formulario de TypingMind para añadir la URL de un servidor MCP personalizado
2

Pega la URL del servidor

Introduce la URL del servidor MCP facilitada por el proveedor en el campo URL del servidor. Añade un nombre de conexión, una descripción, un icono, cabeceras HTTP personalizadas o la configuración del cliente OAuth si el servidor los requiere.

  1. Pega la URL del servidor MCP facilitada por el proveedor en el campo URL del servidor.
  2. Introduce un nombre para la conexión de UltraFast MCP 连续思考.
  3. Añade una descripción y un icono si quieres que sea más fácil de identificar.
  4. Añade cabeceras HTTP personalizadas o los datos del cliente OAuth si el servidor requiere autenticación.
3

Crea la conexión

Haz clic en Crear conexión, vuelve a la lista de plugins y comprueba que la nueva conexión MCP esté activa.

  1. Haz clic en Crear conexión.
  2. Vuelve a la lista de conectores MCP.
  3. Comprueba que la conexión de UltraFast MCP 连续思考 aparezca como activa.
  4. Actualiza la lista de plugins si la conexión no aparece de inmediato.
4

Cambia de modelo sin volver a conectar

Inicia un chat con tu modelo preferido, activa las herramientas de UltraFast MCP 连续思考 desde Plugins y cambia de modelo cuando lo necesites. La conexión MCP seguirá disponible en el espacio de trabajo de TypingMind.

  1. Inicia un nuevo chat en TypingMind.
  2. Selecciona el modelo de IA que quieras usar.
  3. Activa las herramientas de UltraFast MCP 连续思考 desde Plugins.
  4. Pide al modelo que use la herramienta cuando sea necesario.
  5. Cambia a otro modelo de IA y reutiliza la misma conexión MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar UltraFast MCP 连续思考 para ayudarme con esta tarea?
UltraFast MCP 连续思考
Claro. Lo he leído.
Esto he encontrado usando UltraFast MCP 连续思考.

Preguntas frecuentes

¿Para qué sirve el servidor MCP UltraFast MCP 连续思考?

UltraFast MCP 连续思考 es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas y contexto externos. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP UltraFast MCP 连续思考 con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar UltraFast MCP 连续思考 con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el conector MCP de UltraFast MCP 连续思考 con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves de API y herramientas MCP en un solo espacio de trabajo. Con UltraFast MCP 连续思考 conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu flujo de trabajo de chat en TypingMind.

¿Cómo conecto el servidor MCP UltraFast MCP 连续思考 a TypingMind?

Puedes conectar UltraFast MCP 连续思考 en TypingMind con el conector MCP local o añadiendo la URL de un servidor MCP remoto. Usa el conector local cuando el servidor necesite acceder a archivos, aplicaciones o recursos privados de tu dispositivo, y una URL de servidor cuando el servidor MCP esté alojado de forma remota.

¿Qué herramientas ofrece el servidor MCP UltraFast MCP 连续思考 en TypingMind?

UltraFast MCP 连续思考 ofrece funciones MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves de API con TypingMind para usar el servidor MCP UltraFast MCP 连续思考?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves de API, prompts y configuración MCP. Si UltraFast MCP 连续思考 requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇