JM

johnneerdael/multiplatform-cursor-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

68 stars 16 forks 质量 63 趋势 0MIT

johnneerdael/multiplatform-cursor-mcp 是从 https://github.com/johnneerdael/multiplatform-cursor-mcp. 导入的 MCP 服务器候选。

概览

johnneerdael/multiplatform-cursor-mcp 是从 https://github.com/johnneerdael/multiplatform-cursor-mcp. 导入的 MCP 服务器候选。

概述(AI 翻译)

Cursor MCP 是 Claude 桌面应用与 Cursor 编辑器之间的桥梁,实现无缝的 AI 自动化和多实例管理。它是更广泛的模型上下文协议(MCP)生态系统的一部分,允许 Cursor 通过标准化界面与各种 AI 模型和服务交互。

概述

🤖 人工智能集成

  • 与 Claude 桌面应用程序的直接集成
  • 能够利用其他兼容MCP的AI服务
  • AI与编辑器之间的实时上下文共享
  • 人工智能驱动的自动化与代码生成

🔌 MCP 协议支持

  • 与AI模型的标准化通信
  • 可扩展插件系统,支持更多MCP
  • 上下文感知命令执行
  • 基于令牌的安全认证

🖥️ 跨平台窗口管理

  • 跨操作系统无缝管理光标编辑器窗口
  • 聚焦、最小化、恢复和程序化排列窗口
  • 跟踪窗口状态变化和位置
  • 同时处理多个光标实例

⌨️ 输入自动化

  • 支持以下功能的AI驱动键盘输入:
  • 代码生成与插入
  • 重构操作
  • 上下文感知完备
  • 多光标编辑

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Cursor MCP (Model Context Protocol)

Cursor MCP is a bridge between Claude’s desktop application and the Cursor editor, enabling seamless AI-powered automation and multi-instance management. It’s part of the broader Model Context Protocol (MCP) ecosystem, allowing Cursor to interact with various AI models and services through standardized interfaces.

Overview

🤖 AI Integration

  • Direct integration with Claude’s desktop application
  • Ability to leverage other MCP-compatible AI services
  • Real-time context sharing between AI and editor
  • AI-powered automation and code generation

🔌 MCP Protocol Support

  • Standardized communication with AI models
  • Extensible plugin system for additional MCPs
  • Context-aware command execution
  • Secure token-based authentication

🖥️ Cross-Platform Window Management

  • Seamlessly manage Cursor editor windows across operating systems
  • Focus, minimize, restore, and arrange windows programmatically
  • Track window state changes and positions
  • Handle multiple Cursor instances simultaneously

⌨️ Input Automation

  • AI-driven keyboard input with support for:
    • Code generation and insertion
    • Refactoring operations
    • Context-aware completions
    • Multi-cursor editing
  • Intelligent mouse automation including:
    • Smart selection
    • Context-menu operations
    • AI-guided navigation

🔄 Process Management

  • AI-orchestrated instance management
  • Smart workspace organization
  • Automatic context preservation
  • Intelligent session recovery

MCP Integration

Claude Desktop Integration

import { ClaudeMCP } from 'cursor-mcp/claude'

// Connect to Claude's desktop app
const claude = await ClaudeMCP.connect()

// Execute AI-powered operations
await claude.generateCode({
    prompt: 'Create a React component',
    context: currentFileContent,
    language: 'typescript'
})

// Get AI suggestions
const suggestions = await claude.getSuggestions({
    code: selectedText,
    type: 'refactor'
})

Using Multiple MCPs

import { MCPRegistry } from 'cursor-mcp/registry'

// Register available MCPs
MCPRegistry.register('claude', ClaudeMCP)
MCPRegistry.register('github-copilot', CopilotMCP)

// Use different AI services
const claude = await MCPRegistry.get('claude')
const copilot = await MCPRegistry.get('github-copilot')

// Compare suggestions
const claudeSuggestions = await claude.getSuggestions(context)
const copilotSuggestions = await copilot.getSuggestions(context)

Custom MCP Integration

import { BaseMCP, MCPProvider } from 'cursor-mcp/core'

class CustomMCP extends BaseMCP implements MCPProvider {
    async connect() {
        // Custom connection logic
    }

    async generateSuggestions(context: CodeContext) {
        // Custom AI integration
    }
}

// Register custom MCP
MCPRegistry.register('custom-ai', CustomMCP)

Configuration

The tool can be configured through environment variables or a config file at:

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →