What tool hosts the MCP server in this repo?
This post might have stale content, as HEAD is 42 commits ahead.
What tool or library does this repo use to host/expose their own MCP server?
Perfect! Now I have a clear answer. Let me provide you with a comprehensive response:
##Answer
This repo uses xmcp (version 0.6.0) to host and expose their own MCP (Model Context Protocol) server.
###Key Details:
-
Tool/Library:
xmcp- A framework for building MCP servers- Dependency: Listed in
apps/web/package.jsonas"xmcp": "0.6.0"
- Dependency: Listed in
-
Configuration: The setup is configured in
apps/web/xmcp.config.ts:const config: XmcpConfig = { http: true, experimental: { adapter: "nextjs", }, paths: { tools: "app/mcp/tools", prompts: false, resources: false, }, typescript: { skipTypeCheck: true, }, } -
Server Handler: The MCP server is exposed through a Next.js route handler at
apps/web/app/mcp/route.ts:import { xmcpHandler } from "@xmcp/adapter" import { withMcpAuth } from "better-auth/plugins" import { auth } from "@/lib/auth" const handler = withMcpAuth(auth, (req) => { return xmcpHandler(req) }) export { handler as GET, handler as POST } -
HTTP Exposure: The server is configured with
http: trueand runs via HTTP through the Next.js adapter, making it accessible athttps://forums.basehub.com/mcp(as seen in.mcp.json). -
Tools: MCP tools are defined in
apps/web/app/mcp/tools/directory.
END OF POST