Skip to main content
Glama
Elara Video Intelligence

Elara Video Intelligence

by Julz7727

Elara Video Intelligence

A private MCP integration that lets ChatGPT retrieve X posts through an authenticated Cloudflare backend and explain retrieval failures accurately.

Built by Julz7727. This portfolio snapshot documents the first working release: MCP 0.2.2-mcp.2 and backend 0.2.1-diagnostics.1.

The source is public for review. The deployed service remains private. Recruiters can inspect the implementation, tests, and design decisions without receiving access to the live service or its credentials.

Why I built it

I wanted to use an X post as a structured source inside ChatGPT, with a clear distinction between retrieved evidence and what the assistant could actually conclude. A link alone did not provide the controlled retrieval and useful failure reporting I wanted.

The first milestone was an authenticated path from ChatGPT to the X API: post text, author details, public engagement metrics, and attached media metadata. Full-thread retrieval and multimedia understanding remain outside this release.

Related MCP server: x-mcp-server

What works

Capability

Status

Private remote MCP connection using OAuth/OIDC

Verified

Owner-restricted access

Implemented and covered by identity tests

X post text, author details, public metrics, and media metadata

Live retrieval verified during the build

Authenticated backend configuration diagnostics

Verified again on November 4, 2026; no X request made

Distinct diagnostics for credentials, permissions, limits, availability, and network failures

Covered by mocked failure scenarios

Image-content analysis, sampled video frames, audio transcription

Not part of this release; v0.3 is paused

Full X thread/replies, Instagram, TikTok

Not supported

The word Video in the project name describes the broader idea, not a capability claimed by this release. Returned media metadata is not image inspection, video viewing, or transcription.

Architecture

flowchart LR
    U[Owner using ChatGPT] -->|OAuth authenticated MCP| M[MCP Worker]
    M <-->|OIDC identity verification| A[Cloudflare Access]
    M <-->|OAuth state| K[Workers KV]
    M -->|Service binding and shared backend key| B[Elara backend Worker]
    B -->|Bearer authenticated lookup| X[X API]
    X -->|Post data or failure| B
    B -->|Structured result and request ID| M
    M -->|Evidence with explicit limits| U

Two Workers keep the MCP authentication boundary separate from the X retrieval boundary. The X bearer token belongs only to the backend. The MCP Worker uses a direct service binding to reach that backend and still supplies the shared backend key.

Tools exposed to ChatGPT

Tool

Purpose

X API request?

evi_connection_status

Check the authenticated MCP connection and version

No

evi_backend_diagnostics

Inspect endpoint settings and whether an X token is configured

No

evi_retrieve_x_post

Retrieve one public X post and its metadata

Yes; may consume X API credits

Configuration diagnostics report credential presence, not credential validity. A successful live post retrieval is separate evidence that X authentication and access worked for that request.

A failure that shaped the design

During integration, the backend responded correctly when accessed directly, but the MCP connector received HTTP 404. Changing communication between the Workers to an internal service binding resolved the issue.

This also exposed a reporting problem: a routing error must not become a claim that a post was deleted. The connector now separates its own failures, backend authentication, X API failures, and post-level availability. See the engineering case study.

Security and reliability choices

  • Owner identity checked in both the authorization flow and the MCP request handler.

  • OIDC signature, issuer, audience, expiry, nonce, and required claims verified with jose.

  • PKCE, browser-bound state, CSRF protection, and short-lived authorization state.

  • Secrets entered through Cloudflare's secret management, with example-only public configuration.

  • HTTPS X/Twitter URL allowlist; the backend constructs a fixed X API endpoint instead of fetching arbitrary user URLs.

  • Redirects disabled on retrieval and token-exchange requests; bounded response bodies and timeouts.

  • Allowlisted error classifications and request IDs rather than raw provider error details or credentials in diagnostics.

  • Evidence flags remain false for video, transcript, and full-thread capabilities that were not executed.

These are implementation controls and test results, not a claim of an independent security audit. See SECURITY.md for scope and limitations.

Explore the code

packages/
  mcp/       MCP tools, OAuth/OIDC flow, service-binding client, tests
  backend/   Authenticated X retrieval and backend diagnostics
  shared/    Safe error classification and bounded JSON handling
docs/        Architecture decisions, verification record, and roadmap
examples/    Synthetic result payloads for reviewers

Start with MCP tool definitions, identity validation, the backend, and diagnostic classification.

Run checks without credentials or paid API requests

