Skip to content

Improve MCP - #71

Merged
VJalili merged 13 commits into
B1AAB:mainfrom
VJalili:mcp-doc
Aug 20, 2026
Merged

Improve MCP#71
VJalili merged 13 commits into
B1AAB:mainfrom
VJalili:mcp-doc

Conversation

@VJalili

@VJalili VJalili commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

This PR implements the following improvements on the MCP interface.

  • Added a CLI to the MCP server with a --http flag to select transport.
  • Added support for running the MCP server over stdio (the default), in addition to Streamable HTTP, so clients that launch the server themselves (e.g., Claude Desktop, MCP inspector) can speak MCP directly over stdin/stdout. This includes routing Serilog console output to stderr so log lines no longer corrupt the stdio JSON-RPC stream.
  • Rewrote the MCP README.md
  • Added the Address property of Script nodes to the indexed/unique properties list, enabling lookups by address
  • When asking for neighbors of a node at n-hop distance, EBA previous used apoc.path.spanningTree. However, it turns out that this method returns one relation per node it visits, so if there are multiple relations between two nodes, all except one, are not returned. This causes a lot of bugs and issues in various computations, e.g., computing a root node's balance given the incoming and outgoing edges with neighbors. This PR replaces apoc.path.spanningTree with apoc.path.subgraphAll to fix this issue.
  • Fixed a bug where a small queryLimit produced inaccurate/incomplete neighbor results.
  • Fixed a bug in script balance calculation that could include already-spent outputs.
  • Fixed a bug in miscalculating paid fee when computing Tx summary.
  • Made the working directory configurable via an explicit Options constructor. This allows the MCP CLI to set its own working directory instead of relying on the default session-based path.
  • Added an MCP "Cookbook" doc page with example prompts and responses.
  • Introduced custom Docusaurus admonition types (Prompt/Response) and restructured the MCP cookbook to use them for improved readability

@VJalili
VJalili merged commit c673c57 into B1AAB:main Aug 20, 2026
5 checks passed
@VJalili
VJalili deleted the mcp-doc branch August 20, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant