An MCP server with OAuth 2.0 / OIDC authentication support, demonstrating secure tool access control via JWT token verification and role-based access control (RBAC)
This OAuth-compatible MCP server has three tools with basic descriptions and input schemas, but falls well short of production-grade quality. All three tools (secure_tool, read_tool, public_tool) share the same generic input parameter structure and lack differentiation in naming. The tool names do not follow verb_noun conventions (e.g., 'secure_tool' is vague about what action it performs). Descriptions are present but lack actionable detail about when to use each tool or what distinguishes them. Parameter descriptions are minimal ('Message parameter to be echoed back in the response'). Output schemas are not documented, responses are free-text strings without structured fields. Error handling is rudimentary (plain string returns like 'ERROR: {err}' without recovery guidance). The server demonstrates OAuth/JWT integration concepts but fails basic tool definition patterns.
A public tool that does not require authentication.
A tool that requires authentication with todos.read scope. Returns a success message with the client ID.
A tool that requires authentication with specific scopes (todos.write) and roles (admin). Returns a success message with the client ID.
Tool names violate verb_noun convention. 'secure_tool', 'read_tool', 'public_tool' lack action verbs and are ambiguous about intent. LLMs cannot infer what each tool does from the name alone.
Output schemas are completely undocumented. All three tools return plain strings ('SUCCESS: ...', 'READ SUCCESS: ...', 'Public response: ...'). LLMs cannot plan downstream calls or extract structured data without knowing response field names and types.
Parameter descriptions are trivial. All three tools have a single 'message' parameter described as 'Message parameter to be echoed back in the response'. This provides no actionable guidance to an LLM about what values are acceptable, required format, length limits, or examples.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 47 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 13 | - | v1 |
Error handling provides no recovery guidance. Error strings like 'ERROR: Insufficient scope' or 'ERROR: Insufficient role' are raw classification with no actionable next step. Code lacks pattern:recovery-guide. An LLM does not know if it should retry, ask the user, or call a different tool.
Tool descriptions do not explain differentiation. 'secure_tool' and 'read_tool' sound like they do different things, but their descriptions emphasize scope/role requirements rather than what each tool's business purpose is. An LLM cannot decide which to call without understanding the semantic difference.
Tool composition is weak. All three tools accept identical input ('message' string) and return identical output format (plain text echoing the message). This looks like a proof-of-concept authentication demo rather than a real service. No distinct business logic or data transformation.
Input schemas lack constraints. The 'message' parameter in all tools is a bare string with no enum, pattern, minLength, maxLength, or format. Unbounded strings invite oversized or invalid payloads from LLMs.