Crates.io | pulseengine-mcp-cli |
lib.rs | pulseengine-mcp-cli |
version | 0.10.0 |
created_at | 2025-06-29 18:08:18.379806+00 |
updated_at | 2025-08-15 04:23:18.939286+00 |
description | CLI integration and configuration framework for MCP servers - PulseEngine MCP Framework |
homepage | https://github.com/pulseengine/mcp |
repository | https://github.com/pulseengine/mcp |
max_upload_size | |
id | 1730997 |
size | 171,051 |
CLI integration and configuration framework for MCP servers
This crate provides automatic CLI generation, configuration management, and server setup for MCP servers. It eliminates boilerplate code and provides a modern, ergonomic API for building MCP servers.
[dependencies]
pulseengine-mcp-cli = "0.2.0"
pulseengine-mcp-server = "0.2.0"
use pulseengine_mcp_cli::{McpConfig, run_server};
use clap::Parser;
#[derive(McpConfig, Parser)]
struct MyServerConfig {
#[clap(short, long, default_value = "8080")]
port: u16,
#[clap(short, long)]
database_url: String,
#[mcp(auto_populate)]
server_info: ServerInfo,
#[mcp(logging(level = "info", format = "json"))]
logging: LoggingConfig,
}
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = MyServerConfig::parse();
run_server(config).await?;
Ok(())
}
Early Development: This crate is part of the upcoming v0.2.0 release of the MCP framework. APIs are subject to change.
Licensed under either of Apache License, Version 2.0 or MIT license at your option.