Integrates with Amazon Q CLI, allowing users to access and use tools from the MCP server through Amazon Q, with the tools being available under the 'mcp-server-scaffold___tool-name' namespace.
MCP Server Scaffold
A basic scaffolding project for building Model Context Protocol (MCP) servers.
What is MCP?
The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to Large Language Models (LLMs). MCP enables secure, controlled interactions between AI systems and various data sources and tools.
Features
This scaffold provides:
- ✅ Basic MCP server implementation
- ✅ Sample tools (echo, get_current_time)
- ✅ TypeScript support with proper types
- ✅ Error handling and logging
- ✅ Standard MCP protocol compliance
- ✅ Development and build scripts
Setup
- Install dependencies:
- Build the project:
- Start the server:
Development
For development with auto-rebuild and restart:
Available Tools
echo
Echoes back the provided message.
Parameters:
message
(string, required): The message to echo back
get_current_time
Returns the current date and time in ISO format.
Parameters: None
Project Structure
Extending the Server
To add new tools:
- Add the tool definition in the
ListToolsRequestSchema
handler - Add the tool implementation in the
CallToolRequestSchema
handler - Rebuild and test
Example tool addition:
Integration with Q CLI
To use this MCP server with Amazon Q CLI:
- Build and ensure the server runs correctly
- Configure the server in your Q CLI MCP settings
- The tools will be available as
mcp-server-scaffold___tool-name
Error Handling
The server includes comprehensive error handling:
- Tool execution errors are caught and returned as error responses
- Server errors are logged to stderr
- Graceful shutdown on SIGINT
License
MIT License - feel free to use this scaffold as a starting point for your own MCP servers.
Tools
A basic starter project for building Model Context Protocol (MCP) servers that enables standardized interactions between AI systems and various data sources through secure, controlled tool implementations.
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server implementation that enables connection between OpenAI APIs and MCP clients for coding assistance with features like CLI interaction, web API integration, and tool-based architecture.Last updated -33Python
- -securityFlicense-qualityImplements the Model Context Protocol (MCP) to provide AI models with a standardized interface for connecting to external data sources and tools like file systems, databases, or APIs.Last updated -123Python
- -securityAlicense-qualityA template repository for building Model Context Protocol (MCP) servers that enables developers to create interactive AI agents with real-time bidirectional communication capabilities through WebSocket and SSE endpoints.Last updated -TypeScriptMIT License
- -securityAlicense-qualityA Model Context Protocol (MCP) server that implements AI-First Development framework principles, allowing LLMs to interact with context-first documentation tools and workflows for preserving knowledge and intent alongside code.Last updated -332PythonAGPL 3.0