
iamrichardd/mcp-server-pinescript
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
ドキュメントアクセスとコードレビュー機能を備えたPineScript v6開発用のAI最適化されたMCPサーバー
概要
PineScript v6開発用のAI最適化モデルコンテキストプロトコル(MCP)サーバー、包括的なドキュメントアクセス、スタイルガイドの遵守、AIコーディングエージェントに特化したコードレビュー機能を提供します。 : 4,277x は、メモリファーストアーキテクチャによるデータアクセスを <15ms 応答時間を短縮します。 : - エラー検出: SHORT TITLE TOO LONG (39 chars > 10 限度) - エラー検出: INVALID PRECISION (15 > 最大許容 8) - パフォーマンス: サブ-15ms 応答時間 - 出力: 重度のJSONを構成し、提案を修正 (pinescript reference): - 457関数+ 427変数を渡る同義語の拡張とセマンティック検索 - JSONチャンクを介して大きな結果セットの配信を合理化 - 技術的用語のための高められたキーワードマッチング (pinescript review): - PineScriptプロジェクト全体のためのディレクトリサポート - マルチフォーマット出力(JSON、Markdown、ストリーミング) - Severityフィルタリング(エラー、警告、提案) - 大規模なコードベースのためのリアルタイムストリーミング - 100%の9検証ルール...
概要(AI 翻訳)
PineScript v6開発用のAI最適化モデルコンテキストプロトコル(MCP)サーバー、包括的なドキュメントアクセス、スタイルガイドの遵守、AIコーディングエージェントに特化したコードレビュー機能を提供します。
性能のメートル:4,277xは10の限界の記憶ファーストの建築を通してデータ アクセスを速くします
- エラー検出:INVALID PRECISION(15 >最大8許可)
- 性能:サブ-15ms応答時間
- 出力:重度レベルおよび苦境の提案の組み立てられたJSON
コア機能
ドキュメント検索([pinescript_reference])):
- 457関数+ 427変数を渡る同義語の拡張を用いるSemantic調査
- JSONチャンクを介して大きな結果セットの配信をストリーミング
- 技術的な条件のための高められたキーワードの一致
コードレビュー (pinescript_review)):
- PineScript プロジェクト全体のディレクトリサポート
- マルチフォーマット出力(JSON、Markdown、ストリーミング)
- 重度のフィルタリング(エラー、警告、提案)
- 大規模なコードベース用のリアルタイムストリーミング
- 100%のテストの適用範囲の9つの検証規則
基本使用コマンド
コード検証:
文書研究:
プロジェクトレビュー:
性能検証:
統合セットアップ
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
PineScript MCP Documentation Server
AI-optimized Model Context Protocol (MCP) server for PineScript v6 development, providing comprehensive documentation access, style guide adherence, and code review capabilities specifically designed for AI coding agents.
Performance Metrics: 4,277x faster data access through memory-first architecture with <15ms response times.
Quick Start (2 minutes)
Installation & Verification:
# 1. Install and connect
npm install [email protected]:iamrichardD/mcp-server-pinescript.git
claude mcp add pinescript-docs node ./node_modules/mcp-server-pinescript/index.js
# 2. Verify connection
claude mcp list # Should show "pinescript-docs: Connected ✓"
# 3. Test validation (this code has deliberate errors)
claude -p "Use pinescript_review to check: //@version=6
indicator('RSI Test', shorttitle='RSI_INDICATOR_WITH_LONG_TITLE', overlay=false, precision=15)
plot(ta.rsi(close,14))"
# Expected: 2 errors detected in <15ms with actionable fixes
Verification Indicators:
- Error detection: SHORT_TITLE_TOO_LONG (39 chars > 10 limit)
- Error detection: INVALID_PRECISION (15 > max allowed 8)
- Performance: Sub-15ms response times
- Output: Structured JSON with severity levels and fix suggestions
Core Capabilities
Documentation Search (pinescript_reference):
- Semantic search with synonym expansion across 457 functions + 427 variables
- Streaming delivery for large result sets via JSON chunks
- Enhanced keyword matching for technical terms
Code Review (pinescript_review):
- Directory support for entire PineScript projects
- Multi-format output (JSON, Markdown, streaming)
- Severity filtering (errors, warnings, suggestions)
- Real-time streaming for large codebases
- 9 validation rules with 100% test coverage
Basic Usage Commands
Code Validation:
claude -p "Use pinescript_review to check this code: [your PineScript code]"
Documentation Research:
claude -p "Use pinescript_reference to search 'array functions'"
Project Review:
claude -p "Use pinescript_review with source_type=directory, directory_path=./src"
Performance Verification:
time claude -p "Use pinescript_reference to search 'ta.sma'"
# Target: <15ms total response time
Integration Setup
Claude Desktop Integration - Add to @claude_desktop_config.json:
{
"mcpServers": {
"pinescript": {
"command": "node",
"args": ["/path/to/mcp-server-pinescript/index.js"]
}
}
}
Local Development Mode:
git clone https://github.com/iamrichardD/mcp-server-pinescript.git
cd mcp-server-pinescript && npm install && npm start
# Should show: "PineScript MCP Server ready with preloaded documentation!"
Performance & Architecture
Performance Characteristics:
- Response Times: 5-15ms for typical queries (70-85% faster than baseline)
- Memory Usage: ~12MB RAM with 555KB preloaded documentation
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"pinescript": {
"command": "node",
"args": ["/path/to/mcp-server-pinescript/index.js"]
}
}
}