Connect an MCP client
Connect over local Streamable HTTP and diagnose transport or inventory problems.
ONF hosts a native Model Context Protocol endpoint alongside its ordinary HTTP application. For a client on the same machine, use:
http://localhost:4310/mcpSelect Streamable HTTP when a client asks for transport. Configuration formats differ between clients, so enter the endpoint using that client's documented MCP settings. The current endpoint does not request a bearer token, API key or OAuth login. Keep it within the trusted local/LAN boundary described in security.
Confirm local readiness#
Read the ordinary metadata endpoint before troubleshooting a protocol handshake:
curl.exe http://localhost:4310/api/mcp/statusThe response reports name, version, transport, endpoint, authentication mode, tool names/count and session mode. This does not execute a workflow or verify a provider credential. If the application is not running, follow installation guidance and local operating instructions. The website preview is a separate static service.
Protocol behavior#
The transport accepts POST /mcp. A compatible client performs ordinary MCP initialization and capability negotiation, advertising Accept: application/json, text/event-stream and sending JSON. Opening the endpoint in a browser sends GET, which deliberately returns 405 Method Not Allowed with Allow: POST. DELETE also returns 405. This is expected behavior.
MCP sessions are stateless: ONF creates a server and transport for each POST, uses JSON response mode and does not require a persistent MCP session ID. Accepted runs and durable application state remain independent of transport lifetime. Closing a client connection does not erase or cancel accepted work.
Refresh the client inventory#
After connecting, list tools and read onf://guide. If new tools are absent after an application update, refresh the connection or start a new client session. Saving a configuration does not prove a running conversation loaded it. Compare active tools with /api/mcp/status and the source-derived reference.
Connection refusal means the selected address/port is not listening or reachable. HTTP 403 points to Host/Origin or network policy. HTTP 405 means an unsupported method. An MCP result with isError:true means a tool failed after protocol handling; inspect its error, status and issues.
A cloud assistant cannot reach another machine's localhost. Reachability must exist from the client itself. A desktop configuration does not automatically grant a cloud session LAN access, and the unauthenticated administrative endpoint should not be exposed publicly to bridge that gap.
Source provenance
Reviewed against maintained source and topic documentation on 23 October 2026. This is a source snapshot; installed versions and provider access may differ.
docs/MCP.mdserver/mcp.tspackage.json