pull/715/head
Travis Fischer 2025-06-12 06:22:25 +07:00
rodzic 0999cfdece
commit 0a7fa93f6b
3 zmienionych plików z 29 dodań i 2 usunięć

Wyświetl plik

@ -0,0 +1,25 @@
import { createRoute, type OpenAPIHono, z } from '@hono/zod-openapi'
const route = createRoute({
description: 'Echoes the request headers',
operationId: 'echoHeaders',
method: 'get',
path: '/echo-headers',
responses: {
200: {
description: 'Echoed request headers',
content: {
'application/json': {
schema: z.object({}).passthrough()
}
}
}
}
})
export function registerEchoHeaders(app: OpenAPIHono) {
return app.openapi(route, async (c) => {
const headers = c.req.header()
return c.json(headers) as any
})
}

Wyświetl plik

@ -9,6 +9,7 @@ import { registerDisabledForFreePlanTool } from './routes/disabled-for-free-plan
import { registerDisabledRateLimitTool } from './routes/disabled-rate-limit-tool' import { registerDisabledRateLimitTool } from './routes/disabled-rate-limit-tool'
import { registerDisabledTool } from './routes/disabled-tool' import { registerDisabledTool } from './routes/disabled-tool'
import { registerEcho } from './routes/echo' import { registerEcho } from './routes/echo'
import { registerEchoHeaders } from './routes/echo-headers'
import { registerGetUser } from './routes/get-user' import { registerGetUser } from './routes/get-user'
import { registerHealthCheck } from './routes/health-check' import { registerHealthCheck } from './routes/health-check'
import { registerNoCacheCacheControlTool } from './routes/no-cache-cache-control-tool' import { registerNoCacheCacheControlTool } from './routes/no-cache-cache-control-tool'
@ -26,6 +27,7 @@ registerGetUser(app)
registerDisabledTool(app) registerDisabledTool(app)
registerDisabledForFreePlanTool(app) registerDisabledForFreePlanTool(app)
registerEcho(app) registerEcho(app)
registerEchoHeaders(app)
registerPure(app) registerPure(app)
registerUnpureMarkedPure(app) registerUnpureMarkedPure(app)
registerCustomCacheControlTool(app) registerCustomCacheControlTool(app)

Wyświetl plik

@ -30,7 +30,6 @@
- auth - auth
- custom auth pages for `openauth` - custom auth pages for `openauth`
- **API gateway** - **API gateway**
- **usage tracking and reporting**
- oauth flow - oauth flow
- https://docs.scalekit.com/guides/mcp/oauth - https://docs.scalekit.com/guides/mcp/oauth
- openapi-kitchen-sink - openapi-kitchen-sink
@ -38,6 +37,7 @@
- mcp-kitchen-sink - mcp-kitchen-sink
- how to handle binary bodies and responses? - how to handle binary bodies and responses?
- improve logger vs console for non-hono path and util methods - improve logger vs console for non-hono path and util methods
- test usage tracking and reporting
- extra `Sentry` instrumentation (`setUser`, `captureMessage`, etc) - extra `Sentry` instrumentation (`setUser`, `captureMessage`, etc)
- **Public MCP server interface** - **Public MCP server interface**
- how does oauth work with this flow? - how does oauth work with this flow?
@ -74,7 +74,7 @@
- same for pricing plan line-items - same for pricing plan line-items
- replace `ms` package - replace `ms` package
- API gateway - API gateway
- **do I just ditch the public REST interface and focus on MCP?** - **do we just ditch the public REST interface and focus on MCP?**
- SSE support? (no; post-mvp if at all; only support [streamable http](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http) like smithery does, or maybe support both?) - SSE support? (no; post-mvp if at all; only support [streamable http](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http) like smithery does, or maybe support both?)
- signed requests - signed requests
- add support for custom headers on responses - add support for custom headers on responses