Expose an embeddable JSON-RPC dispatch (mount into an existing httpuv app)
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- r
- Domain
- api, backend, backend-api-design
Research direction
Start by reading mcp_server(), especially its nanonext cv loop, httpuv::startServer(), service(Inf), and check_not_interactive() paths. Done means an embeddable mcp_dispatch(tools=..., resources=...) returns a JSON-RPC response list, promise, or NULL for notifications, while mcp_server() remains the stdio/HTTP wrapper.
Written by the indexing model from the issue text.
Description
mcp_server() owns its process: stdio blocks on a nanonext cv loop, HTTP starts its own httpuv::startServer() + service(Inf), and check_not_interactive() forbids embedding. Frameworks that already run httpuv (shiny, plumber2, ambiorix) can't mount an mcptools endpoint on their existing port/event loop.
Suggested shape:
dispatch <- mcp_dispatch(tools = ..., resources = ...)
# function(body, req = NULL) -> JSON-RPC response list | promise | NULL (notification)
with mcp_server() becoming a thin stdio/HTTP wrapper around it.
Part of #115.
- Dominant language
- R
- Stars
- 207
- Forks
- 24
- Avg merge
- 36m
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from posit-dev/mcptools
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 20/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
All issues in posit-dev/mcptools
Similar issues
-
num_ode_rk4_adaptive rejects atol = 0 while accepting rtol = 0 and while num_ode_dopri5 accepts bothOpenarea/ode-pde good first issue help wanted kind/contract severity/4-minor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Apich-Organization/rssn#383 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PRL-PRG/r-compile-server#70 · 1 comment ·
-
dependencies docker enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
posit-dev/images-workbench#257 ·
Maintainers usually reply within 1 day
-
dependencies docker enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
posit-dev/images-package-manager#188 ·
Maintainers usually reply within 1 day
-
dependencies docker enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
posit-dev/images-connect#222 ·
Maintainers usually reply within 1 day