I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

Neva
Easy configurable MCP server SDK for Rust
[!NOTE]
This project is currently in preview. Breaking changes can be introduced without prior notice.
Dependencies
[dependencies]
neva = { version = "0.0.2", features = ["full"] }
tokio = { version = "1", features = ["full"] }
Code
use neva::{App, tool, resource, prompt};
#[tool(descr = "A say hello tool")]
async fn hello(name: String) -> String {
format!("Hello, {name}!")
}
#[resource(uri = "res://{name}", descr = "Some details about resource")]
async fn get_res(name: String) -> (String, String) {
(
format!("res://{name}"),
format!("Some details about resource: {name}")
)
}
#[prompt(descr = "Analyze code for potential improvements")]
async fn analyze_code(lang: String) -> (String, String) {
(format!("Language: {lang}"), "user".into())
}
#[tokio::main]
async fn main() {
let mut app = App::new()
.with_options(|opt| opt
.with_stdio()
.with_name("Sample MCP server")
.with_version("1.0.0"));
map_hello(&mut app);
map_get_res(&mut app);
map_analyze_code(&mut app);
app.run().await;
}
相关推荐
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
Take an adjectivised noun, and create images making it progressively more adjective!
Reviews

user_1nmXNyyk
As a dedicated user of the microCMS MCP Server, I am thoroughly impressed with its performance and versatility. The seamless integration and user-friendly interface make content management a breeze. The reliability and support from SpringMT have also been exceptional. Highly recommend visiting their site for more details: https://mcp.so/server/microcms-mcp-server/SpringMT