Back to MCP directory
publicPublicdnsLocal runtime

sample-mcp-server-kuj

官方教程:使用TypeScript SDK创建MCP服务器

article

README

🚀 Sample-mcp-server 官方教程

本教程将为你详细介绍如何使用 TypeScript SDK 创建 MCP 服务器,帮助你快速搭建起所需的服务器环境。

🚀 快速开始

本教程将指导你使用 TypeScript SDK 创建 MCP 服务器。后续将根据实际文档内容,补充具体的快速开始步骤,如安装依赖、初始化项目等内容。

💻 使用示例

基础用法

// 这里将根据实际代码示例补充基础使用的代码
// 保持原始代码和注释不变

高级用法

// 若有高级使用场景,这里将补充高级场景说明以及对应的代码
// 代码保持原始内容
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client