0.1.34 • Published 7 months ago

@near-mcp/aitp-mcp-server v0.1.34

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

AITP MCP Server

NearAI MCP server is a middleware component that interfaces with the AITP (AI Tool Provider) API to dynamically build and manage available AI tools and prompts.

Overview

This server connects to the AITP API and automatically discovers available tools and prompts by consuming the /hello endpoint. This allows for dynamic tool registration and prompt management without hardcoding capabilities.

Features

  • Automatic tool discovery through AITP API URL
  • Dynamic prompt registration
  • Seamless integration with AITP services
  • Real-time tool availability updates

How It Works

  1. The MCP server initializes and establishes a connection to the AITP API
  2. It calls the /hello endpoint to retrieve available tools and prompts
  3. The server processes the response and builds an internal registry of:
    • Available AI tools
    • Supported prompts
    • Tool capabilities and requirements

Configuration ( SSE Transport )

To configure the connection to the AITP API, make sure to copy .env_example to .env and set the correct values.

Configuration ( Claude Desktop )

To configure the connection to the AITP API, ensure you have the following environment variables set:

  • AITP_URL: The base URL of your AITP API
  "mcpServers": {
    "aitp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@near-mcp/aitp-mcp-server"
      ],
      "env": {
        "AITP_URL": "{your-aitp-url}",
        "NEAR_NETWORK_ID": "testnet",
        "NEAR_NODE_URL": "https://test.rpc.fastnear.com",
        "NEAR_WALLET_URL": "https://testnet.mynearwallet.com/",
        "NEAR_HELPER_URL": "https://helper.testnet.near.org",
        "NEAR_EXPLORER_URL": "https://testnet.nearblocks.io",
        "NEAR_WALLET_ID": "{your-near-wallet-id}.testnet",
        "NEAR_KEY_STORE": "testnet",
        "NEAR_USDC_CONTRACT": "usdc.fakes.testnet",
        "NEAR_WALLET_PRIVATE_KEY": "{your-near-wallet-private-key}",
        "LOG_DEBUG": "true"
      }
    }
  }
}

Usage ( SSE Transport )

To build and start the server, run the following command:

npm run dev

You will see the server running in PORT 3003 and the logs in the terminal.

Usage ( Claude Desktop )

After configuring the environment variables, copy this to your Claude config file and close and reopen the Claude app to load the server.

Dependencies

List your main dependencies

0.1.34

7 months ago

0.1.33

9 months ago

0.1.32

9 months ago

0.1.31

9 months ago

0.1.30

9 months ago

0.1.29

9 months ago

0.1.28

9 months ago

0.1.27

9 months ago

0.1.22

10 months ago

0.1.21

10 months ago

0.1.20

10 months ago

0.1.19

10 months ago

0.1.18

10 months ago

0.1.17

10 months ago

0.1.16

10 months ago

0.1.15

10 months ago

0.1.13

10 months ago

0.1.12

10 months ago

0.1.11

10 months ago

0.1.10

11 months ago

0.1.9

11 months ago

0.1.8

11 months ago

0.1.7

11 months ago

0.1.6

11 months ago

0.1.5

11 months ago

0.1.4

11 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago