Developer Docs

MCP endpoints, JSON-RPC flow and extension points.

This page summarizes the technical surface for developers building with or extending StifLi Flex MCP.

Request flow

AI Client -> OAuth authorize
AI Client -> SSE connect
AI Client -> initialize
AI Client -> tools/list
AI Client -> tools/call
StifLi Flex MCP -> WordPress APIs

Endpoints

EndpointPurpose
/wp-json/stifli-flex-mcp/v1/sseSSE connection for MCP clients.
/wp-json/stifli-flex-mcp/v1/messagesJSON-RPC message handling.
OAuth endpointsAuthorization, token, revocation and dynamic client registration.

JSON-RPC methods

The MCP server supports lifecycle and tool operations such as initialization, tool discovery and tool execution. Enabled tools are filtered by registry state, active profile and WordPress capability checks.

OAuth

OAuth 2.1 with PKCE is the preferred authentication model for modern clients. Application Passwords remain available for advanced or legacy integrations.

Extending tools

  • Native tools for stable plugin features.
  • Custom HTTP tools for external APIs.
  • Custom ACTION tools for WordPress hooks.
  • WordPress Abilities for plugins that register abilities.

Debug logs

The Debug Log panel can show recent request handling, authentication events, API calls and tool execution failures. Logging can also be enabled through the plugin settings or constants depending on the environment.