MCP.so
登录

Project Description

@michalpawlik93

关于 Project Description

暂无概览

基本信息

分类

其他

许可证

MIT license

运行时

node

传输方式

stdio

发布者

michalpawlik93

配置

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

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

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

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

FAQ from MCP Server

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).

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.

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_.

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.

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 服务器