integrations: K-Dense (Kady) MCP server for Dataroom + pi typebox dep fix - #5
Open
soobrosa wants to merge 2 commits into
Open
integrations: K-Dense (Kady) MCP server for Dataroom + pi typebox dep fix#5soobrosa wants to merge 2 commits into
soobrosa wants to merge 2 commits into
Conversation
A stdio MCP server that wraps the Dataroom job API (the same submit -> poll -> download contract as skills/use-dataroom/SKILL.md), so K-Dense BYOK's Kady can delegate long, fully-cited research deep-dives to a self-hosted Dataroom. Ships the server, an example custom_mcps.json registration, and a routing rule. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
The Pi dataroom-index extension imports 'typebox' but nothing installed it, so jobs failed at load with "Cannot find module 'typebox'" (error_pi_exited). Add pi/extensions/package.json and a (cd pi/extensions && npm install) step to the Mac setup so the extension loads. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a reference MCP integration so K-Dense BYOK's agent (Kady) can delegate long, fully-cited research deep-dives to a self-hosted Dataroom - sitting beside the existing client contract in
skills/use-dataroom/SKILL.md.Also fixes a pre-existing setup gap (separate commit): the Pi
dataroom-indexextension importstypeboxbut nothing installed it, so jobs failed at load.What's in it
integrations/k-dense/dataroom_mcp.py- a stdio MCP server (FastMCP) wrapping the job API (POST /jobs->GET /jobs/{id}/stats->GET /jobs/{id}/result|snapshot), the same submit/poll/download flow as the skill. Tools:commission_dataroom,dataroom_status,collect_dataroom,research_with_dataroom. Base URL resolvesargv > $DATAROOM_BASE > http://localhost:8000(points at a local instance, not the hosted demo).custom_mcps.json- ready-to-paste K-Dense registration (uv run --with mcp --with httpx).README.md- install + a routing rule for Kady (delegate "comprehensive, cited research corpus before a long-horizon task"; keep quick lookups on web search).pi/extensions/package.json+ a setup line indocs/MAC.mdtypeboxdependency and adds(cd pi/extensions && npm install)to the Mac setup, so the agent loads the extension instead of exiting withCannot find module 'typebox'.Test
End-to-end on an M3 Pro: brought up the stack (
scripts/mac-run.sh), drove the MCP server over stdio with a realmcpClientSession:list_tools-> all four tools.commission_dataroom->POST /jobs200, job id returned.dataroom_status-> polledrunning -> stopped, budget0 -> 100%.collect_dataroom->GET /result200, downloaded + unzipped a real dataroom (CONTRACT.md,OUTLINE.md,STATUS.mdscoped to the query).Before the typebox fix the job exited instantly with
error_pi_exited; after it, the agent loop ran and produced the dataroom above.