Requires Node.js 24.11 or later and npm.

npm --prefix packages/mcp ci
npm test
npm run type-check
npm run build
npm run check:public

npm test runs identity/security checks and 64 mocked diagnostic scenarios. npm run build is a deployment dry run using placeholder configuration; it does not publish a Worker. The public-content check is a lightweight repository guard, not a replacement for a dedicated secret scanner.

For a real deployment, follow the setup instructions and supply your own Cloudflare and X API configuration. No deployment automation in this repository targets the author's account.

Evidence and honest limits

  • On October 22, 2026, the owner verified a successful authenticated X post retrieval in ChatGPT, returning X_POST_RETRIEVED, HTTP 200, and post availability available.

  • On November 4, 2026, the connected tools confirmed MCP 0.2.2-mcp.2 and backend 0.2.1-diagnostics.1, with matching backend configuration and xApiCalled: false.

  • The November check did not revalidate X credentials or retrieve another post.

  • Examples in this repository are synthetic, labeled as such, and contain no real post text or live account settings.

  • This edition replaces deployment-specific values with examples and omits the paused v0.3 implementation. It is not a byte-for-byte export of the live deployment.

Skills demonstrated

TypeScript and JavaScript · Model Context Protocol · OAuth/OIDC · Cloudflare Workers and KV · service bindings · API integration · defensive error handling · automated testing · debugging distributed request paths.

I developed the project with AI assistance, adapting Cloudflare's MIT-licensed Access OAuth example and integrating the retrieval, access restrictions, diagnostics, and validation workflow. Upstream components are credited in NOTICE.md.

Roadmap

The verified milestone and paused work are recorded in ROADMAP.md and the public Project board. v0.3 stays paused until explicitly resumed. Publishing this portfolio does not enable additional services or paid media processing.

License

MIT, preserving the upstream Cloudflare notice. See LICENSE.

Related MCP Connectors

  • X (formerly Twitter): X (formerly Twitter) public and private data API for search, posts (Tweets).

    https://mcp.jojapi.com/twitter
  • X (formerly Twitter) posts, profiles, and search for AI agents. Free key, self-minted, no signup.

    https://mcp.veezee.io/x
  • X/Twitter search, posts, comments, user profiles, user posts/replies and video transcripts.

    https://mcp.socialdatax.com/x/mcp
  • Your agent needs X/Twitter data — who follows a competitor, what a community is posting, who quoted that tweet, what is trending in Japan. Normally that means applying for an X developer account, passing app review, and managing a quota per endpoint. **What you can ask for** • "Who follows @stripe, and which of them are verified?" • "Pull every reply and quote on this tweet and summarise what people object to." • "List this community's moderators and its posts this week." • "What is trending in Japan right now?" • "Give me the full thread context behind this link, including the long-form article." **How to use it** Point any MCP client at https://mcp.aisa.one/twitter-api/mcp and sign in with OAuth — there is no key to create or paste. 29 read tools: users (profile, about, batch lookup by id, search, followers, verified followers, followings, follow check), tweets (timeline, latest, mentions, advanced search, replies, quotes, retweeters, thread context, articles), communities, lists, Spaces and trends. **Why this rather than the source** No developer account to apply for, no app review, no per-endpoint quota to manage. **It is also a door to the rest** The same login reaches 26 sources and 580+ operations. Ask for a handle's followers here, then ask the same agent for that brand's search traffic, its backlinks, or the people to contact — without adding a second server. **What it costs** Finding and inspecting an operation is free. Running one is billed per call at API prices, with no seat and no monthly minimum, and every call takes max_price_usd so an agent cannot overspend by accident. **Where else it reaches** https://mcp.aisa.one/social/mcp for X plus Instagram, Reddit, Pinterest and YouTube; https://mcp.aisa.one/gtm/mcp for those plus Similarweb and Apollo.

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to access Twitter/X data including user profiles, tweets, search, and follower events via a set of MCP tools.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to interact with X (Twitter) API v2 for posting tweets, searching, liking, retweeting, and more through natural language.
    17 PyPI
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    Enables AI assistants to post, search, and manage tweets on X (Twitter) via the MCP protocol.
    10
    2
    -
  • A
    license
    A
    quality
    A
    maintenance
    Enables MCP clients to interact with the X (Twitter) API v2 through 41 typed tools for reading, searching, engaging, publishing, and managing content, with policy-based access control and session credit budgets to prevent overspending.
    41
    74 npm
    1
    MIT