Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JN8CzMsMVdDxsec9nWZxwq
…ke test mode Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JN8CzMsMVdDxsec9nWZxwq
…ints, flag operations newer than the spec, snapshot fallback when the live spec breaks tool building Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JN8CzMsMVdDxsec9nWZxwq
…t hints, v2 error and spec telemetry, declare jsonschema Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JN8CzMsMVdDxsec9nWZxwq
Contributor
Author
Review (pr-verdict supports only Schedule-Posts-API, so verdicts are recorded here)
QA (head 9bbbd9d, local server, real auth against zernio.com, staff key, read tools only, nothing written)
Metrics
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Do not merge before the v2 opening (December 7, 2026). A merge to develop redeploys mcp.zernio.com. The orchestrator merges it together with the v2 opening.
Why
API v2 needs an MCP surface that does not go through the v1 SDK.
/v2/mcpis a third FastMCP instance in the same process. It reads the v2 OpenAPI spec, so every v2 operation can be called without generated code.What
/v2/mcpis grafted like/chatgpt: its own tool index, its own/.well-known/oauth-protected-resource/v2/mcp(resource: https://mcp.zernio.com/v2/mcp,authorization_servers: ["https://zernio.com"]) and its own 401resource_metadatachallenge. It also gets the Origin guard, telemetrysurface: "v2"and User-Agentzernio-mcp (v2; <client>)./mcp(ZernioTokenVerifier,/api/v1/auth/verify). The caller's bearer (an API key or alate_at_OAuth token) goes unchanged tohttps://api.zernio.com/v2, whichZERNIO_V2_API_URLcan override.ZERNIO_V2_SPEC_URL(defaulthttps://zernio.com/openapi-v2.json). If the fetch fails, or the live spec cannot build the tools, the server uses the gzipped snapshot in the package (243 KB, 946 operations)./healthand/reportv2_spec(the URL orsnapshot), and the source is logged at start. Loading and building take about 0.2 s and about 13 MB RSS per worker.body. They are checked against the full schema with jsonschema before anything is sent. A refusal names each failing field (insideoneOfdestinations it follows the matching platform) and lists the top-level arguments, not the whole schema.Retry-Afteris honoured up to 10 s.error.details.scopeshows a Zernio limit refused the call.retryable: trueare retried only for GETs and keyed writes.x-idempotency: requiredsendIdempotency-Key, either the agent'sidempotencyKeyor a UUID.createPostkeeps its body and takes the job id from the/jobs/{id}Location header.get_jobfollows a job.format_payload.status_codeanderror_code, andcall_operationlogsoperation_id./validationsoperations are read-only. Every other write is destructive (create_postcan publish now, as v1posts_create).limitis sent unless the agent passes one, so lists use the API's default page size (50 for most lists, max 100). That keeps pages compact and leaves the choice with the API.search_operations(query)calls the liveGET /v2/operations?q=with the caller's token. It answers up to 25 rows (operationId, method, path, summary, costClass) and counts the rest. Rows the loaded spec does not have are markedcallable: false.call_operation(operation_id, arguments)takes an operationId or a snake_case name.list_posts, get_post, create_post, delete_post, validate_post_job, create_post_retry, list_profiles, list_accounts, get_account, list_conversations, list_conversation_messages, send_message, list_post_comments, list_commented_posts, create_comment_reply, get_post_metrics, get_account_metrics, get_metrics_catalog, get_job, get_job_result, validate_media, create_media_upload, complete_media_upload.updatePost,validatePostandlistOperationsare reachable throughcall_operation.search_operationsis the catalog.tools/listis 50,696 characters for 25 tools, down from about 215,000.create_postlists a short destination shape (platform enum and accountId, other fields open) and still validates the full one. The largest tool left issend_messageat 21,560.jsonschemais declared in themcpextra (uv lock)./v2/mcpis added toserver.json, the server card,/server.json, the root info, the README anddocs/MCP.md, marked "available from December 7, 2026".scripts/smoketest_streamable_http.py v2checks the 401 challenge andtools/list.Follow-ups
/healthand/printZERNIO_V2_SPEC_URLverbatim: report onlyliveorsnapshot(an override URL with a token would show).docs/HTTP_DEPLOYMENT.md: listoperation_idandv2_spec.send_message(21.5K chars) is the next tool to slim.late_at_tokens). Until it merges, only API keys work on v2./v2/mcpappears in the published remotes as soon as this merges. That is fine because it merges with the opening.🤖 Generated with Claude Code
https://claude.ai/code/session_01JN8CzMsMVdDxsec9nWZxwq