背景图片

esa-mcp-server

Web Tools

Description

esa-mcp-server is a server that enables the use of esa.io's API through the Model Context Protocol (MCP). It provides functions like searching esa.io posts and retrieving detailed post information.

Author

MCP-Mirror

Created Date

2024-12-01

Tutorial

Learn how to use this MCP server

Step 1: Install the Server

To install the esa-mcp-server, you need to have Node.js and npm installed on your system. Then, run the following command: bash npx -y esa-mcp-server@latest

Step 2: Configure the Server

Create a configuration file in JSON format to set up the server. Here is an example configuration:

{ "mcpServers": { "esa-mcp-server": { "command": "npx", "args": [ "-y", "esa-mcp-server@latest"] }, "env": { "ESA_API_KEY": "your api key here", "DEFAULT_ESA_TEAM": "your default esa team", } } }

Replace "your api key here" and "your default esa team" with your actual ESA API key and team name.

Step 3: Use the Server

You can now use the server to search posts and retrieve detailed post information. Here are some example commands:

Search Posts

To search posts, use the following command: typescript search_esa_posts: { teamName?: string; query: string; order?: "asc" | "desc"; sort?: "created" | "updated" | "number" | "stars" | "comments" | "best_match"; page?: number; perPage?: number; }

Read a Single Post

To read a single post, use the following command: typescript read_esa_post: { teamName?: string; postNumber: number; }

Read Multiple Posts

To read multiple posts, use the following command: typescript read_esa_multiple_posts: { teamName?: string; postNumbers: number[]; }