
posit-dev/mcptools
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
posit-dev/mcptoolsは、https://github.com/posit-dev/mcptools.からインポートされたMCPサーバー候補です。
概要
posit-dev/mcptoolsは、https://github.com/posit-dev/mcptools.からインポートされたMCPサーバー候補です。
概要(AI 翻訳)
mcptoolsはモデルコンテキストを実装しています Rのプロトコル。には二つの側面があります。 mcptools:
RをMCPサーバーとして:
mcptoolsやClaude DesktopのようなMCP対応ツールで設定した場合、 Claude CodeとVS CodeのGitHub Copilotはセッション内でRコードを実行できます 質問に答えるためにrunning*があります。パッケージがサポートしている間は 任意のR関数の設定について、興味があるかもしれません ちなみに、パッケージの統合サポート mcptoolsは、閲覧するためのデフォルトツールセットを提供します。 インストールしたパッケージのドキュメントがあれば、以下のオブジェクトを確認してください。 あなたのグローバル環境、そしてセッションに関するメタデータを取得します。 プラットフォーム。
RをMCPクライアントとして:
サードパーティのMCPサーバーを登録してください。 エルマーがチャットでさらに統合 例えば、ShinyChatへの文脈 そしてQueryChatアプリも利用可能です。
設置
CRANから以下でmcptoolsをインストールしてください:
mcptoolsの開発版は以下のようにインストールできます:
RとしてMCPサーバーとして
mcptoolsはMCPをサポートする任意のアプリケーションに接続可能です。について
例として、Claude Desktopで使う場合は、以下の内容を貼り付けることができます
あなたのClaudeデスクトップ設定(macOS上で、at
~/Library/Application Support/Claude/claude_desktop_config.json):
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
mcptools
mcptools implements the Model Context Protocol in R. There are two sides to mcptools:
R as an MCP server:
When configured with mcptools, MCP-enabled tools like Claude Desktop, Claude Code, and VS Code GitHub Copilot can run R code in the sessions you have running to answer your questions. While the package supports configuring arbitrary R functions, you may be interested in the btw package’s integrated support for mcptools, which provides a default set of tools to to peruse the documentation of packages you have installed, check out the objects in your global environment, and retrieve metadata about your session and platform.
R as an MCP client:
Register third-party MCP servers with ellmer chats to integrate additional context into e.g. shinychat and querychat apps.
Installation
Install mcptools from CRAN with:
install.packages("mcptools")
インストール
docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server設定
{
"mcpServers": {
"r-mcptools": {
"command": "Rscript",
"args": ["-e", "mcptools::mcp_server()"]
}
}
}