From 7477ac0f4fb702f5ec9a6b15bc2a12916bb2e6ee Mon Sep 17 00:00:00 2001 From: XianJialu Date: Sat, 7 Feb 2026 20:44:31 +0800 Subject: [PATCH] =?UTF-8?q?Push=20to=20git=20as=20Xian=20Lu=20=E9=B2=9C?= =?UTF-8?q?=E5=98=89=E9=9C=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/README.md b/README.md index 1dd55ee..daf942c 100644 --- a/README.md +++ b/README.md @@ -257,6 +257,7 @@ Full API details live in the documentation. - [Examples](#examples) - [Development](#development) - [Contributing](#contributing) +- [Business Corporation](#business-corporation) ## Installation @@ -376,6 +377,9 @@ Your MCP server starts on `http://localhost:8080` with: ## Core Concepts +
+Click to expand Core Concepts + ### Tools Callable functions that perform actions (like API endpoints). @@ -431,8 +435,13 @@ getStats() { // Resource URI: "servicename://getStats" (auto-generated) ``` +
+ ## CLI Commands +
+Click to expand CLI Commands + The LeanMCP CLI provides an interactive experience for creating and managing MCP projects. ### `leanmcp create ` @@ -479,8 +488,13 @@ leanmcp add weather For complete CLI documentation including all commands, options, and advanced usage, see [@leanmcp/cli README](./packages/cli/README.md). +
+ ## Decorators +
+Click to expand Decorators + ### Core Decorators | Decorator | Purpose | Usage | @@ -528,8 +542,13 @@ class UserInput { } ``` +
+ ## Project Structure +
+Click to expand Project Structure + ### Main Entry Point (`main.ts`) **Simplified API (Recommended):** @@ -607,8 +626,13 @@ export class ServiceName { } ``` +
+ ## API Reference +
+Click to expand API Reference + ### `createHTTPServer(options | serverFactory, options?)` Creates and starts an HTTP server with MCP support. @@ -698,8 +722,13 @@ server.registerService(new WeatherService()); server.registerService(new PaymentService()); ``` +
+ ## Examples +
+Click to expand Examples + ### Complete Weather Service ```typescript @@ -908,8 +937,13 @@ await mcpClient.callTool({ See [examples/slack-with-auth](./examples/slack-with-auth) for a complete working example. +
+ ## Development +
+Click to expand Development + ### Setting Up the Monorepo ```bash @@ -965,6 +999,8 @@ npm link ../../packages/cli npm start ``` +
+ ## Type Safety Benefits - **Compile-time validation** - Catch errors before runtime