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.

コメント

「その他」の他のコンテンツ