# SilexHub: making specialist samples callable by AI

How sample tools, owner-scoped results and versioned claims prepare specialist disclosures for AI access, with a clear boundary between implemented code and live data delivery.

If you maintain a semiconductor tracking table, a revenue number needs context: which filing, which reporting period, which geographic definition, and whether the company later changed that definition. An AI tool needs to preserve those distinctions rather than return an isolated number.

SilexHub is self-operated specialist data, knowledge and tools for the AI you already use. This engineering case follows its sample-access implementation and its separately reviewed semiconductor data preparation. The evidence is a repository code review dated 19 November 2026, not a customer deployment story.

## Start with a sample contract

The implemented Next.js `POST /api/mcp` route delegates to handlers built with `@modelcontextprotocol/server`. Its public handler imports the repository's sample catalogue. It does not query the specialist semiconductor dataset.

| Tool | Input or scope | Output |
|---|---|---|
| `search_samples` | Search across sample titles, descriptions and tags, ignoring case | Matching demonstration samples with `sampleOnly: true` |
| `read_sample` | A catalogue sample | Stored sample input/output, filename, format and product URL, with `sampleOnly: true` |
| `my_library` | Authenticated key owner's account | That owner's saved library |
| `my_credits` | Authenticated key owner's account | That owner's credit information |

The first two tool descriptions distinguish demonstrations from live data and paid tools. The account tools are read-only: they neither spend credits nor start purchases. This lets an AI inspect what a tool returns without treating a demonstration as a fresh data query.

## Bind account reads to the key owner

An `x-api-key` is checked through Better Auth, then against an email-verified, unbanned database user. Valid keys add `my_library` and `my_credits` to the handler. Invalid keys receive 401, and authenticated calls are rate-limited.

The account is derived from the key. Library and download reads are owner-scoped, so the access boundary is part of the server implementation rather than an instruction asking an AI to choose the right user.

## Save a version, not a moving reference

Saving a sample creates a Prisma-backed claim. The implementation computes a SHA-256 version from the stored sample snapshot. Its uniqueness key combines user, resource, locale and version.

That design makes “the same resource” more precise. A saved result belongs to a particular owner, language and content version. A later catalogue edit can produce a new version while the saved snapshot retains its original contents. The hash identifies snapshot content; the disclosure review and reconciliation supply the evidence for the underlying figures.

## Reconcile disclosures before exposing live data

The semiconductor sample starts from manually reviewed `filings.json` snapshots. Records retain filing accession, reporting period, geographic definition, source URLs and restatement or grouping changes. Those fields matter when historical disclosures use different regional groupings.

The read-only verification command is:

```sh
node build-sample.mjs --check
```

The verified run reports:

| Checked material | Result |
|---|---:|
| Filings | 21 |
| Reconciled filing-period totals | 63 |
| Regional records | 345 |
| Verified change records | 4 |

These are dataset verification counts, not usage, customer or revenue metrics. They describe the checked sample and its reconciliation work.

## Keep the release boundary visible

The recorded production configuration opens public pages and anonymous sample downloads. Login, workspace, checkout and MCP remain closed. A separate semiconductor preview exposes three NVIDIA rows and a public CSV.

The sample MCP code and the future specialist-data service are separate stages. **Live specialist-data read-only MCP awaits data acceptance.** The prepared credit and subscription offers are not enabled production sales.

Documentation also gates the Codex setup command on `publicMcpUrl()` returning an enabled endpoint. The command belongs to Codex; a standalone SilexHub CLI remains a roadmap item. An integration example should not send you to a closed endpoint.

## Apply the same pattern to your data

The reusable engineering sequence is concrete: define a sample contract, bind account access to a verified identity, save versioned results, reconcile source records, then open the live query interface after data acceptance. For a custom tool inquiry, start with the source material, the question your AI must answer and the result you need to keep.

[Explore SilexHub](https://silexhub.com) · [Ask about a custom AI tool](/en#contact)

## Sources

- [SilexHub — public product and sample entry](https://silexhub.com)
