1. Conduid
  2. Developer Tools
  3. Hono MCP Server Sse Transport
MCP server · Developer Tools

Hono MCP Server Sse Transport

SSE Transport for MCP servers in Hono applications

Unclaimed MIT last commit a year ago devtools
54Fair

Scored 5 days ago · breakdown

About Hono MCP Server Sse Transport

Hono MCP Server Sse Transport is an MCP server published by NikaBuligini in the Developer Tools category: sSE Transport for MCP servers in Hono applications.

The repository has 29 stars and 4 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/NikaBuligini/hono-mcp-server-sse-transport

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Hono MCP Server Sse Transport

Powered by Claude · Grounded in docs

I know everything about Hono MCP Server Sse Transport. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 6 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.0.7v0.0.7 · 22 May 2025Patch Changes 2a85612: Send ping event before endpoint event @Leechael
v0.0.6v0.0.6 · 6 Apr 2025Patch Changes de00016: Add github repository URL
v0.0.5v0.0.5 · 6 Apr 2025Patch Changes 061ae4c: Fix export destingations
v0.0.4v0.0.4 · 6 Apr 2025Patch Changes e72178c: Add .npmignore
v0.0.2v0.0.2 · 6 Apr 2025Patch Changes 4b1698b: MCP Server transport for Hono applications

README

MCP Server transport for Hono applications

Overview

This project provides a transport for Hono application that needs to connect to MCP Server. An official TypeScript SDK is designed to be used with express. If you try and follow their instructions but change express with hono, you will find that it's not going to work. Even if you set HttpBinding as an env (see an example from @hono/node-server), it still doesn't work as some headers are being added to a response after it's sent.

This implementation is inspired by the following pull request

You can use this transport until there is a proper support for Hono in the official SDK.

Getting started

Installation

pnpm add -D hono-mcp-server-sse-transport

Usage

import { Hono } from 'hono';
import { serve } from '@hono/node-server';
import { streamSSE } from 'hono/streaming';
import { SSETransport } from 'hono-mcp-server-sse-transport';
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';

const mcpServer = new McpServer(
  {
    name: 'your-mcp-server-name',
    version: '1.0.0',
  },
  {
    capabilities: {
      tools: {},
    },
  },
);

// here you add your tools
// ...

const app = new Hono();

// to support multiple simultaneous connections we have a lookup object from
// sessionId to transport
const transports: { [sessionId: string]: SSETransport } = {};

app.get('/sse', (c) => {
  return streamSSE(c, async (stream) => {
    const transport = new SSETransport('/messages', stream);

    transports[transport.sessionId] = transport;

    stream.onAbort(() => {
      delete transports[transport.sessionId];
    });

    await mcpServer.connect(transport);

    while (true) {
      // This will keep the connection alive
      // You can also await for a promise that never resolves
      await stream.sleep(60_000);
    }
  });
});

app.post('/messages', async (c) => {
  const sessionId = c.req.query('sessionId');
  const transport = transports[sessionId];

  if (transport == null) {
    return c.text('No transport found for sessionId', 400);
  }

  return await transport.handlePostMessage(c);
});

serve(
  {
    fetch: app.fetch,
    port: 3000,
  },
);

README fetched from the repository 6 days ago. The original is authoritative.

Questions

About Hono MCP Server Sse Transport

How do I install Hono MCP Server Sse Transport?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Hono MCP Server Sse Transport safe to use with an AI agent?

Its trust score is 54 out of 100 (fair). It passes 4 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Hono MCP Server Sse Transport still maintained?

The last commit was a year ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.