Vignette: Connect a coding assistant to R through MCP

未关闭
#232 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
52/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
活跃
技术栈
r
领域
ai, documentation

调研方向

Start by reviewing the existing documentation, btw_mcp_server(), btw_mcp_session(), and the CLI vignette, then verify one MCP-capable client against the current upstream instructions. Draft one end-to-end setup with a concrete documentation or package-development request, explaining process and session boundaries, working-directory assumptions, tool risks, and when CLI or session access is appropriate. Done means readers can establish the connection and understand its R-session and capability boundaries.

由索引模型根据 Issue 内容生成。

描述

documentation

Goal and audience

Help users of an existing MCP-capable coding assistant connect to btw's R capabilities. Begin with R documentation and package tools, then optionally connect the assistant to an existing interactive R session.

The destination is a working connection whose R-session and capability boundaries the reader understands.

Proposed coverage — reassess before drafting

This is a starting proposal, not a fixed outline or required section order. Before writing, reassess the scope, example, and teaching sequence against the current implementation, existing documentation, and reader needs. Adjust, combine, or drop items as appropriate.

  • Configure one representative MCP client end to end using btw_mcp_server(). Select and verify that client before drafting.
  • Start with a focused tool set rather than duplicating the coding assistant's existing capabilities.
  • Demonstrate a concrete documentation or package-development request.
  • Explain the server's R process versus the reader's interactive R session.
  • Connect an existing session with btw_mcp_session() and demonstrate the difference.
  • Cover working-directory assumptions, tool selection, and risks of granting code execution or write capabilities.
  • Briefly distinguish when the CLI suffices from when session access makes MCP useful.

Suggested boundaries

Avoid MCP protocol internals and exhaustive client-configuration instructions. Teach one working setup and link to the broader reference/client documentation. Keep the CLI comparison short and cross-link the CLI vignette.

Writing guidance

Verify external client configuration against current upstream documentation as well as btw source. Be explicit about which process/session runs each operation and which setup is interactive versus blocking. Do not imply that restricted tool groups create a sandbox.

主要语言
R
星标
150
派生
13
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

posit-dev/btw 的其他 Issue

查看 posit-dev/btw 的全部 Issue

相似的 Issue

更多 R Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。