PM

phisanti/mcpr

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

27 stars 6 forks 品質 74 トレンド 25CC-BY-SA-4.0

MCPRは、AIエージェントが、プロフェッショナルな分析ワークフローにインタラクティブなRセッションに参加することを可能にします.

概要

MCPR(R用モデルコンテキストプロトコルツール)パッケージは、AI-assisted Rプログラミングの現在のパラダイムの基本的な制限に対処します。 既存のAIエージェントは、ステートレスな実行モデルで動作します。, 各コマンドのRscriptを呼び出します。, 重篤なデータ解析の反論的です。. 分析ワークフローは、探査、モデリング、および検証の累積的なプロセスで、時間や日に及ぶことができます。 また、プロットの美学のような下流のコードの中間のステップは重なる計算および小さい変更が再び全スクリプトを実行する必要があります。 MCPRは、AIエージェントがライブR環境内で持続的なインタラクティブなセッションを確立し、ワークスペースの状態を維持し、複雑でマルチステップの分析ワークフローを有効にすることによって、この問題に取り組むことを目指しています。 2分以内にMCPRで立ち上がって実行します。 あなたのAIエージェントは、Rコードを実行し、プロットを作成し、永続的なプライベートワークスペースを検査することができます.

概要(AI 翻訳)

MCPR(Rモデルコンテキストプロトコルツール)パッケージは、 人工知能の研究開発における基礎的限界 プログラミング。 既存のAIエージェントは、ステートレスな実行モデルで動作します。 各コマンドの [Rscript] を呼び出すと、 重篤なデータ分析の反復的、状態に依存する性質。 ログイン 分析ワークフローは、探査、モデリング、 時間または日に及ぶことができる検証 また、中間ステップ 重なる計算と、下流コードの小幅な変化を伴うことができます。 プロットの美学は、スクリプト全体を再び実行する必要があります。 MCPRが目指す AIエージェントが永続性を確立できるようにすることで、この問題に取り組む ライブR環境内でのインタラクティブなセッションで、 ワークスペースの状態を把握し、複雑なマルチステップの分析ワークフローを有効にします。

MCPRデモ

クイックスタート

2分以内にMCPRで立ち上がって実行します。

です! あなたのAIエージェントは、Rコードを実行し、プロットを作成し、 永続的なプライベートワークスペースを点検して下さい。 エージェントが働きたい場合 既存のインタラクティブな R セッション内で mcpr_session_start() を実行します。 [manage_r_sessions() に取り付けます。

コア機能

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

MCPR: A Practical Framework for Stateful Human-AI Collaboration in R

The MCPR (Model Context Protocol Tools for R) package addresses a fundamental limitation in the current paradigm of AI-assisted R programming. Existing AI agents operate in a stateless execution model, invoking Rscript for each command, which is antithetical to the iterative, state-dependent nature of serious data analysis. An analytical workflow is a cumulative process of exploration, modelling, and validation that can span hours or days. Moreover, intermediate steps can involve heavy computation, and small changes in downstream code such as plot aesthetics require running the entire script again. MCPR aims to tackle this issue by enabling AI agents to establish persistent, interactive sessions within a live R environment, thereby preserving workspace state and enabling complex, multi-step analytical workflows.

Quick Start

Get up and running with MCPR in under 2 minutes:

# 1. Install MCPR
remotes::install_github("phisanti/MCPR")

# 2. Configure your AI agent to launch the MCPR server
library(MCPR)
install_mcpr(agent = "claude")

# 3. In your AI agent (Claude, etc.), start using MCPR tools
# MCPR::mcpr_server() is the agent's private R session by default

# 4. Optionally attach to a live R session with manage_r_sessions()
# Example: execute_r_code("summary(mtcars)")

That’s it! Your AI agent can execute R code, create plots, and inspect a persistent private workspace. If you want the agent to work inside an existing interactive R session, run mcpr_session_start() there and attach with manage_r_sessions().

Core capabilities

MCPR’s design is guided by principles of modularity, robustness, and practicality.

  • Communication Protocol: MCPR uses JSON-RPC 2.0 over nanonext sockets, providing a lightweight, asynchronous, and reliable messaging layer. This choice ensures cross-platform compatibility and non-blocking communication suitable for an interactive environment.
GitHub で README 全文を見る

インストール

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

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "mcpr": { "command": "R", "args": ["--quiet", "--slave", "-e", "MCPR::mcpr_server()"] } } }