Add stdio transport entry point (src/stdio.js) - #2
Merged
Conversation
Adds a stdio entry point that reuses the existing createApiClient + registerTools from src/index.js and connects a StdioServerTransport. The HTTP server (src/index.js) is unchanged. Enables local use in MCP clients (Claude Desktop, Cursor) and wrapping by mcp-proxy (Glama).
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.
What
Adds
src/stdio.js— a stdio entry point for the MCP server.It reuses the existing
createApiClient+registerToolsfromsrc/index.js(no logic duplicated) and connects aStdioServerTransport. Also adds astart:stdioscript and apublora-mcp-stdiobin.Why
mcp-proxy) expect a stdio server. This adds that without changing the HTTP path.npx/node src/stdio.js), and unblocks the Glama quality Release (mcp-proxy wraps a stdio server).Safety
src/index.js(the livemcp.publora.comserver) is unchanged. This only adds a new file + additive package.json entries.initialize+tools/listover stdio returns all 18 tools. stdout stays clean (logs go to stderr).PUBLORA_API_KEY; introspection (tools/list) works without a key.Follow-up (not in this PR)
zodis used insrc/index.jsbut not declared independencies(works via npm hoisting). Worth declaring explicitly in a separate PR.