
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Connect Hono to a Model Context Protocol (MCP) server over HTTP Streaming Transport.
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'
import { StreamableHTTPTransport } from '@hono/mcp'
import { Hono } from 'hono'
const app = new Hono()
// Your MCP server implementation
const mcpServer = new McpServer({
name: 'my-mcp-server',
version: '1.0.0',
})
// Initialize the transport
const transport = new StreamableHTTPTransport()
app.all('/mcp', async (c) => {
if (!mcpServer.isConnected()) {
// Connect the mcp with the transport
await mcpServer.connect(transport)
}
return transport.handleRequest(c)
})
export default app
The simplest way to setup MCP Auth when using 3rd party auth providers.
import { Hono } from 'hono'
import { simpleMcpAuthRouter } from '@hono/mcp'
const app = new Hono()
app.route(
'/',
simpleMcpAuthRouter({
issuer: '[auth provider domain]',
resourceServerUrl: new URL('http://localhost:3000/mcp'),
})
)
// ...
// Logic to connect with the transport
For implementing custom auth, check out the docs - https://honohub.dev/docs/hono-mcp
Aditya Mathur https://github.com/mathuraditya724
MIT
FAQs
MCP Middleware for Hono
The npm package @hono/mcp receives a total of 93,590 weekly downloads. As such, @hono/mcp popularity was classified as popular.
We found that @hono/mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.