anet-mcp-server
1
Anet MCP Server is a Rust-based implementation of the Model Control Protocol designed for scalable and asynchronous AI communication. It supports JSON-RPC and NATS for real-time message transport, making it suitable for AI orchestration and microservices.
Anet MCP Server
A Rust implementation of the Model Control Protocol (MCP) server that facilitates communication between clients and AI models. It offers a scalable framework for AI services with features such as:
- JSON-RPC 2.0 compatible API
- NATS transport layer for real-time message passing
- Extensible tool system for custom AI functionalities
- Support for prompts and resources
- Asynchronous request handling using Tokio
Requirements
- Rust 1.70+
- NATS server running locally or accessible via network
Installation
Add anet_mcp_server
to your Cargo dependencies.
Usage
The project provides a basic example server, which can be run to demonstrate core functionalities. A test client is available to send requests to the server.
API Reference
initialize
– Initialize the connectionlistTools
– List available toolscallTool
– Call a tool with argumentslistResources
– List resourcesreadResource
– Read a resourcelistPrompts
– List available promptsgetPrompt
– Get a specific prompt
Architecture
- server – Core logic
- transport – Message handling (NATS)
- tools – Tool interfaces
- types – Data structures