feat: add MCP server for coding agents (Claude Code, Cursor, Windsurf) - #11
Open
rajarshidattapy wants to merge 1 commit into
Open
feat: add MCP server for coding agents (Claude Code, Cursor, Windsurf)#11rajarshidattapy wants to merge 1 commit into
rajarshidattapy wants to merge 1 commit into
Conversation
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.
Closes #1
What this adds
An MCP (Model Context Protocol) server at
mcp/index.tsthat exposes webpull's crawling engine as tools callable by any MCP-compatible coding agent.Why it belongs here
webpull's primary use case is feeding docs to LLMs. The CLI forces a manual two-step — pull first, then point the agent at the directory. This collapses it into a single agent-native call:
Tools exposed
pull_docssearch_docsread_doclist_docsrun_codeSetup (one command)
Implementation notes
@modelcontextprotocol/sdkneeded. Runs on Bun, same runtime webpull already requires.mcp/index.ts. No new packages, no build step.webpullCLI — doesn't import fromsrc/, so the MCP server stays decoupled from internal refactors.~/.webpull-docs/<hostname>/, only pulled once per site.run_codeis scoped to developer machines — inherits the user's env, not a multi-tenant sandbox. Documented clearly.Files changed
mcp/index.ts— MCP server (new file)mcp/README.md— setup instructions for Claude Code, Cursor, Windsurfpackage.json— addswebpull-mcpbin entry