Provides authentication for the VS Code integration, allowing users to login with GitHub to access the MCP server functionality within VS Code.
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):
Create virtual environment and activate it
Install dependencies:
or
Related MCP server: MCP Server Basic Example
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:
To run the server normally:
To install the server in Claude desktop app:
MCP connect in VS code
Open folder/mcp-server-basic in vs code
open terminal and run below command :
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
This server cannot be installed