mcp
by hymnk
This is a sample mcp server project. It's designed to be used with the Cline VSCode extension for managing and interacting with servers.
View on GitHub
Last updated: N/A
mcp
To install dependencies:
bun install
To run:
bun run index.ts
Settings:
This project was created using bun init
in bun v1.2.5. Bun is a fast all-in-one JavaScript runtime.
Install Cline in VSCode
- Search for "Cline" in the VSCode Extensions Marketplace
- Click "Install" to install the extension
Configure MCPServer
- Open
~/.vscode-server/data/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
- Add the following configuration:
{
"mcpServers": {
"example-server": {
"command": "/root/.bun/bin/bun", # Use full path to bun executable
"args": ["run", "/workspace/mcp-server/index.ts"], # Use full path to index.ts
"env": {}
}
}
}
- Enable the MCPServer in Cline:
- Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
- Search for "Cline: Refresh MCP Servers"
- Select the command to refresh and enable the server
- Verify the server is running by checking the Cline status bar