MCP.so
登录

Project Description MCP Server

@michalpawlik93

基本信息

分类

其他

许可证

MIT license

传输方式

stdio

作者

michalpawlik93

关于 Project Description MCP Server

暂无概览

#mcplocalserver#middleware#node-js

Project Description MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcpLocalServer": {
      "command": "npx",
      "args": [
        "@modelcontextprotocol/inspector",
        "build/index.js"
      ]
    }
  }
}

Project Description MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is MCP Server?

MCP Server is a Node.js application for Windows that acts as a local middleware for seamless communication between LLM-based tools (e.g., Copilot Agents) and local files or prompts. It is designed to run alongside an IDE like Visual Studio Code or Visual Studio.

How to use MCP Server?

Install dependencies (npm install), configure the environment variables GUIDE_FILES_DIR and PROMPT_DIR in a .env file, build the project (npm run build), then run it with npx @modelcontextprotocol/inspector build/index.js for browser testing. For integration with Visual Studio Code, create a .vscode/mcp.json file pointing to the built index.js and follow the official MCP documentation.

Key features of MCP Server

  • Three built-in tools: ListAvailableFilesTool, ListPromptsTool, ReadLocalFileTool
  • Supports custom guide files (prefix guide_) and prompt files (prefix prompt_)
  • Works with the @modelcontextprotocol/sdk and can be tested via the Inspector
  • Designed for local, offline use with IDEs like VS Code
  • Allows developers to create and register custom tools in TypeScript

Use cases of MCP Server

  • Provide LLM agents with local documentation and guide files for code generation
  • Use custom prompt files to control Copilot Agents’ behavior and output format
  • Enable an agent to read specific local files (e.g., coding standards) before writing code
  • Serve as a middleware for Copilot for Visual Studio Code to interact with project-specific resources

常见问题

1

What are the required environment variables?

Set `GUIDE_FILES_DIR` to the folder containing your guide files and `PROMPT_DIR` to the folder containing your prompt files. Use double backslashes in paths (e.g., `C:\\path\\to\\data`).

2

How do I integrate MCP Server with Visual Studio Code?

Create a `.vscode/mcp.json` file with a `"servers"` entry that specifies `"node"` as the command and the full path to `build/index.js` as the argument. Then use `Ctrl+Shift+P` and run `MCP: List Servers` to start the server.

3

What file types are supported?

Only `.txt` files are supported. Guide files must have the prefix `guide_` and prompt files must have the prefix `prompt_`.

4

How can I add a custom tool?

Create a new `.ts` file in the `src/tools` directory, register the tool in `localMcpServer.ts`, then rebuild the project with `npm run build`.

5

How do I test MCP Server?

Run `npx @modelcontextprotocol/inspector build/index.js` to start the Inspector tool, which allows you to test the server in a web browser.

评论

其他 分类下的更多 MCP 服务器