don't automatically dispatch to a busy session

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

还没有人认领这个 Issue。

  • #80 来自 @simonpcouch —— 已关闭,未合并

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
r
领域
backend, tooling

调研方向

首先跟踪 mcp_session() 的默认 dispatch 行为,并将其与 list_r_sessions() 使用的响应式会话筛选进行比较。完成的标准是:请求选择编号最小的响应式会话;当不存在此类会话时,仍保留服务器回退;验证忙碌和空闲的 R 会话。

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

描述

I just ran into a (simplified) situation where I had 2 R sessions running, both configured with mcp_session() via .Rprofile.

  • Session 1), the first one to be connected with mcp_session(), is running long-running code and has been / will be busy for hours
  • Session 2) is mostly idle

If I explicitly ask to list_r_sessions() and then select 2), the server runs fine. Otherwise, the request is automatically dispatched to 1), where it fails.

Notably, when I list_r_sessions(), 1) doesn't even show up—this makes sense to me and doesn't require any changes—but I think our default session should change from:

  • Before: The lowest-numbered session (or the server itself if there is none), to
  • After: The lowest-numbered session that is actually responsive, e.g. the smallest index that would appear in list_r_session() if called (or the server itself if there is none)
主要语言
R
星标
207
派生
24
平均合并
36 分钟
30 天内合并 PR
2

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

posit-dev/mcptools 的其他 Issue

查看 posit-dev/mcptools 的全部 Issue

相似的 Issue

更多 R Issue

把新 issue 发到你的邮箱

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