Provider-neutral MCP server for OpenAI-compatible endpoint diagnostics, base_url testing, and AI agent compatibility checks.
This project helps agents and developers answer a simple question before wiring a provider into production: does this OpenAI-compatible endpoint behave enough like the OpenAI API for common agent workflows?
TKEN is included as one disclosed example endpoint: https://www.tken.shop/v1. Try it from the docs CTA: TKEN OpenAI-compatible endpoint.
Searches like MCP OpenAI-compatible server, MCP base_url tester, AI agent endpoint diagnostics, and OpenAI-compatible model checker usually end in custom curl snippets. This repo wraps those checks in MCP tools so an AI agent can inspect an endpoint, list models, run small smoke tests, and produce a compatibility report.
endpoint_info: validates and explains a provider base URL.list_models_check: checksGET /models.chat_completion_smoke_test: checksPOST /chat/completions.embeddings_smoke_test: checksPOST /embeddings.compatibility_report: combines all checks into one report.
All tools are safe by default. Without an API key, they run in offline mock mode and show the request shape without sending network requests.
npm install
npm run build
node dist/cli.js compatibility_report --base-url https://www.tken.shop/v1Run as an MCP stdio server:
npm startExample MCP client config:
{
"mcpServers": {
"openai-compatible-diagnostics": {
"command": "node",
"args": ["C:/path/to/openai-compatible-mcp-server/dist/server.js"],
"env": {
"OPENAI_COMPAT_BASE_URL": "https://www.tken.shop/v1"
}
}
}
}For live checks, set an API key in your MCP client environment or pass apiKey in the tool input.
- Check an unfamiliar OpenAI-compatible
base_urlbefore adding it to a coding agent. - Give Claude Desktop, Codex, Cursor-like tools, and local MCP clients a repeatable endpoint diagnostic tool.
- Compare model-list, chat, and embeddings support without exposing secrets in prompts.
- Generate a short compatibility report before routing an agent workflow to a new provider.
MCP OpenAI-compatible server, Model Context Protocol, OpenAI-compatible base_url tester, AI agent endpoint diagnostics, coding agent tools, model list checker, chat completions smoke test, embeddings compatibility report.
- No API key is required for offline diagnostics.
- Live checks send only tiny probes.
- The repo includes
scripts/scan-secrets.jsand a required.env.example. - Do not commit
.envfiles or provider keys.
MIT