Skip to content

ecentic MCP server.

Claude, ChatGPT, and any Model Context Protocol client can call ecentic natively over JSON-RPC 2.0. This page is the connection reference: the endpoint, the transport, the handshake, and every tool it exposes.

Streamable HTTP · JSON-RPC 2.0 · 8 tools

01

Connect

One endpoint, two paths, no session to manage.

Connection reference

Primary endpoint
POST https://ecentic.ai/mcp
Same handler
POST https://ecentic.ai/api/mcp
POST https://ecentic.ai/mcp

The server is reachable at /mcp and at /api/mcp. Both are the same handler; the bare path exists because most clients and scanners probe it first.

02

Handshake

Initialize, then send the initialized notification.

Explore the handshake

  1. 01

    Initialize

    Client sends
    initialize
    Server returns
    200

    Negotiated protocol + server capabilities

    initialize returns the negotiated protocol version, the server identity, its capabilities, and an instructions string describing what ecentic is for. If you ask for a version ecentic speaks, you get that version back; anything else falls back to the version it advertises.

  2. 02

    Notify

    Client sends
    notifications/initialized
    Server returns
    202

    Accepted with an empty body

    The notifications/initialized message that follows is a JSON-RPC notification — it has no id and draws no reply. ecentic answers it with 202 Accepted and an empty body, as the transport requires. A server that answers a notification with a JSON-RPC error breaks the handshake, so this is the one exchange worth checking first when a client will not connect.

Complete handshake example
Protocol versions accepted on initialize
03

Tools

What the server exposes, and which calls need a key.

04

Authentication

Read-only tools are open; anything touching an account takes a bearer key.

Send a bearer key

Code example

Send Authorization: Bearer ecentic_sk_… on tool calls that change account state. A call that needs a credential and does not have one returns HTTP 401 with a WWW-Authenticate header naming the Protected Resource Metadata document, so a client can re-run discovery from the failure itself.

Create your credential

Keys are self-serve: create an account, then mint one from the dashboard or by calling create_api_key over an authenticated session. No sales contact is involved at any point.

05

Errors

Two error surfaces, and which one you are looking at.

JSON-RPC error

error.code

A JSON-RPC error — an unknown method, bad params, a tool that refused — arrives as HTTP 200 with an error member, exactly as JSON-RPC specifies. Branch on error.code.

Transport error

application/problem+json

A transport error — a method the endpoint does not offer — arrives as an RFC 9457 problem document with Content-Type: application/problem+json and a machine-readable code. That is the same error model the REST surface uses.

Authentication exception

WWW-Authenticate

The one exception is 401: it carries the JSON-RPC envelope so a client already parsing JSON-RPC does not need a second parser, plus the WWW-Authenticate header for discovery.

Every claim on this page is checkable: the manifest, the server card, and the OpenAPI document all describe the same endpoint.