DharuNamikaze/smol-mcp
If you are the rightful owner of smol-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This document provides a comprehensive overview of a locally running naive MCP Server built using the Typescript SDK.
Introduction
This is a Locally running naive MCP Server built using Typescript-sdk
from the official documentation.
First things first,
Run this command to install the SDK for Typescript
to get started
npm install @modelcontextprotocol/sdk
⚠️ Make sure that MCP requires Node.js v18.x or higher to work fine.
Quick Start
Run the server by the follwing command:
npm run server:inspect
we are using mcp-inspector for a reason which we'll see it later.
In this project we are currently utilizing StdioServerTransport
as a Transport layer between the AI application and our MCP Server.
Understanding the MCP Server syntax
We are the McpServer()
class takes name, version, title, blah...
the game is in the capabilities of the server which takes three main arguments resources
,tools
,prompts
so coming to the build, we can use vscode to create
go to the cmd palette -> search for >mcp:add server
select stdio as we are currently using it
Enter the configured build command
Enter a name for the server
now let's configure the local mcp build (your_mcp.json)
change it to your configuration or take a refernce here
Final Steps to see if the tool is actually working
-
Click the restart to start the server running
-
The output window aside terminal shows the entire conversation between our server and any client
-
Mention the server file
#your_mcp.json
and the tool#your_tool
to copilot and tada!🎉💃