AdonisJS(v7)超薄MCP入门套件
该存储库为AdonisJS应用程序提供了最小的框架核心和Japa测试运行器,并通过MCP(模型上下文协议)支持进行了增强。
它被设计为构建需要公开或集成MCP功能(例如AI工具集成、结构化上下文交换或代理驱动的工作流)的AdonisJS应用程序的最低起点,同时保持代码库的干净和轻量级。
技术栈
Backend
AdonisJS 7.x - Full-featured Node.js framework
Package
AdonisJS MCP - Model Context Protocol for AdonisJS
Testing
Japa - Delightful testing framework with browser testing support
TypeScript
Full TypeScript support with strict mode enabled
安装
npm init adonisjs@latest -- -K="batosai/adonisjs-mcp-starter-kit" --skip-migrations
cd adonisjs-app
npm run dev开始开发
# Run the development server with hot reload
node ace serve --hmr
# Run tests
node ace test
# Type check both backend and frontend
npm run typecheck
# Lint your code
npm run lint
# Build for production
npm run build
# Start production server
npm start
# Create tool
node ace make:mcp-tool [tool name]
# Create resource
node ace make:mcp-resource [resource name]
# Create prompt
node ace make:mcp-prompt [prompt name]
您的应用程序将在以下时间运行 http://localhost:3333
应用程序中的配置服务器MCP示例
您可以将其用作HTTP服务器或通过stdio(一旦发布在npm上)使用。
npm start
{
"name-server-mcp": {
"command": "npx",
"args": ["package-name"]
},
"name-server-mcp-http": {
"url": "https://your-domaine.com/mcp",
"headers": {
# "Authorization": "Bearer token"
}
}
}______________________________________________________________________
了解更多
📖 AdonisJS Docs
Complete guide to AdonisJS
📖 AdonisJS MCP Docs
Complete guide to AdonisJS MCP
贡献
此MCP入门套件由Jeremy Chaufrier维护。发现错误或有建议? 打开一个问题 或者提交一个pull请求!
______________________________________________________________________
许可证
此MCP入门套件是根据 MIT许可证.
