Edaijia

e代驾MCP服务 - 提供预估费用、叫代驾下单、智能token管理等功能
  • python

0

GitHub Stars

python

Language

4 months ago

First Indexed

3 weeks ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "fengfengsu-edaijiamcp-project": {
      "command": "python",
      "args": [
        "edaijiamcp.py"
      ],
      "env": {
        "SECRET": "YOUR_SECRET",
        "APP_KEY": "YOUR_APP_KEY",
        "API_BASE_URL": "https://openapi.d.edaijia.cn"
      }
    }
  }
}

This MCP server provides a complete Model Context Protocol implementation for the e代驾 service. It handles cost estimation, order placement, and intelligent token management to ensure reliable automated interactions with the external API.

How to use

Use the MCP client to perform two core actions: estimate a ride cost and place a driver order. The server automatically manages authentication tokens, refreshes them when needed, and retries operations on token related failures. Start by estimating costs with the same parameters you will use to place an order, then proceed to submit the order once you confirm the details.

How to install

Prerequisites: ensure Python is installed on your system.

  1. Clone or download the MCP server package to your working directory.

  2. Create and configure environment variables in a .env file. You will need an API key, secret, and API base URL.

  3. Install required Python dependencies.

  4. Run the MCP server to start handling requests.

python edaijiamcp.py

Configuration and runtime security

The server uses a local token store to automatically refresh tokens when they expire and retry failed operations. Tokens and sensitive keys are read from the environment variables you configure in the .env file.

Environment variables used by the server are defined as follows: APP_KEY, SECRET, and API_BASE_URL. Ensure these values are kept secure and are not committed to version control.

Notes and troubleshooting

If you encounter token expired errors, the server will automatically refresh tokens and retry the operation. If manual token refresh is needed, you can refresh tokens for a specific phone number using the provided flow.

Available tools

estimate_cost

Estimate the driving service cost based on start/end locations and phone number. Automatically refreshes tokens on expiry.

call_driver

Place a driving service order with the provided route and phone details. Supports automatic token refresh and retries on failure.

refresh_token

Manually refresh the authentication token for a given phone number.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational