Skip to content

About

My portfolio site, which also answers AI agents directly.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

jeffkazzee.dev

My portfolio site, which also answers AI agents directly.

Live: https://jeffkazzee.dev

The home page. The headline reads I build tools for working with AI, over the Cosmic Cliffs image from the James Webb Space Telescope.

Most sites make an agent scrape HTML. This one serves each page as Markdown on request. It also exposes an MCP server, an A2A agent card and published agent skills. See /for-agents/.

What it does

  • Lists my projects and writing, with status and links.
  • Returns the Markdown version of a page when a client asks for text/markdown.
  • Answers MCP and A2A requests about the work, the writing and availability.
  • Publishes discovery documents under /.well-known/.
  • Refuses to build a home-page project without a dated verification stamp.

Try it from a terminal

Ask for a page as Markdown:

curl -s -H 'Accept: text/markdown' https://jeffkazzee.dev/projects/ | head -n 8

List the MCP tools:

curl -s -X POST https://jeffkazzee.dev/api/mcp \
  -H 'content-type: application/json' -H 'accept: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
Tool What it does
list_projects Lists the projects with status, stack and links
read_page Fetches a page of the site as Markdown
list_writing Lists published writing, newest first
contact_details Returns ways to contact me and what I am open to

The Interfaces section of the For agents page. It lists the /api/mcp endpoint for Model Context Protocol and the /api/a2a endpoint for Agent2Agent.

How it works

The site has a static half and a runtime half.

flowchart LR
  R[Request] --> M{middleware.ts}
  M -- /api/mcp --> C[MCP handler]
  M -- /api/a2a --> A[A2A handler]
  M -- "Accept: text/markdown" --> T[Markdown twin]
  M -- anything else --> H[Static HTML]
  B[astro build] --> H
  B --> T
  B --> W["/.well-known documents"]
Loading
  • Static. astro build produces the pages, a Markdown twin of each page, a content index, robots.txt and llms.txt. scripts/build-agent-surface.mjs writes the well-known documents from data modules.
  • Runtime. middleware.ts is the only server-side code. It handles content negotiation and the two endpoints.
  • Headers. Link and security headers live in vercel.json, so they still apply if the middleware fails to deploy.

Checks that protect the content

Three projects once described things that did not exist. Two dead URLs once sat under the words "live right now". The site now derives those lists from checked data.

  • npm run verify:projects fetches each live URL and queries each repo. It fails on a 404 or a fork. The build refuses to ship a shelved project without its verified: stamp.
  • npm run verify drives the MCP and A2A handlers and checks each discovery document against a real build.
  • scripts/check-budget.mjs fails the build if a first phone visit to the home page passes 240 KB. An earlier measurement recorded about 88 KB. Not remeasured.

Speed

The site is static HTML with no framework on the client.

  • Instant navigation. Speculation rules render a page in the background after a hover of about 200 ms. Other browsers get Astro's hover prefetch.
  • No render-blocking requests. CSS is inlined. Fonts are self-hosted, subset and scaled to match their fallbacks.
  • Native transitions. @view-transition cross-fades pages with no JavaScript router.
  • Service worker. Pages are network-first with a 3 second timeout, then the saved copy, then /offline/. It never handles /api/ or /.well-known/.

Run it

npm install
npm run dev

The dev server runs at http://localhost:4321.

Check the full build and the agent surface:

npm run build
npm run verify

npm run verify does not exercise the deployed middleware. Run the terminal examples above against the live origin after a deploy.

Content lives in src/content/projects/ and src/content/blog/. To add an agent skill, create public/.well-known/agent-skills/<name>/SKILL.md. The build hashes it and adds it to the index.

Stack

Astro, TypeScript and hand-written CSS, deployed on Vercel with Node 22.

Status

Deployed at https://jeffkazzee.dev. On 2026-11-06 the home page, the Markdown response, the MCP tool list and the agent card each answered from the live origin.

  • Missing: DNS-AID records deploy separately from the site (docs/dns-aid.md).

License

No license file yet. Until one is added, all rights are reserved. The space images are NASA, ESA, CSA and STScI images. The site credits each one where it appears.

Writing refresh

/blog/ is served as HTML by the native Vercel function in api/writing.js. It reads the public Substack feed on cache misses, combines it with published local records, and uses the same card renderer and mirror rules as the static build. No Git push, Actions schedule, deploy hook or new credential is needed. All other routes remain static and existing security headers remain in place.

Successful HTML is cached at Vercel for five minutes, with up to one additional minute of stale-while-revalidate; each warm function also coalesces requests and caches a feed result for one minute. Refresh is traffic-driven, not immediate. Feed reads time out after two seconds. A failed, empty or incomplete feed returns the last good HTML in that warm instance, or the complete built Writing page on a cold instance, and retries after a short cache interval. The built page retains whatever feed entries were available at build time; a cold failed build has local articles only. Runtime memory is not durable archival storage.

The static HTML and content index are explicitly bundled with the function. pnpm run build tests these artifacts and request rendering. The read-only node scripts/substack-refresh.mjs compares production links with the current feed and exits nonzero for missing articles; it never requests a deployment. The retired Actions refresh workflow and deploy-hook caller have been removed. Local static preview still serves the fallback; verify the rewritten /blog/ route, response headers and function packaging on the Vercel preview before promotion. Full-text mirrors still require separately published local content; feed-only entries link to their original Substack URLs.

Production branch compatibility

CI accepts main, prod and dev while the production rename is prepared. The verifier fetches the remote default branch only when it is main or prod, records that ref and SHA, and reads its independent acceptance key. For a hosting branch that differs from the repository default, the operator must confirm it and set VERIFY_PRODUCTION_BRANCH=main or prod explicitly. It never falls back to HEAD or the branch under test. The build release label uses that same fetched SHA. These changes do not rename a branch or change Vercel/protection settings.

About

My portfolio site, which also answers AI agents directly.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages