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 { registerDisabledTool } from './routes/disabled-tool'
import { registerEcho } from './routes/echo'
import { registerEchoHeaders } from './routes/echo-headers'
import { registerGetUser } from './routes/get-user'
import { registerHealthCheck } from './routes/health-check'
import { registerNoCacheCacheControlTool } from './routes/no-cache-cache-control-tool'
@ -26,6 +27,7 @@ registerGetUser(app)
registerDisabledTool(app)
registerDisabledForFreePlanTool(app)
registerEcho(app)
registerEchoHeaders(app)
registerPure(app)
registerUnpureMarkedPure(app)
registerCustomCacheControlTool(app)

Wyświetl plik

@ -30,7 +30,6 @@
- auth
- custom auth pages for `openauth`
- **API gateway**
- **usage tracking and reporting**
- oauth flow
- https://docs.scalekit.com/guides/mcp/oauth
- openapi-kitchen-sink
@ -38,6 +37,7 @@
- mcp-kitchen-sink
- how to handle binary bodies and responses?
- improve logger vs console for non-hono path and util methods
- test usage tracking and reporting
- extra `Sentry` instrumentation (`setUser`, `captureMessage`, etc)
- **Public MCP server interface**
- how does oauth work with this flow?
@ -74,7 +74,7 @@
- same for pricing plan line-items
- replace `ms` package
- 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?)
- signed requests
- add support for custom headers on responses