Sponsored by Deepsite.site

Project Description

Created By
mpawlikcreatio7 months ago
mcp server for personal use
Content

Project Description

This project is a Node.js application for Windows OS called MCP Server. It serves as a local middleware for seamless communication between LLM-based tools (e.g., Copilot Agents). The server is designed to be run locally, ideally alongside an IDE like Visual Studio Code or Visual Studio.

MCP Server uses the third-party library @modelcontextprotocol/sdk, which allows you to run and test it in a web browser using the Inspector tool.

The project includes a predefined ./data directory that contains documentation and guide files used to assist with coding in the Creatio environment. Additionally, a ./data/prompts subfolder contains prompt files used by Copilot Agents to guide their behavior and output.

Configuration

Set the following environment variables:

  • GUIDE_FILES_DIR: Path to the directory containing your local guide files (e.g., .\\data).
  • PROMPT_DIR: Path to your prompt directory (e.g., .\\dat\\prompts). Prompt files must be .txt files and start with the prefix prompt_.

You can set these variables in a .env file or pass them directly in the terminal when running the app. Keep in mind having dobule "\" in your path names.

Example .env file:

GUIDE_FILES_DIR=C:\\pathToYourProject\\mcpLocalServer\\data\
PROMPT_DIR=C:\\pathToYourProject\\mcpLocalServer\\data\\prompts

💡 The paths should directly point to the folders where your guide and prompt files are located. It’s recommended to create a prompts subfolder under data.

Features

There are 3 build-in tools which you can use:

  • ListAvailableFilesTool – Lists all .txt files located in the data directory.
  • ListPromptsTool – Lists all prompt files located in the data/prompts directory.
  • ReadLocalFileTool – Reads and returns the content of a file from either data or data/prompts, depending on the file prefix.

Usage

  1. Install dependencies:

    npm install
    
  2. Configure environment variables using a .env file or directly in the terminal.

  3. Build the project:

    npm run build
    
  4. Run the server for browser testing:

    npx @modelcontextprotocol/inspector build/index.js
    
  5. Use the MCP-compatible client (like Copilot for Visual Studio Code) to interact with the server.

Usage with Visual Studio Code

To integrate with Copilot:

  1. Create a .vscode directory in your project.
  2. Add a mcp.json file with the following content:
{
  "inputs": [],
  "servers": {
    "local": {
      "command": "node",
      "args": ["C:\\pathToMcpLocalServerProjectInYourPC\\build\\index.js"]
    }
  }
}
  1. Follow the instructions from the official documentation to enable MCP support in VS Code.

  2. Start your server if is disabled with a command: ctrl+shift+p MCP:List Servers -> next chose you server Name and click action [""Start","Stop","Restart"]

  3. You should see MCP server Logs in OUTPUT terminal: 2025-05-30 08:35:10.855 [warning] [server stderr] ✅ Local MCP server running on stdio 2025-05-30 08:35:10.864 [info] Discovered 3 tools

⚠️ Make sure you're using the latest or pre-release version of Visual Studio Code that supports Agents.

Example prompt using guide files and custom prompts: You can find more examples in "../docs/VisualCode_Copilot_Examples"


Description: 💾 Create C# Class (Creatio Style)
Prompt text:
Use the local MCP server.

Step 1: Load the prompt file named "prompt_csharp_class_authoring.txt" using the "read_local_file" tool with the argument "fileName".

Step 2: Once the file is loaded, execute all instructions defined in that file. If those instructions require using additional tools, follow them accordingly.

Step 3: After completing all steps from the prompt file, generate a C# (.cs) file with a class named House. The class should contain Windows and Doors properties, and include methods to build them.

Ensure that the implementation follows all guidelines and conventions from the loaded prompt file.

Customization

You can extend this project by adding your own guide or prompt files:

  • Add a guide file: Create a .txt file with the prefix guide_ and place it in the folder defined by GUIDE_FILES_DIR.
  • Add a prompt file: Create a .txt file with the prefix prompt_ and place it in the folder defined by PROMPT_DIR.

You can also develop custom tools:

  1. Create a new YourTool.ts file in the src/tools directory.
  2. Register the tool in localMcpServer.ts.
  3. Rebuild the project before running tests.

License

This project is licensed under the MIT License.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Serper MCP ServerA Serper MCP Server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Playwright McpPlaywright MCP server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
DeepChatYour AI Partner on Desktop
ChatWiseThe second fastest AI chatbot™
Amap Maps高德地图官方 MCP Server
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
WindsurfThe new purpose-built IDE to harness magic
CursorThe AI Code Editor
Tavily Mcp
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.