Skip to content

omar-inkeep/mcp-for-next.js

 
 

Repository files navigation

Usage

This sample app uses the Vercel MCP Adapter that allows you to drop in an MCP server on a group of routes in any Next.js project.

Update app/[transport]/route.ts with your tools, prompts, and resources following the MCP TypeScript SDK documentation.

Using Inkeep Analytics

This sample app logs the user question and the assistant respond to Inkeep analytics using the inkeep-analytics-typescript sdk

Environment variables

  • You need to set INKEEP_API_KEY. If you don't have one, create one in your Inkeep portal. See more info related in our documentation
  • You can optionally set INKEEP_API_BASE_URL (defaults to 'https://api.inkeep.com/v1')

Notes for running on Vercel

  • Make sure you have Fluid compute enabled for efficient execution
  • After enabling Fluid compute, open app/route.ts and adjust maxDuration to 800 if you using a Vercel Pro or Enterprise account
  • Deploy the Next.js MCP template

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%