Skip to content

feat: implement HTTP server for Hedera MCP#669

Open
skurzyp-blockydevs wants to merge 6 commits intofeat/release/16.04from
feat/add-http-mcp-server
Open

feat: implement HTTP server for Hedera MCP#669
skurzyp-blockydevs wants to merge 6 commits intofeat/release/16.04from
feat/add-http-mcp-server

Conversation

@skurzyp-blockydevs
Copy link
Copy Markdown
Contributor

@skurzyp-blockydevs skurzyp-blockydevs commented Apr 8, 2026

  • Introduced a new example, external-mcp-return-bytes-agent, in the langchain-v1 package for interacting with the MCP server.
  • Added an HTTP server for Hedera MCP to handle session-based requests and interact with external agents.
  • Updated dependencies and introduced required typings for HTTP server functionalities.
  • Documentation enhancements for new example usage.

Description:

Related issue(s):

Fixes #677

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

…P server for Hedera MCP

- Introduced a new example, `external-mcp-return-bytes-agent`, in the `langchain-v1` package.
- Added an HTTP server for Hedera MCP to handle session-based requests and interact with external agents.
- Updated dependencies and introduced required typings for HTTP server functionalities.
- Documentation enhancements for new example usage.

Signed-off-by: skurzyp-blockydevs <stanislaw.kurzyp@blockydevs.com>
@skurzyp-blockydevs skurzyp-blockydevs self-assigned this Apr 8, 2026
@skurzyp-blockydevs skurzyp-blockydevs requested review from a team as code owners April 8, 2026 14:52
…ssApp`

- Replaced manual Express and CORS setup with `createMcpExpressApp` for simpler configuration and better maintainability.

Signed-off-by: skurzyp-blockydevs <stanislaw.kurzyp@blockydevs.com>
…identification

Signed-off-by: skurzyp-blockydevs <stanislaw.kurzyp@blockydevs.com>
Signed-off-by: skurzyp-blockydevs <stanislaw.kurzyp@blockydevs.com>
kierzniak
kierzniak previously approved these changes Apr 9, 2026
MWBlocky
MWBlocky previously approved these changes Apr 9, 2026
Comment on lines +146 to +149
coreTokenPlugin,
coreAccountPlugin,
coreConsensusPlugin,
coreAccountQueryPlugin,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be empty?

# Conflicts:
#	docs/DEVEXAMPLES.md
#	examples/ai-sdk/.env.example
#	examples/ai-sdk/package-lock.json
#	examples/ai-sdk/src/http.ts
#	examples/ai-sdk/src/stdio.ts
#	examples/langchain-v1/README.md
#	examples/langchain-v1/external-mcp-return-bytes-agent.ts
#	examples/langchain-v1/package.json
#	modelcontextprotocol/README.md
#	modelcontextprotocol/package.json
#	modelcontextprotocol/tsconfig.json
#	typescript/package-lock.json
#	typescript/package.json
Signed-off-by: skurzyp-blockydevs <stanislaw.kurzyp@blockydevs.com>
@skurzyp-blockydevs skurzyp-blockydevs dismissed stale reviews from MWBlocky and kierzniak via 366e525 April 10, 2026 14:18
@skurzyp-blockydevs skurzyp-blockydevs requested review from a team as code owners April 10, 2026 14:18
@skurzyp-blockydevs skurzyp-blockydevs changed the base branch from main to feat/release/16.04 April 10, 2026 14:19
Comment on lines +146 to +149
coreTokenPlugin,
coreAccountPlugin,
coreConsensusPlugin,
coreAccountQueryPlugin,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@piotrswierzy regarding your question - we need to decide if we want to include here all tools.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Up to you, we definitely should mention in the readme which tools are turned on

Comment on lines +52 to +62
// Tools that can be selectively enabled via --tools=<name>,... or "all"
const ACCEPTED_TOOLS = [
CREATE_FUNGIBLE_TOKEN_TOOL,
CREATE_NON_FUNGIBLE_TOKEN_TOOL,
AIRDROP_FUNGIBLE_TOKEN_TOOL,
MINT_NON_FUNGIBLE_TOKEN_TOOL,
TRANSFER_HBAR_TOOL,
CREATE_TOPIC_TOOL,
SUBMIT_TOPIC_MESSAGE_TOOL,
GET_HBAR_BALANCE_QUERY_TOOL,
];
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@piotrswierzy This is mirrored from the stdio.ts example MCP - do we want/need this functionality here? Do we want it in the official hedera MCP too?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Up to you, we definitely should mention in the readme which tools are turned on, regarding the official hedera MCP, it should support all tools

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.

4 participants