Get the FREE Ultimate OpenClaw Setup Guide →

mcp -app

สำหรับทดสอบคอร์ส MCP Server

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio abcprintf-mcp-server-app npm run dev \
  --env PORT="Development server port (if applicable)" \
  --env XMCP_TRANSPORT="auto-detect or as configured by development script"

How to use

This MCP server is an XMCP application that automatically discovers tools, prompts, and resources from its source directories (src/tools, src/prompts, src/resources). It exposes an extensible set of capabilities that can be utilized by clients via the transport method you select (HTTP or STDIO, configured by the build/run process). Start the development server to boot the MCP instance and begin interacting with the tools and prompts defined in the project. The server exposes the available tools via their defined schemas and metadata, and you can leverage prompts for AI-driven interactions and resources for data access.

How to install

Prerequisites:

  • Node.js (recommended LTS) and npm or yarn/pnpm
  • Git (optional, for cloning the repo)

Installation steps:

  1. Clone the repository or download the project archive git clone https://github.com/your-org/abcprintf-mcp-server-app.git cd abcprintf-mcp-server-app

  2. Install dependencies npm install

    or using Yarn / pnpm

    yarn install pnpm install

  3. Set up any required environment variables (if needed by your environment)

    • XMCP_TRANSPORT (e.g., http or stdio, default may be auto-detected by the app)
    • PORT (if the server requires an explicit port)
  4. Run the development server npm run dev

    or

    yarn dev

    or

    pnpm dev

  5. If you need to build for production (optional) npm run build

    then run the appropriate start script (e.g., start-http or start-stdio) as documented in the project

Additional notes

  • The server discovers tools, prompts, and resources from src/tools, src/prompts, and src/resources. Ensure your custom components follow the expected exported shapes (schema, metadata, and default function).
  • For production builds, the transport determines how clients interact (HTTP or STDIO). Use npm run start-http or npm run start-stdio as appropriate.
  • If you modify tool/prompt/resource definitions, rebuild as needed and restart the server to pick up changes.
  • Environment variable XMCP_TRANSPORT may control which transport is used at runtime; refer to the project docs for the exact effect in your setup.
  • If you encounter port or network issues, verify PORT and firewall rules, and ensure no other process is occupying the chosen port.

Related MCP Servers

Sponsor this space

Reach thousands of developers