Skip to content

How our engineers turn their work into posts with coding agents

Preetham ReddyUpdated 13 min readVoices

Our blog writer ran out of AI credit on 14 October, and six queued post ideas failed one after another until the account was topped up. Every model call came back "429 Unified billing rate limited". The writer drafts on credit we buy, so every engineer's idea waited on one balance, and on 19 October it ran dry again.

That outage is the cost reason we built an MCP server for techfabric.com, so TechFabric engineers can turn work they've just finished into a published post from the AI coding agent they already use, on subscriptions they already have. The other side came from the engineers: their coding agent already has the repository in context, from the error message to the fix, so it drafts faster and needs fewer rounds than a brief emailed to our writer.

Every engineering-led company has the gap this closes. The people who know the most about its work rarely have time to write about it, and a post written without them reads like everyone else's. So the best proof of what the team can do seldom reaches the buyers deciding whether to hire it. When the engineer's own agent drafts from the work, a problem solved this week becomes a fact-checked post in one sitting, and nothing goes live until it passes the checks that must pass and the engineer says yes.

Bring Your Own Agents

Before the server, an engineer emailed a brief to our own content agents, and posts went back and forth until every check passed. We call the new pattern Bring Your Own Agents (BYOA). Engineers bring their agent and the context, whether that's Claude Code, Codex or another harness, and we bring the rules and the checks. The email route stays for anyone who'd rather write a few paragraphs and let our writer take it from there. An agentic software factory is built from coding agents that work inside a team's own rules and checks, and this is the same idea pointed at writing.

Drafting, revising and the rule-based lint now run on the engineers' own subscriptions. Our gateway credits go mainly to the judged checks, which run once per saved text, not on every lint.

How the server is put together

The techfabric.com server is at www.techfabric.com/mcp, with the server we built published on GitHub, and the Databricks Field Guide has its own. It speaks Streamable HTTP on MCP revision 2026-07-28, built on version 2 of the official TypeScript SDK, and it's stateless. Every request builds a fresh server, with no session id and no initialize handshake to keep alive. Clients still on the 2025-11-25 revision are served on the same URL.

Anyone can call the eight read tools without signing in. They answer from an index the build writes on every deploy, so drafts, previews and noindex pages can't appear in a result, and no read call reaches a language model. The other 24 are the author tools, two of them for the site owner only, and they need a Microsoft sign-in in the techfabric.com tenant.

Engineer's coding agent with the repo in context

www.techfabric.com/mcp

Eight read tools, no sign-in

Editorial rules resource

Microsoft sign-in in the techfabric.com tenant

Author tools, on the engineer's own drafts

The same checks every agent runs

Published once the engineer confirms

An engineer's own coding agent reads the site and the editorial rules without signing in, and signs in with Microsoft to lint, check, file and publish their own drafts.

Any MCP client can sign in, whether that's Claude Code, Codex, Cursor, VS Code, Fabric Agents or Claude's custom connectors in Claude Desktop and claude.ai. Before the sign-in, a techfabric.com page names the app asking for access and where its access goes. Then the engineer signs in with Microsoft. The server checks the ID token's signature against the tenant's keys, refuses guest accounts and requires an @techfabric.com address, so any TechFabric employee can sign in and write under their own name. Their first post adds them to the blog's author list. Every call checks the sign-in again, so access we revoke ends at once. Access tokens last an hour and renew for 30 days.

An anonymous call to a write tool gets the step-up challenge from the MCP authorization spec, which tells the client exactly where to sign in and which scope it needs:

HTTP/1.1 401 Unauthorized
WWW-Authenticate: Bearer resource_metadata="https://www.techfabric.com/.well-known/oauth-protected-resource/mcp", scope="blog.write"
Tool Who can call it What it does
search Anyone Finds posts, services, case studies, city pages and events
get_page Anyone Returns one published page as Markdown, with its FAQs
list_posts Anyone Lists blog posts by tag, author or date
get_services Anyone Lists every service and product page
explore_post Anyone Steps through a post's or case study's diagram, each step tied to its section
compare_case_studies Anyone Puts two or three case studies side by side
assess_databricks_readiness Anyone Scores eight questions about a data platform, with where to start
quiz_me Anyone Turns a post's own FAQs into a scored quiz
get_brief Signed-in authors Today's topic for a scheduled daily draft
lint_draft Signed-in authors Runs the rule-based checks in about a second, with no model
check_draft Signed-in authors Runs the full checks, our judge included, on the saved draft
submit_draft Signed-in authors Files the post under the author's byline and builds a preview
update_draft Signed-in authors Saves a new version of the author's own draft
list_drafts Signed-in authors Lists the author's drafts with state, dates, preview and next step
get_status Signed-in authors Reports a draft's state, failing checks and links
preview_draft Signed-in authors Shows a draft as the site renders it, with its checks
review_before_publishing Signed-in authors Asks the engineer to confirm publishing and returns a one-time confirmation
publish_draft Signed-in authors Publishes the author's own draft once they confirm
revise_post Signed-in authors Opens a revision of one of the author's live posts

