
krishnaik06/mcp-crash-course 是从 https://github.com/krishnaik06/mcp-crash-course. 导入的 MCP 服务器候选服务器。
概览
krishnaik06/mcp-crash-course 是从 https://github.com/krishnaik06/mcp-crash-course. 导入的 MCP 服务器候选服务器。
概述(AI 翻译)
这是一个模型上下文协议(MCP)服务器实现的基本示例,展示了包括工具和资源在内的核心功能。
设置步骤
-
初始化项目(进入任意本地文件夹,启动 PowerShell 或 cmd):
-
创建虚拟环境并激活
-
安装依赖:
或
特色
服务器实现了以下功能:
工具
add(a: int, b: int):加两个数字subtract(a: int, b: int):从第一位数中减去第二个数字
资源
greeting://{name}:返回个性化问候语
运行服务器
为了开发运行带有MCP检查器的服务器:
正常运行服务器:
要在 Claude 桌面应用中安装服务器:
MCP 连接 VS 代码
-
在 vs 代码中打开文件夹/mcp-server-basic
-
打开终端并执行以下命令:
-
点击 Cntrl+Shift+I 在 vs 代码中启动聊天
-
用 GitHub 登录并设置
-
按照以下步骤(为 vs Code 用户设置添加 mcp 配置有两种方式):
观看演示
项目结构
main.py:主服务器实现,配备工具和资源pyproject.toml:项目配置与依赖关系
2.
本页由 AI 翻译,技术细节请以原文为准。
README
MCP Server Basic Example
This is a basic example of a Model Context Protocol (MCP) server implementation that demonstrates core functionality including tools and resources.
Setup Steps
- Initialize the project (Go to any local folder and launch powershell or cmd):
uv init mcp-server-basic
cd mcp-server-basic
-
Create virtual environment and activate it
uv venv
.venv\Scripts\activate
- Install dependencies:
uv add "mcp[cli]"
or
uv add -r requirements.txt
Features
The server implements the following features:
Tools
add(a: int, b: int): Adds two numberssubtract(a: int, b: int): Subtracts second number from first
Resources
greeting://{name}: Returns a personalized greeting
Running the Server
To run the server with the MCP Inspector for development:
uv run mcp dev main.py
To run the server normally:
uv run mcp run
To install the server in Claude desktop app:
uv run mcp install main.py
MCP connect in VS code
- Open folder/mcp-server-basic in vs code
- open terminal and run below command :
uv run main.py
- Click Cntrl+Shift+I to launch chat in vs code
- Do login with Github and setup
- Folow the below steps (two way to add mcp configuration for vs code user settings):
Project Structure
main.py: Main server implementation with tools and resourcespyproject.toml: Project configuration and dependencies
2.0 Agentic AI And GENERATIVE AI With MCP Bootcamp
Course Overview:
Mentors: Sourangshu Paul, Mayank Aggarwal , Krish And Sunny
Start Date:May 10th 2025
Timing: 8am to 11am IST(Saturday And Sunday)
Duration : 4-5 months
This course is designed for AI developers, machine learning engineers, data scientists, and software engineers looking to build expertise in agentic AI, multi-agent systems, and AI-powered automation. Whether you are new to AI agents or have experience in NLP and GenAI, this course will equip you with the knowledge and hands-on skills required to develop, deploy, and manage AI agents at scale. By the end of the course, you will have a strong foundation in agentic AI frameworks, multi-agent collaboration, real-world automation, and end-to-end AI deployment, along with practical experience through real-world projects.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →