axum-http-mcp-server
The axum-http-mcp-server is an HTTP server built using the Rust programming language, designed for microservices architecture. It features high performance and asynchronous processing capabilities, making it ideal for building RESTful APIs. Developers can easily define endpoints and handle requests, streamlining the development process.
GitHub Stars
1
User Rating
Not Rated
Favorites
0
Views
36
Forks
0
Issues
0
Axum-HTTP-MCP-Server
Build
git clone https://github.com/apepkuss/axum-http-mcp-server.git
cd axum-http-mcp-server
cargo build --release
Run
- Install WasmEdge Runtime
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install_v2.sh | bash -s -- -v 0.14.1
Start the server
wasmedge --dir .:. ./target/wasm32-wasip1/release/axum-mcp-server.wasmTest the server
Call "counter" tool to increment the counter
curl -X POST http://localhost:10086/api/counter \ --header "Content-Type: application/json" \ --data '{ "jsonrpc": "2.0", "id": 5, "method": "tools/call", "params": { "name": "counter", "arguments": { "operation": "increment" } } }'Response:
{ "id": 5, "jsonrpc": "2.0", "result": { "value": 1 } }Call "counter" tool to decrement the counter
curl -X POST http://127.0.0.1:10086/api/counter \ --header "Content-Type: application/json" \ --data '{ "jsonrpc": "2.0", "id": 5, "method": "tools/call", "params": { "name": "counter", "arguments": { "operation": "decrement" } } }'Response:
{ "id": 5, "jsonrpc": "2.0", "result": { "value": 0 } }Call "counter" tool to get the counter value
curl -X POST http://127.0.0.1:10086/api/counter \ --header "Content-Type: application/json" \ --data '{ "jsonrpc": "2.0", "id": 5, "method": "tools/call", "params": { "name": "counter", "arguments": { "operation": "get_value", } } }'Response:
{ "id": 5, "jsonrpc": "2.0", "result": { "value": 0 } }
echokit_server is a high-performance server software built in Rust, offering efficient data processing and API management. Designed for developers, it boasts high scalability and adaptability for various applications. It is particularly well-suited for real-time data processing and microservices architecture.