The read tools matter more to authoring than they look. Before drafting, an agent can search what we've already published on the subject, read our own earlier posts to link them, and avoid writing the third post on a topic we covered last month.

What the agent reads before it writes

The first thing the agent reads is the editorial_rules resource at techfabric://editorial/rules. The server assembles it from the same editorial pack our hosted blog writer loads when it drafts an engineer's post. That pack holds our voice rules, the patterns that make text read as machine-written, how we write titles and headings, what a post needs to carry, when to draw a diagram, what we may claim and whose perspective a post takes. It also carries the drafting skill, the behaviours we hold every agent to (never invent a fact, ask the author instead of guessing), the frontmatter a post needs and the authoring workflow, step by step.

Client confidentiality comes first in that document. A coding agent working in a client repository has seen code, data and conversations that must never reach a public page. The rules tell it to name no client, schema, metric or internal system unless the client is approved for publication, and then only as far as the approval goes. Signed-in authors get the list of approved clients with each one's limits. An anonymous caller gets the rules without that list.

Every agent we run loads the house rules from that one pack, and so does the MCP resource. When we change a rule, the next post an engineer's agent drafts follows it, with no prompt in anyone's dotfiles to update. The resource is cached for an hour, so a change reaches every agent within that hour.

Lint first, then the 27 checks

The agent iterates with lint_draft. It runs every check no model reads, inside the Worker, on the whole post, and answers in about a second. Each finding names the passage it's about and what to do, so the agent fixes that sentence and lints again, as often as it needs, at no model cost to us. lint_draft also returns the judge's rubric: the reader the post is judged as, each question our judge will ask with its threshold, and the first screen the buyer test reads. The agent reviews its own draft against that rubric on the engineer's subscription.

Once the draft is filed, check_draft with the draft's id is the final verification. It's the browser editor's own Run checks on exactly the saved text, our judge and the fact-check included. The checks run inside the Worker and take about a minute. When something fails, it answers with a rewrite plan, the passages to change and what to write instead. The agent rewrites, lints and verifies again, for up to six rounds, before it stops and shows the engineer what's left. Checking the same text again is answered from the earlier run.

The 27 checks split into 10 draft items and 17 site gates. The draft items are deterministic. They require a captioned diagram, enough depth, a title and description that fit a search result, images the site can show, and no leftover placeholders. They also require no empty headings, at least three answered questions at the end, a closing paragraph before them, no paragraph cut off mid-sentence and no broken links. Of the 17 gates, 11 are code and 6 are read by a model. Clef, the decision model on Cloudflare Workers AI, reads three of them, and Clef-omni looks at the rendered cover. The fact-check is our hosted writer's own fact-checker, and the guidelines gate asks three decision models whether the post meets Google's guidelines for helpful content.

Gate Read by What it holds the draft to
humanizer Code Em dashes, banned words and other mechanical AI tells
voice Code No internal jargon in TechFabric's voice
quality Clef Each paragraph read for generic, hyped or apologetic writing, and for the sentence shapes of machine-written text
helpful Clef The whole post against Google's helpful-content questions
opening Code Real prose before the first heading
density Code An opening that reads easily
buyer Clef Whether the post's reader would understand the first screen
claims Code Partner-tier wording and certification claims we can't make
known-errors Code Mistakes that shipped once and must never ship again
facts Model Each claim, one by one, against the post's links, the author's own words and the approved client facts
guidelines Three models Google's guidelines for helpful content
diagrams Code A captioned Mermaid diagram that renders on the site
title Code A title that names its subject in one clause
meta Code A title and description that pass the search check
images Code Images served from the site
assets Code Image references that are well formed
covers Clef-omni The rendered cover image, plus SVG rules

A check without an answer fails closed. If a model is down, a token is missing or our spend breaker has paused model calls, the gate reports that it couldn't run, and a run with an item that couldn't run is never a pass.

There's only one list of gates. The site build in npm run check, the hosted blog writer, the editor's Run checks, lint_draft, check_draft and the approval at the merge all call each check's own code instead of a copy of its rules, and a test fails the build if any of their lists drifts from it.

One list of gates

The site build in npm run check

Hosted blog writer agent

Run checks in the browser editor

lint_draft and check_draft from an engineer's agent

The approval at the merge

One gate list holds every route to publication to the same standard, whether a hosted agent or an engineer's own agent wrote the draft.

So when we tighten a check because a bad sentence got through, the content agent's next explainer and an engineer's next MCP draft meet the stricter version on the same day.

Every draft gets the fact-check

Posts from our hosted writer, which reads its sources through Cloudflare's web_fetch, go through a model fact-check against them before anyone sees them. Since 21 October, posts submitted through MCP get the same one. check_draft runs the writer's own fact-checker once per saved text, against the pages the post links, what the engineer told their agent, the engineer's own earlier posts and the client facts we're approved to publish. It gives every claim its own verdict, and each flagged sentence comes back with what to write instead. A claim only the engineer can vouch for, such as something they did on a project, is listed for them to confirm. "Confirm all listed" confirms that whole list in one action and still records each claim separately. Only the draft's author can confirm, and a client fact or a known error never appears on the list.

An engineer's agent can't publish past a fact-check finding. A client fact or a product result nobody sourced holds the post for everyone, and so does a mistake we've already shipped once and corrected. The claims gate stops partner-tier wording we're not entitled to. Client confidentiality opens the rules document, and the author still reads the preview before anything goes live.

From draft to published

When lint_draft passes, the agent calls submit_draft. The post is filed under the signed-in engineer's byline exactly as written. The site sets the author, today's date and draft: true, and adds a reading time if the post has none. Then the pipeline does the work an engineer shouldn't have to: it renders each Mermaid diagram with the site's font and palette, puts the images in our blog media, builds the preview and emails the author the preview and the editor link.

lint_draft runs the rule-based checks

Agent fixes the flagged passage

submit_draft files it under the author's byline

Preview built and emailed to the author

update_draft saves a revision

check_draft verifies the saved text

publish_draft asks the engineer to confirm

Merged and deployed

The agent lints and fixes the draft on the engineer's subscription, files it, verifies the saved text, and publishes only after the engineer says yes.

For revisions the agent lints the new text, then calls update_draft with the whole post and the base_hash from get_status. The save is refused if the draft changed since then or is open in the browser editor, so an agent can't overwrite a human's edit. A save runs no checks, so after the last one the agent calls check_draft with the draft's id.

publish_draft never publishes on its first call. A client that can ask the engineer does, with a question that names the post. A client that can't gets a one-time confirmation, good for ten minutes and for this exact text, and the agent is told to ask the engineer before sending it back. Once they say yes, the post goes through the editor's own Publish, merge and deploy, and a failed merge or deploy brings the draft back with what failed. Publishing needs a passing check_draft run on exactly the saved text. If only wording and style checks failed, the engineer can choose to publish past them, from the browser editor or the draft view in the AI app, and that choice is recorded. An agent never publishes past the fact-check, the slop and machine-writing checks, the opening or the closing paragraph; it fixes those until they pass. Build, images, diagrams, links, claims and known errors always have to pass.

The same tools file a case study instead of a post, with kind: "case-study", and an engineer can schedule their agent to draft a post every weekday morning from get_brief. A scheduled run stops at the preview and never publishes.

The draft inside the AI app, with MCP Apps

MCP Apps is an official extension to MCP that lets a tool's answer carry an interactive view, which the AI app shows in the conversation instead of a block of text. Our draft tools carry one. When the agent files or saves a draft, the engineer reads the post right there in the chat, drawn in techfabric.com's own style with its cover, headings and diagrams as they'll be published, and can open it full screen for a proper read.

Next to the preview is a Checks tab. Each check fills in as it finishes, and a failing one quotes the passage it's about and says whether it must pass or may be published past. Its "Ask the agent to fix this" link hands that finding back to the agent in the same conversation, so nobody copies an error message between windows. A bar under the post says what still stands between the draft and the site, and its "Publish" button asks the engineer to confirm before the post goes anywhere. While the checks or the preview build run, the view shows how far they've got, and after the engineer says yes it follows the post through the merge and the deploy until Google has indexed it.

The Databricks Field Guide's server has views of its own, which matter when a post cites the guide. An agent's search lists the matching chapter sections with their dates, a chapter opens in place with its code and the Databricks documentation it cites, and code examples come grouped by language. The guide's code review and cost estimator answer in the same view.

Claude, ChatGPT, Cursor, VS Code with GitHub Copilot and Fabric Agents 0.15.7 or later all render MCP Apps, so a draft can open in the conversation with its checks beside it. VS Code renders them only once its experimental MCP Apps setting is on (setup notes for each). In Claude the views render and call our tools themselves. Where an AI app doesn't let a view call tools, its buttons ask the agent to do it instead. The other screenshots were taken in Fabric Agents. An AI app without MCP Apps gets the same answers as text, and every answer about a draft starts with its preview link to open in a browser.

