Repository navigation
Releases
v1.0.2
Changed
- The name shown is Pexafy Stock Photos. The
titleof the registry entry and of
the server card, thedisplayNameof the Claude and Cursor plugins, the Cursor
marketplace entry, the plugins' READMEs and the name the OAuth metadata gives the
protected resource now read "Pexafy Stock Photos", a name that says what the server
finds. Identifiers do not change: the registry namecom.pexafy/pexafy-mcp, the
plugins'namepexafy, thepexafykey of their.mcp.json(the prefix of the
tool names in Claude Code),serverInfo.nameand the grid's app name. The Claude
plugin's description and README now say it as the repository's README does: the person
says what they need, and the assistant writes the search. - Where the grid is shown, each search's description opens on it. Asked why, after
the Pexafy grid, it added pictures of its own and links to stock sites, ChatGPT said
it took Pexafy for a source of results rather than for the answer on screen. In a host
that shows the grid and is not Claude,search_photosandsearch_photos_by_image
now open on one paragraph: Pexafy Stock Photos is a full photo search, the grid is the
complete visual answer, and the reply after it is two or three sentences that invite
the person to like what they want, with no second gallery. Measured in ChatGPT on ten
searches: three pictures added below the grid, in one reply, against 12 to 21 in five
searches before, and nine replies in ten invite the person to like photographs in the
grid. Claude, whose directory asks a description not to tell Claude how to behave, and
every host without the grid read the list as before. ChatGPT's answers also say, in a
declaredpresentationfield, how they are shown, and the file tool's description
says it is for a photograph the person picked.
Fixed
- ChatGPT no longer writes the photographs again under the grid. In a host that
shows the grid, the model read a list of the photographs with their credits, a mild
"they need not be shown again", and, instructuredContent, each photograph's source
page, its credit with the licence URL and its previews as a path. ChatGPT wrote the
list again under the grid, each photograph as a picture that could not load and a
"download" link. Where the grid is shown, the text now says the grid is the answer
and the reply does not repeat it, names each photograph by itsphoto_idand
description only, andstructuredContentlosessource_image_urland the licence URL
inattribution.plain(the grid uses neither). In ChatGPT, whose grid reads the
previews from_metaand keeps a copy for a reloaded frame, the previews leave
structuredContenttoo; other hosts keep them as a path without address. A client
without the grid — Claude Code, Codex, a terminal, an unknown one — reads the whole
answer, every link included, as before. - No tool schema writes a nullable field as a
typelist. Both searches declared
width,height,photographer_full_name,source_image_urlandalt_description
astype: [X, "null"], as the API's spec does. That is legal JSON Schema, but MCP
Inspector's portability check flags it: a client that maps tool schemas onto a
single-typedialect, such as Gemini's function declarations, may refuse the tool or
drop the constraint. Each field is nowanyOf: [{type: X}, {type: "null"}], which
accepts the same values, and a test keeps every input and output schema free of
typelists. - A client named "mcp" loads the tools. Microsoft Agent Framework (Python 1.20 and
1.21) checks every_metakey of every listed tool against the MCP key-name format
and, on the first that fails, loads no tool at all: "Invalid MCP _meta key name:
'openai/toolInvocation/invoking'". A client named "mcp", the Python SDK's default
clientInfo.namethat Microsoft Agent Framework, Agno, Pydantic AI and Strands keep,
no longer reads ChatGPT's two status-line keys; none of them shows a status line.
Every other host reads the same list as before.
v1.0.1
The server and its registry entry now carry the Pexafy icon and name the website; the five tools are unchanged. The hosted server at https://mcp.pexafy.com/mcp runs this version.
Added
- Icon and website:
serverInfodeclareswebsiteUrl(https://pexafy.com/mcp/) andicons, served by the server itself (/icon-256.png,/icon-48.png,/favicon.svg); over stdio the icon travels inline.server.jsonlists the same icons, for the directories that read the registry. - Cursor plugin in
cursor/, listed from the repository root through.cursor-plugin/marketplace.json: the hosted server, the find-stock-photos skill and the logo.
Changed
- Server instructions open on when to use the server, so the triggers fit in the first 512 characters OpenAI reads. No word changed.
- README: a short page for the people who install the server. Everything it held before is in
DEVELOPMENT.md.
Removed
get_similar_photosis listed to no host. A call under the old name is still answered bysearch_photos_by_image.
Details in the changelog.
v1.0.0
Five tools where there were three, a search surface of one sentence and one shape, a grid that becomes the place to choose photographs, and optional access for callers with no account. The hosted server at https://mcp.pexafy.com/mcp runs this version, and a connector installed under 0.4.x keeps working.
Added
get_photo_file_by_photo_id: one photograph as an image file, at most 1280 pixels wide, with the line that names it and its credit line, for an assistant asked to place it in a document or edit it.get_grid_selected_photos: the photographs the person liked in the grid, in the order they liked them.connect_account: asks the host to connect a Pexafy account; withcheck_only, it reports the connection and the allowance in force without opening anything.photo_idonsearch_photos_by_image: "more like this one" is a search whose reference is a Pexafy photo, sent with the words that photo was found under, so the results stay on its subject.- Access without an account, off by default (
PEXAFY_ANON_ENABLED), and account linking: every tool declares bothnoauthandoauth2. - Server
instructions, afind_photosprompt, a Claude plugin (plugin/) and a skill (skills/find-stock-photos/). constraints.txt: the image is built against a pinned dependency set, andfastmcpis capped below 4. A fresh install of 0.4.12 now pulls fastmcp 4 and fails at import.
Changed
- One sentence and one shape.
english_search_sentence(1 to 250 characters) andexplicit_orientation_filter. The other filters left the tools; the REST API keeps them. - The grid is rebuilt: a ♥ to like, a swipe deck, "more like this one" with a trail back, a shape filter and an account button. The allowance shows before it runs out, and a spent one is stated in the grid, with when it resets.
- One page of 16 and leaner results, every field declared in the output schema. The grid's image links travel in the result's
_meta, out of the model's context. - Where the person sees the grid, the model reads the photographs without their links, so it does not show them a second time. Claude Code, terminals and Codex keep the whole answer.
- Thumbnails last 30 days, so a result scrolled back to the next day still shows.
Upgrading from 0.4.x
- The two searches keep their names. What 0.4.x hosts still send (
get_similar_photos,q,orientation, the dropped filters) is accepted, translated and logged. get_similar_photosstays listed for OpenAI hosts only, until the app's 1.0.0 tools are approved (PEXAFY_SIMILAR_ALIAS).PEXAFY_LEGACY_GRID_UNTILcovers the 0.4.12 grid that ChatGPT may keep in its cache after a deploy.- Self-hosting: set
PEXAFY_API_BASE_URL, whose default ishttp://localhost:8000. Account linking is on by default (PEXAFY_ACCOUNT_LINKING).PEXAFY_REDIS_URLis optional.assets/facets.json,PEXAFY_FACET_BOOTSTRAP_KEYand the Inter typeface are gone. See the README and.env.example.
Security
image_urlcan no longer reach the server's own network (SSRF). 0.4.x downloaded any http(s) URL, loopback, private ranges and cloud metadata included, and followed redirects. Every address is now checked, the connection goes to the address that was checked, each redirect is checked, and the download is capped as it streams.- The host's request no longer reaches the API. 0.4.x copied the incoming request's headers onto the request it sent to the API. Requests are now rebuilt on an allow-list, and the caller's address travels as a pseudonym.
- No search sentence, image, token, e-mail or address in clear in the logs; a key sent in
x-api-keyis resolved as the caller's own; signed, expiring credentials on the new paths; text written by third parties is cleaned before the model reads it.
If you run 0.4.x yourself, upgrade.
Full changelog: https://github.com/Pexafy/pexafy-mcp/blob/v1.0.0/CHANGELOG.md
v0.4.11
Fixed
The 401 now names both ways in, not just OAuth. The MCP spec's 401 is a header, and a client that speaks OAuth follows it. Production has clients that do not. One visitor, on 20 August, four residential IPs, two hours: 151 requests to /mcp, 50 carrying a credential, 66 token rejections logged on the Django side, and not one .well-known document ever fetched. He never entered the OAuth chain because his client cannot. This server accepts a plain Pexafy API key as the bearer, which was exactly what he needed, and neither answer he got mentioned it: an empty body when he sent nothing (1741 such responses over two months, the most common answer this server gives), and 301 bytes of OAuth advice when he sent something.
unauthorized.py fills both, with different words, because "you sent nothing" and "what you sent was refused" are different problems. The status, the WWW-Authenticate header and the SDK's machine-readable error code are all preserved, so no client behaviour changes, only what a person reads. A 401 that is neither empty nor one of the SDK's own JSON refusals passes through byte for byte, /metrics included.
Full changelog: https://github.com/Pexafy/pexafy-mcp/blob/main/CHANGELOG.md
v0.4.10
Fixed
The 2026-07-28 discovery probe no longer leaks a session. Clients speaking the new protocol revision — Claude Code, Claude-User, ChatGPT's openai-mcp — open with a sessionless server/discover POST. The SDK this server runs on tops out at 2025-11-25, so it does not know the method; it builds a whole transport before it reads the body, on the sole fact that no Mcp-Session-Id was sent, and only then answers 400 Bad Request: Missing session ID. The client falls back to the legacy handshake and everything works, except the transport it created is now unreachable and nothing collects it. Production over 21 hours: 120 transports created, 4 closed, 49 of them from this path. sessions.py now answers the probe before the SDK can allocate anything, same status and same JSON-RPC body, byte for byte.
Added
/metrics publishes the live session count. The SDK only drops a session when the client says goodbye, and almost none of them do, so the number held in memory only grows between restarts. Nothing is expired yet: the longest silence a real client took before coming back was 3 h 36, so any timeout short enough to be useful would also cut live users. The gauge comes first, the decision follows the curve.
Full changelog: https://github.com/Pexafy/pexafy-mcp/blob/main/CHANGELOG.md
v0.4.9
Added
The inline grid now declares a widget domain. OpenAI's plugin portal refused the submission — "a unique domain is required for app validation" — because the grid resource named no origin of its own and fell back to the sandbox every app shares. Nothing is served from the value: ChatGPT renders the widget under <widgetDomain>.web-sandbox.oaiusercontent.com, so it is an isolation label, and the target of "Open in Pexafy" from the fullscreen view. Hence https://pexafy.com rather than the MCP host. Overridable with PEXAFY_WIDGET_DOMAIN.
The widget CSP is now also written under the name ChatGPT reads. FastMCP writes _meta.ui.csp; ChatGPT reads openai/widgetCSP. Both are built from the same lists so they cannot drift — this one is invisible until it bites, since thumbnails load in preview and are blocked once the app is published.
Full changelog: https://github.com/Pexafy/pexafy-mcp/blob/main/CHANGELOG.md
v0.4.8
[0.4.8] — 2026-08-20
Changed
- The registry description now says the two things an agent picks a tool on.
It read "Stock photo search: by description, by example image, or more like this"
— accurate, and silent on both the licence and the breadth, which are the whole
point: the images are free to use, and one query crosses nine libraries instead
of one provider's catalogue. That sentence is what the official registry serves
and what every directory ingesting it repeats, so it is the one line worth
spending words on. 92 of the 100 characters the schema allows.
v0.4.7
[0.4.7] — 2026-08-20
Fixed
- Every parameter of
search_photos_by_imagenow says what it is. The two
generated tools inherit their parameter descriptions from the spec; the
hand-written by-image tool inherited what a Python signature carries — nothing —
and shipped twelve bare parameters, leaving a model to guesstext_alphafrom
its name while the identical parameter is documented onsearch_photos. The
filters now take their wording from the operation this tool posts to (excluded
from tool generation, but still the authority on those parameters), so the two
cannot drift; only the image inputs are written by hand. Two tests: one fails on
any undescribed parameter of any tool, the other on any divergence from the spec.
It was also the single point missing from the Smithery quality score
(Parameter descriptions 2/3, 97/100).
v0.4.6
[0.4.6] — 2026-08-20
Removed
/.well-known/glama.json— it fixed nothing, so it goes. 0.4.5 served it
because Glama's crawler asks for it and the connector listing complained it was
missing. Serving it turned that complaint into a different one: their connector
validator rejects the shape their own published schema defines
(maintainers[0]: "expected object, received string"), and no MCP server in
the wild publishes any other shape — every hosted server checked answers 404
there, which is what the listing was reporting in the first place. The
maintainer claim was never read from that URL anyway: it comes from the
repository file, and the server page still shows the verified-maintainer badge.
Back to 404, like everyone else. The server card stays — that one demonstrably
works: it took the Smithery release from AUTH_TIMEOUT to SUCCESS.
v0.4.5
[0.4.5] — 2026-08-20
Added
- Pre-connect server card at
/.well-known/mcp/server-card.json. A directory
that cannot authenticate has nothing to show: our Smithery listing was created,
then left empty with its scan recorded asAUTH_TIMEOUT, no tools and no
description — and their bot had asked for this exact path seconds before giving
up. Smithery documents the card as the escape hatch for precisely that case
("automatic scanning can't complete (auth wall, ...)"), and it is the shape the
pre-connect discovery draft (SEP-2127) and a growing crowd of scanners probe.
The endpoint keeps its 401 — that is what makes clients discover OAuth — while
the card, generated from the live server, states the identity, the auth wall and
the three tools with their real schemas. Six tests, including one that fails if
the card ever claims a tool the server does not serve.
Fixed
- The maintainer claim is now served where Glama actually reads it. Its
connector listing saidglama.json not found (HTTP 404)while the file sat on
the default branch of the public repository — because it does not read the
repository for a hosted connector: it fetches/.well-known/glama.jsonon the
host serving the MCP server, unauthenticated, every half hour (231 such 404s in
one prod access log). The same claim is now answered there. It is held in code,
not read from the repository file, because the image shipssrc/only; a test
pins the two copies together so they cannot drift.