agentico-dev_mcp-server

agentico-dev_mcp-server

3.2

MCP Server is a simple server that implements the Model Context Protocol (MCP) to provide a simpler API to interact with the Model Context Protocol.

MCP Server is designed to simplify the process of creating a server that implements the Model Context Protocol (MCP). It acts as a facade, making it easier for developers to get started with MCP by providing a straightforward API. The server is part of a suite of tools aimed at enhancing developer efficiency and experience. By using MCP Server, developers can create custom tools with their own logic, register these tools, and start the server with minimal setup. The server is particularly useful for those who find MCP complex and are looking for a more accessible entry point. The server supports the creation of tools that can be registered and executed, allowing for flexible and extensible tool management.

Features

  • Simplified API for MCP: Provides a straightforward interface to interact with the Model Context Protocol.
  • Tool Registration: Allows developers to create and register custom tools with their own logic.
  • Extensible Architecture: Supports the creation of various tools, making it flexible for different use cases.
  • Facade Pattern: Implements a design pattern that simplifies the process of server creation and management.
  • Developer Efficiency: Part of a suite of tools aimed at improving developer workflows and processes.

Usage with Different Platforms

Node.js

typescript
#!/usr/bin/env node
import { MCPServer } from '@agentico/mcp-server'
import { EchoTool } from "./tools/EchoTool.js";

const myServer = new MCPServer('My MCP Server', '1.0.0');

async function main() {
  // Register tools
  myServer.registerTool("echo", EchoTool);
  await myServer.run();
}

main().catch((error) => {
  console.error("Server error:", error);
  process.exit(1);
});