What else an author's agent can ask for

Beyond the 11 signed-in tools in the table, eleven help with the rest of an author's work. Two more, get_brief_pool and propose_brief, feed the daily briefs and answer only the site owner.

  • start_post opens with a short interview about what the engineer built. The agent suggests answers from the engineer's repository, so the engineer only confirms or corrects them, and check_outline holds the outline to our rules. The draft is written only after the engineer approves the outline.
  • propose_edits shows the agent's suggested changes to a filed draft as a redline, each with its reason, and apply_edits saves only the ones the engineer accepts, then checks the draft again. ask_author puts one question only the engineer can answer, and keeps the answer with the draft as its source, in their words.
  • post_performance reports how the engineer's published posts do in Google search, and what to improve.
  • suggest_links_and_topics proposes our own pages to link and searches we haven't answered yet, and preview_diagram parses each diagram the way the site will.
  • social_post_kit turns a published post into a LinkedIn post, and lint_social checks it. reddit_post_kit gathers what an agent needs to draft a Reddit post or answer, for the author to post themselves.

Ready-made templates for a post and a case study sit beside the editorial rules as resources.

Setting it up

The quickest route in Claude Code is our plugin on GitHub. It adds the server, our blog skill and commands such as /techfabric:write-post:

claude plugin marketplace add Fabric-Pro/techfabric-claude-plugin
claude plugin install techfabric@techfabric

Without the plugin, add the server once:

claude mcp add --transport http techfabric https://www.techfabric.com/mcp

Then run /mcp, pick techfabric and choose Authenticate. A browser opens on a techfabric.com page that names the client asking for access, and the engineer signs in with their @techfabric.com Microsoft account. In Codex it's codex mcp add techfabric --url https://www.techfabric.com/mcp, then codex mcp login techfabric. Our MCP servers page has the setup for Cursor, VS Code, Fabric Agents and the rest.

The prompt we give engineers to start from asks the agent to read the rules before it does anything else:

Read techfabric.com's editorial rules (the techfabric editorial_rules resource), then write a TechFabric blog post about how we <solved this problem or built this thing>. Draft only from what I actually did and what's in this project; never name a client the rules don't approve, and ask me for any fact you don't have instead of inventing it. Run lint_draft and fix every finding until it passes, review the draft against the judge_rubric it returns, then submit it with submit_draft and give me the preview link.

Each signed-in author has an hourly limit on calls, and checking text that was already checked joins the earlier run instead of counting again.

A team that wants the same setup can start smaller than this. Write the house rules down as one resource an agent can read, and run the same checks on its drafts as on your own writer's, so nothing reaches the site without the checks that must pass and the engineer's yes.

Frequently asked questions

Can an engineer's agent publish to techfabric.com through the MCP server?

Yes, for the engineer's own draft, once the engineer confirms. publish_draft needs the full checks to have passed on exactly the saved text, and its first call publishes nothing: the client asks the engineer, or the agent gets a one-time confirmation it may send back only after asking them. Only a TechFabric employee signed in with Microsoft can reach the write tools, and only for their own drafts.

Which coding agents can write drafts?

Any MCP client that can sign in with OAuth, including Claude Code, Codex, Cursor, VS Code, Fabric Agents and Claude's custom connectors in Claude Desktop and claude.ai. Any TechFabric employee can sign in with their @techfabric.com Microsoft account and writes under their own name. Reading the site's published pages needs no sign-in.

Which AI apps show the draft inside the conversation?

Any AI app that renders MCP Apps, which today includes Claude, ChatGPT, Cursor, VS Code with GitHub Copilot and Fabric Agents 0.15.7 or later. VS Code needs its experimental MCP Apps setting turned on first. An app without MCP Apps still gets every answer as text, starting with the draft's preview link, so the engineer can read it in a browser instead.

Does a model fact-check posts submitted through MCP?

Yes. Since 21 October, check_draft runs our hosted writer's own fact-check on every saved text, against the post's links, what the engineer told their agent, their own posts and the approved client facts, with a verdict for each claim. An engineer's agent can't publish past any of its findings, and the claims check and the known-errors registry still run on every draft.

Why does it cost us less than the email route?

The engineer's own coding-harness subscription pays for the drafting, the revisions and the rule-based lint, which can run as often as the agent likes. Our AI gateway credits go mainly to the judged checks, which run once per saved text, not on every lint.

What stops an agent from putting client details into a post?

The editorial rules the agent reads first put client confidentiality above every other rule, and signed-in authors get the list of approved clients with the limits on each one. The fact-check holds any client fact nobody sourced. The author reads the preview before anything can be published, and a post that leaks a client is withdrawn.