CP

cklose2000/pinescript-mcp-server

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

105 stars 25 forks Качество 50 Тренд 15

cklose2000/pinescript-mcp-server — это кандидат на MCP-сервер, импортированный из https://github.com/cklose2000/pinescript-mcp-server.

Обзор

cklose2000/pinescript-mcp-server — это кандидат на MCP-сервер, импортированный из https://github.com/cklose2000/pinescript-mcp-server.

Обзор (машинный перевод)

Комплексный инструмент для создания, оптимизации и управления торговыми стратегиями PineScript.

Структура проекта

Быстрый старт

  1. Установка зависимости:

  2. Запустите пользовательский интерфейс (выберите один метод):

  3. Получите доступ к веб-интерфейсу по адресу:

(Не обязательно для настройки десктопного приложения)

Опции интерфейса

Проект включает несколько способов доступа к интерфейсу:

1. Next.js Сервер разработки

2. Альтернативные варианты серверов

3. Десктопное приложение

Для сред, где веб-серверы имеют проблемы с подключением:

Устранение неполадок UI-сервера

Если у вас возникают проблемы с подключением к серверу интерфейса:

  1. Проверьте настройки фаервола
  2. Запустите скрипт исключения межсетевого экрана: npm run firewall:allow
  3. См. раздел scripts/docs/ui-connect-guide.md для подробного устранения неисправностей соединения
  4. Попробуйте опцию десктопного приложения: npm run ui:electron

Утилитарные скрипты

Репозиторий включает несколько утилитных скриптов для помощи в разработке и устранении неполадок:

Ключевые серверные скрипты (в scripts/server/)

  • run-ui-clean.bat - Основной скрипт для запуска UI-сервера (очищает существующие процессы)
  • run-ui-admin.bat - Запускает сервер интерфейса с правами администратора
  • Серв-тестовая страница.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

PineScript MCP Project

A comprehensive tool for creation, optimization, and management of PineScript trading strategies.

Project Structure

├── src/             # Core application code
├── ui/              # Next.js web interface
├── dist/            # Compiled JavaScript
├── docs/            # Documentation
├── scripts/         # Utility scripts
│   ├── server/      # Server management scripts
│   ├── network/     # Network diagnostics scripts
│   └── docs/        # Documentation
├── data/            # Data files
├── tests/           # Application tests
├── examples/        # Example scripts and strategies
└── memory-bank/     # Project context and information

Quick Start

  1. Install dependencies:

    npm install
    
  2. Start the UI (choose one method):

    # Standard Next.js development server
    npm run ui
    
    # Clean start with port cleanup
    npm run ui:clean
    
    # Alternative Express server (if Next.js has issues)
    npm run ui:express
    
    # Desktop app (no web server required)
    npm run ui:electron
    
  3. Access the web interface at:

    http://localhost:3001
    

    (Not required for the desktop app option)

UI Options

The project includes multiple ways to access the UI:

1. Next.js Development Server

# Standard Next.js dev server
npm run ui

# Clean start (kills any existing processes using the ports)
npm run ui:clean

# Start with administrator privileges (for stubborn processes)
npm run ui:admin

2. Alternative Server Options

# Simple Express server (more stable alternative)
npm run ui:express

# Basic HTML test page server
npm run ui:test

3. Desktop Application

For environments where web servers have connectivity issues:

# Electron desktop application (no web server required)
npm run ui:electron

Troubleshooting UI Server

If you experience connection issues with the UI server:

  1. Check your firewall settings
  2. Run the firewall exception script: npm run firewall:allow
  3. See the scripts/docs/ui-connect-guide.md for detailed connection troubleshooting
  4. Try the desktop app option: npm run ui:electron

Utility Scripts

The repository includes several utility scripts to help with development and troubleshooting:

Essential Server Scripts (in scripts/server/)

  • run-ui-clean.bat - Main script to start the UI server (cleans up existing processes)
  • run-ui-admin.bat - Starts the UI server with administrator privileges
  • serve-test-page.bat - Serves a simple HTML test page on port 8000 to test connectivity
  • run-express-server.bat - Starts an Express server as an alternative to Next.js
  • run-electron-app.bat - Starts the Electron desktop application (no web server required)

Network Troubleshooting (in scripts/network/)

  • check-connectivity.bat - Comprehensive network connectivity diagnostics
  • check-windows-firewall.bat - Check firewall status and rules
Открыть полный README на GitHub

Установка

npx pinescript-mcp-server
Новичок в MCP? Начните с руководства на mcpskill.org →