mastra-ai/mcp-server-workshop
If you are the rightful owner of mcp-server-workshop and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Mastra MCP Server Workshop provides a comprehensive guide to building a local MCP server for managing markdown notes, creating custom tools and prompts, and developing a reactive Next.js frontend with an AI agent.
The Mastra MCP Server Workshop is designed to help developers create a local Model Context Protocol (MCP) server that manages markdown notes. The project is structured as a monorepo, separating the MCP server and the frontend application into distinct packages. The workshop demonstrates how to build a reactive Next.js frontend with an AI agent that interacts with the notes. The MCP server exposes markdown files from a local directory as resources, allowing the agent to create and modify notes directly on the file system. The frontend application provides a seamless user experience for browsing and editing notes, with real-time updates when the agent modifies an MCP resource. The project also includes a dynamic slash-command menu in the chat interface, enabling users to trigger pre-defined prompts like summarizing a note or brainstorming ideas.
Features
- Local Note Management: An MCP server that exposes markdown files from a local directory as resources.
- Custom Agent Tools: The agent is equipped with a tool to create and modify notes directly on the file system.
- Dynamic Prompts: A slash-command menu in the chat interface allows users to trigger pre-defined prompts.
- Reactive UI: The frontend is built with Next.js and React, providing a seamless user experience.
- Real-time MCP Updates: The UI updates automatically when the agent modifies an MCP resource.
Tools
writeNote
Allows the agent to create and edit notes.