
phisanti/mcpr
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
MCPR은 AI 에이전트가 전문 분석 워크플로우를 위한 대화형 R 세션에 참여할 수 있도록 합니다.
개요
MCPR (모델 Context Protocol Tools for R) 패키지는 AI-assisted R 프로그래밍의 현재 패러다임의 기본 제한을 해결합니다. Existing AI Agent는 stateless 실행 모델에서 작동하며, 각 명령에 대한 Rscript를 호출하여 심각한 데이터 분석의 상태 의존성에 대한 antithetical입니다. 분석 작업 흐름은 시간 또는 일 동안 할 수있는 탐험, 모델링 및 검증의 누적 과정입니다. 또한 중간 단계는 무거운 계산을 포함 할 수 있으며, 심미적 인 플롯과 같은 다운 스트림 코드의 작은 변화는 전체 스크립트를 다시 실행해야합니다. MCPR은 AI 에이전트가 실시간 R 환경에서 지속적이고 상호 작용하는 세션을 수립하기 위해 이 문제를 해결하는 것을 목표로하고, 워크스페이스 상태를 보존하고 복잡한 다중 단계 분석 워크플로를 가능하게합니다. 2 분 이내에 MCPR과 함께 실행하십시오. AI 대리인은 R 부호를 실행할 수 있고, 도형을 창조하고, 지속적인 개인 작업 공간을 검열합니다.
개요(AI 번역)
MCPR (모델 Context Protocol Tools for R) 패키지는
AI 보조 R의 현재 패러다임의 기본 제한
프로그램. 기존 AI 에이전트는 stateless 실행 모델에서 작동,
invoking Rscript 각 명령에 대한, 이는 항의학이다
심각한 데이터 분석의 상태 의존적 성격. 이름 *
분석 워크플로우는 탐험, 모델링,
시간 또는 일 동안 할 수있는 검증. 또한, 중간 단계
무거운 계산을 포함 할 수 있습니다, 과 같은 다운스트림 코드에 작은 변화
플로트 미학은 전체 스크립트를 다시 실행해야합니다. MCPR은
AI Agent를 활성화하여 이 문제를 해결합니다.
라이브 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
nanonextsockets, providing a lightweight, asynchronous, and reliable messaging layer. This choice ensures cross-platform compatibility and non-blocking communication suitable for an interactive environment.
설치
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()"]
}
}
}