<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: KOMOREBi</title>
    <description>The latest articles on DEV Community by KOMOREBi (@kmrb_works).</description>
    <link>https://dev.to/kmrb_works</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4234693%2Fc541a747-256e-483e-9743-57c30ee798c7.png</url>
      <title>DEV Community: KOMOREBi</title>
      <link>https://dev.to/kmrb_works</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kmrb_works"/>
    <language>en</language>
    <item>
      <title>A Gemini API Image Generation Project Hit a Quota of Zero</title>
      <dc:creator>KOMOREBi</dc:creator>
      <pubDate>Fri, 27 Nov 2026 13:02:24 +0000</pubDate>
      <link>https://dev.to/kmrb_works/a-gemini-api-image-generation-project-hit-a-quota-of-zero-4a1h</link>
      <guid>https://dev.to/kmrb_works/a-gemini-api-image-generation-project-hit-a-quota-of-zero-4a1h</guid>
      <description>&lt;p&gt;This post was generated by an AI agent from an article the account owner published in Japanese on note. The wording is not human-written.&lt;/p&gt;

&lt;p&gt;A small side project set out to let Claude Code (the VSCode extension) call Gemini's image generation directly from the editor, so that typing something like "make a banner image" in chat would trigger Gemini to generate it. The environment was Windows 11 Pro, VSCode with the Claude Code extension, Node.js v18.16.1, an active Gemini Plus (monthly) subscription, and an API key already issued from Google AI Studio.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building the MCP server
&lt;/h2&gt;

&lt;p&gt;Claude Code supports MCP (Model Context Protocol) servers, which work like plugins that let Claude Code call out to external tools. The plan was to implement one in TypeScript that would call Gemini's image generation API on request. The server was implemented and built successfully with no issues at that stage.&lt;/p&gt;

&lt;h2&gt;
  
  
  Every model attempt failed
&lt;/h2&gt;

&lt;p&gt;Actually generating an image is where things broke down. Four different models were tried against the API:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;gemini-2.0-flash-exp-image-generation&lt;/code&gt; returned &lt;code&gt;quota exceeded, limit: 0&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;gemini-2.5-flash-image&lt;/code&gt; returned the same &lt;code&gt;quota exceeded, limit: 0&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;imagen-4.0-generate-001&lt;/code&gt; returned &lt;code&gt;Imagen 3 is only available on paid plans.&lt;/code&gt; — note the mismatch: the model requested was Imagen 4, but the error referenced Imagen 3&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;gemini-2.0-flash&lt;/code&gt; (the standard text model) returned &lt;code&gt;Model does not support the requested response modalities: text,image&lt;/code&gt;, since it was never an image-capable model in the first place&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;code&gt;limit: 0&lt;/code&gt; errors were the confusing part: usage was zero, yet the request was reported as exceeding a quota. Checking the rate limit screen in Google AI Studio clarified it — only text-output models were listed there. Image generation models did not appear in that list at all. In other words, the free tier simply has no quota allocated for image generation; it isn't a matter of hitting a low limit, there is no limit to hit in the first place.&lt;/p&gt;

&lt;h2&gt;
  
  
  Gemini Plus and the Gemini API are unrelated
&lt;/h2&gt;

&lt;p&gt;The root misunderstanding behind the whole attempt was treating the Gemini Plus subscription as if it applied to the API:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Gemini Plus&lt;/strong&gt; is the monthly plan used through the browser or app.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gemini API&lt;/strong&gt; is the separate, developer-facing service called from code.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Gemini Plus does support image generation, but only inside its own browser/app interface. Calling the same capability from code requires API quota specifically, and as of March 2026 the free tier of the Gemini API carries no image-generation quota at all. Paying for the Gemini Plus monthly plan has no effect on what the API allows — the two billing relationships are entirely independent.&lt;/p&gt;

&lt;h2&gt;
  
  
  What came out of it
&lt;/h2&gt;

&lt;p&gt;In the end, generating images through the free-tier API turned out to be impossible. What the project did accomplish:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A working, buildable MCP server implementation&lt;/li&gt;
&lt;li&gt;A full picture of which models are actually available&lt;/li&gt;
&lt;li&gt;A precise understanding of what the free tier does and doesn't cover&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What it did not accomplish was the original goal: actual image generation.&lt;/p&gt;

&lt;p&gt;Three alternatives were identified for continuing the project:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Enable billing in Google AI Studio (pay-as-you-go, with the option to set a budget cap)&lt;/li&gt;
&lt;li&gt;Build a dedicated Electron-based browser that automates the Gemini Plus web interface&lt;/li&gt;
&lt;li&gt;Use a locally-run model such as Stable Diffusion instead of the Gemini API&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Option 2 — a dedicated automated browser — was the one the original article's author found most interesting, and the next attempt is planned around that approach.&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaways
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;As of March 2026, the Gemini API's free tier has no quota for image generation at all&lt;/li&gt;
&lt;li&gt;Gemini Plus (the monthly subscription) and the Gemini API (the developer service) are completely separate products&lt;/li&gt;
&lt;li&gt;Using the image-generation API requires billing to be enabled; the Imagen model family specifically requires a paid plan&lt;/li&gt;
&lt;li&gt;The free tier only supports text generation, capped at 20 requests per day (RPD)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Anyone planning to try image generation through the Gemini API is better off checking the rate limit screen in Google AI Studio first. If only text-output models show up there, image generation isn't going to work on that account yet, no matter which model name is tried.&lt;/p&gt;

&lt;p&gt;Follow &lt;a class="mentioned-user" href="https://dev.to/kmrb_works"&gt;@kmrb_works&lt;/a&gt; here on DEV for more field notes from real development work. Also on &lt;a href="https://x.com/kmrb_works" rel="noopener noreferrer"&gt;X&lt;/a&gt; and &lt;a href="https://note.com/quirky_hosta1908" rel="noopener noreferrer"&gt;note&lt;/a&gt;, mostly in Japanese.&lt;/p&gt;

</description>
      <category>gemini</category>
      <category>api</category>
      <category>mcp</category>
      <category>claudecode</category>
    </item>
    <item>
      <title>Giving Claude Code Direct Access to Google Sheets via a Custom MCP Server</title>
      <dc:creator>KOMOREBi</dc:creator>
      <pubDate>Wed, 25 Nov 2026 13:01:49 +0000</pubDate>
      <link>https://dev.to/kmrb_works/giving-claude-code-direct-access-to-google-sheets-via-a-custom-mcp-server-2occ</link>
      <guid>https://dev.to/kmrb_works/giving-claude-code-direct-access-to-google-sheets-via-a-custom-mcp-server-2occ</guid>
      <description>&lt;p&gt;This post was generated by an AI agent from an article the account owner published in Japanese on note. The wording is not human-written.&lt;/p&gt;

&lt;p&gt;In one workflow, Claude Code (the VS Code extension) was being used to export data into Excel, but sharing those files with a client meant manually uploading them to Google Drive every time. That repetitive step led to a question: what if Claude could write straight to a Google Spreadsheet instead?&lt;/p&gt;

&lt;p&gt;The answer was a custom MCP server. Once it was built, Claude Code could create, read, write, format, and share Google Sheets just by being asked in natural language from within VS Code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setup used
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Claude Code (VS Code extension)&lt;/li&gt;
&lt;li&gt;Node.js v22&lt;/li&gt;
&lt;li&gt;Windows 11&lt;/li&gt;
&lt;li&gt;A Google Cloud project (free tier)&lt;/li&gt;
&lt;li&gt;TypeScript&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What MCP is doing here
&lt;/h2&gt;

&lt;p&gt;Model Context Protocol (MCP) is a way to give an AI assistant new tools. Claude Code can normally read/write files and run terminal commands, but it has no built-in way to manipulate Google Sheets. Adding an MCP server effectively installs a new skill — in this case, a "Sheets operations" plugin — that Claude can call into.&lt;/p&gt;

&lt;h2&gt;
  
  
  The server: 9 tools
&lt;/h2&gt;

&lt;p&gt;The MCP server built for this exposes nine tools, split into three groups.&lt;/p&gt;

&lt;p&gt;Spreadsheet management:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create a new spreadsheet&lt;/li&gt;
&lt;li&gt;Delete a spreadsheet&lt;/li&gt;
&lt;li&gt;List spreadsheets in Google Drive&lt;/li&gt;
&lt;li&gt;List sheet tabs&lt;/li&gt;
&lt;li&gt;Add a sheet tab&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Data operations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Read data (with pagination support)&lt;/li&gt;
&lt;li&gt;Write data (supports CSV / TSV / JSON, overwrite or append)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Formatting and sharing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cell formatting (bold, color, borders, alignment, etc.)&lt;/li&gt;
&lt;li&gt;Sharing with other users&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What using it looks like
&lt;/h2&gt;

&lt;p&gt;The interaction is just natural-language requests to Claude:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Create a spreadsheet called 'Sales Management' and put in the following data" — Claude creates the sheet, writes the data, and returns the URL.&lt;/li&gt;
&lt;li&gt;"Make row 1 of this spreadsheet bold and set the background color to light blue" — formatting handled directly.&lt;/li&gt;
&lt;li&gt;"Share this spreadsheet with &lt;a href="mailto:partner@example.com"&gt;partner@example.com&lt;/a&gt; with viewer permission" — sharing handled by the AI as well.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where it got stuck
&lt;/h2&gt;

&lt;p&gt;Authentication was the biggest obstacle. The first implementation used a service account, but it turned out that a personal Google account isn't allocated Drive storage under that method, so spreadsheets couldn't actually be created. That required rewriting the authentication layer entirely to use OAuth2 instead. The lesson from this: the choice of authentication method deserves careful research up front, before building around it.&lt;/p&gt;

&lt;p&gt;A second, smaller issue came up during builds: Dropbox would lock files when its sync happened to overlap with a build, causing build errors. The workaround was adding a short wait before the build step to avoid the collision.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results
&lt;/h2&gt;

&lt;p&gt;What worked:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Creating, reading/writing, formatting, and sharing spreadsheets from VS Code, entirely through natural language&lt;/li&gt;
&lt;li&gt;Publishing the server to npm so anyone can install it&lt;/li&gt;
&lt;li&gt;Noticeably easier data sharing with clients&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What didn't work:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Chart creation (difficult due to Sheets API limitations)&lt;/li&gt;
&lt;li&gt;Cell merging (not implemented, possibly later)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In practice, the three-step flow of "create the sheet," "put in the data," and "share it," done entirely through conversation with the AI, turned out to be a notably smooth experience. Since it works alongside the existing Excel export, internal data can stay in Excel while anything shared externally goes through Google Sheets — letting both formats be used where they fit best.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A custom MCP server now lets Claude Code operate Google Sheets directly&lt;/li&gt;
&lt;li&gt;It supports 9 tools covering read/write, creation, deletion, formatting, and sharing&lt;/li&gt;
&lt;li&gt;Authentication method should be chosen carefully upfront — the service account approach has a storage-allocation trap for personal accounts&lt;/li&gt;
&lt;li&gt;The package is already published on npm and ready to use: &lt;a href="https://www.npmjs.com/package/@beatmaster/google-sheets-mcp" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/@beatmaster/google-sheets-mcp&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Follow &lt;a class="mentioned-user" href="https://dev.to/kmrb_works"&gt;@kmrb_works&lt;/a&gt; here on DEV for more field notes from real development work. Also on &lt;a href="https://x.com/kmrb_works" rel="noopener noreferrer"&gt;X&lt;/a&gt; and &lt;a href="https://note.com/quirky_hosta1908" rel="noopener noreferrer"&gt;note&lt;/a&gt;, mostly in Japanese.&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>claudeai</category>
      <category>typescript</category>
      <category>googlesheets</category>
    </item>
    <item>
      <title>Claude Code Couldn't Read Excel Files, Until an MCP Server Fixed It</title>
      <dc:creator>KOMOREBi</dc:creator>
      <pubDate>Sat, 21 Nov 2026 13:02:01 +0000</pubDate>
      <link>https://dev.to/kmrb_works/claude-code-couldnt-read-excel-files-until-an-mcp-server-fixed-it-e5a</link>
      <guid>https://dev.to/kmrb_works/claude-code-couldnt-read-excel-files-until-an-mcp-server-fixed-it-e5a</guid>
      <description>&lt;p&gt;This post was generated by an AI agent from an article the account owner published in Japanese on note. The wording is not human-written.&lt;/p&gt;

&lt;p&gt;A client sent over an Excel specification file in one project with a simple ask: take a look and confirm the details. Claude Code's Read tool, pointed at the &lt;code&gt;.xlsx&lt;/code&gt; file, returned a flat answer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;This tool cannot read binary files.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It could not read it. The same tool handles PDFs fine. It handles images fine. Excel was the one format it rejected outright.&lt;/p&gt;

&lt;p&gt;The workaround, before the fix described below, was a Python script built around &lt;code&gt;openpyxl&lt;/code&gt; to pull cell values out manually:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;openpyxl&lt;/span&gt;
&lt;span class="n"&gt;wb&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;openpyxl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load_workbook&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'仕様書.xlsx'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;ws&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;wb&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;active&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;iter_rows&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;values_only&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That covered plain cell data, but it fell apart for a common pattern: specs written inside shapes or text boxes embedded in the sheet rather than in cells. Handling that meant unzipping the &lt;code&gt;.xlsx&lt;/code&gt; file as an archive, parsing the XML inside it, and extracting images separately. Doing that for every incoming spec file was not sustainable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Claude Code can't read Excel by default
&lt;/h2&gt;

&lt;p&gt;Claude Code's Read tool supports text files, images, and PDFs. An &lt;code&gt;.xlsx&lt;/code&gt; file is a binary format (technically a zip archive of XML), so it falls outside what Read can parse directly. There is no built-in path from Claude Code to Excel content.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix: Excel MCP Server
&lt;/h2&gt;

&lt;p&gt;MCP (Model Context Protocol) servers extend Claude Code with external tool capabilities, similar to a plugin. In this case, the server adopted was &lt;code&gt;negokaz/excel-mcp-server&lt;/code&gt;, built by a Japanese developer, which is noted as a safe choice specifically for handling Excel files in Japanese.&lt;/p&gt;

&lt;p&gt;Setup is two steps.&lt;/p&gt;

&lt;p&gt;First, open Claude Code's configuration file (&lt;code&gt;.claude.json&lt;/code&gt; in the home directory) and add an entry under &lt;code&gt;mcpServers&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"excel"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"cmd"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"/c"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"--yes"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"@negokaz/excel-mcp-server"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"EXCEL_MCP_PAGING_CELLS_LIMIT"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"4000"&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"stdio"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On Mac or Linux, &lt;code&gt;command&lt;/code&gt; should be &lt;code&gt;npx&lt;/code&gt; instead of &lt;code&gt;cmd&lt;/code&gt;, and &lt;code&gt;args&lt;/code&gt; should be &lt;code&gt;["--yes", "@negokaz/excel-mcp-server"]&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Second, save the config and restart Claude Code. That's the entire setup.&lt;/p&gt;

&lt;h2&gt;
  
  
  The one catch: Node.js version
&lt;/h2&gt;

&lt;p&gt;After the first restart, the server did not start. The error pointed to an outdated Node.js installation. The MCP server requires Node.js 20.x or higher; anyone still on the 18.x line needs to upgrade Node first, or the setup looks broken when the real issue is just the Node version.&lt;/p&gt;

&lt;h2&gt;
  
  
  Verifying it worked
&lt;/h2&gt;

&lt;p&gt;Once Node.js was updated and Claude Code restarted again, the same client Excel file that had previously failed was handed back to Claude Code with a plain "read this Excel file" request. This time it worked: cell data came through, along with sheet information and cell styling. The server also read images and comments embedded in the spreadsheet and incorporated their content into the response.&lt;/p&gt;

&lt;p&gt;Work that previously required a custom Python extraction pipeline was reduced to a single natural-language request.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it could actually do
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Read Excel cell data directly&lt;/li&gt;
&lt;li&gt;Recognize and interpret embedded images&lt;/li&gt;
&lt;li&gt;Read comments attached to cells&lt;/li&gt;
&lt;li&gt;Parse overall sheet structure&lt;/li&gt;
&lt;li&gt;Handle Japanese-language content without issue&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Compared to the earlier Python-based conversion approach, the reported time spent on this task dropped by roughly a factor of ten.&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaways
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Claude Code cannot read Excel files out of the box&lt;/li&gt;
&lt;li&gt;Installing &lt;code&gt;negokaz/excel-mcp-server&lt;/code&gt; adds direct Excel reading support&lt;/li&gt;
&lt;li&gt;Setup is a few lines added to &lt;code&gt;.claude.json&lt;/code&gt; plus a restart&lt;/li&gt;
&lt;li&gt;Node.js 20.x or higher is required; this is the most likely source of setup failures&lt;/li&gt;
&lt;li&gt;The server also reads and interprets embedded images and comments, not just cell values&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Follow &lt;a class="mentioned-user" href="https://dev.to/kmrb_works"&gt;@kmrb_works&lt;/a&gt; here on DEV for more field notes from real development work. Also on &lt;a href="https://x.com/kmrb_works" rel="noopener noreferrer"&gt;X&lt;/a&gt; and &lt;a href="https://note.com/quirky_hosta1908" rel="noopener noreferrer"&gt;note&lt;/a&gt;, mostly in Japanese.&lt;/p&gt;

</description>
      <category>claude</category>
      <category>mcp</category>
      <category>excel</category>
      <category>node</category>
    </item>
    <item>
      <title>Adding an AI Reply-All Button to Thunderbird with Claude Code CLI</title>
      <dc:creator>KOMOREBi</dc:creator>
      <pubDate>Wed, 18 Nov 2026 13:02:47 +0000</pubDate>
      <link>https://dev.to/kmrb_works/adding-an-ai-reply-all-button-to-thunderbird-with-claude-code-cli-40p</link>
      <guid>https://dev.to/kmrb_works/adding-an-ai-reply-all-button-to-thunderbird-with-claude-code-cli-40p</guid>
      <description>&lt;p&gt;This post was generated by an AI agent from an article the account owner published in Japanese on note. The wording is not human-written.&lt;/p&gt;

&lt;p&gt;In one project, clearing a morning backlog of business emails in Thunderbird meant reading each message, drafting a polite reply, and hitting send, one at a time. To cut that down, a custom "AI Reply All" button was built directly into Thunderbird, wired up to Claude Code CLI so it runs entirely within an existing subscription, with no metered API usage at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  Environment
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Thunderbird 128.0 or later&lt;/li&gt;
&lt;li&gt;Windows 11&lt;/li&gt;
&lt;li&gt;Node.js v18 or later&lt;/li&gt;
&lt;li&gt;Claude Code CLI already installed&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The Claude API (pay-as-you-go) is not used anywhere in this setup. Everything goes through Claude Code CLI, so a subscription plan alone covers it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Overall design
&lt;/h2&gt;

&lt;p&gt;The flow looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Thunderbird extension → Claude Bridge Server → Claude Code CLI → AI response
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The key piece is the Bridge Server sitting in the middle. A Thunderbird extension cannot call a CLI tool directly, so a local HTTP server is placed in between to act as the go-between. This Bridge Server was built generically on purpose, so other tools besides Thunderbird can call it too once it's installed on a machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building the Claude Bridge Server
&lt;/h2&gt;

&lt;p&gt;The server is a small Node.js HTTP server listening on &lt;code&gt;localhost:3456&lt;/code&gt;. It takes whatever prompt it receives and forwards it to the Claude CLI.&lt;/p&gt;

&lt;p&gt;The core trick is &lt;code&gt;claude -p&lt;/code&gt;, which invokes the CLI in non-interactive mode: the prompt is piped into standard input, and the result comes back on standard output.&lt;/p&gt;

&lt;p&gt;It only exposes two endpoints:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;GET /api/status&lt;/code&gt; — checks whether the server is running&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;POST /api/chat&lt;/code&gt; — sends a prompt and gets the response back&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Installation is just running &lt;code&gt;install.bat&lt;/code&gt; with administrator rights, and it can also be configured to auto-start when Windows boots.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building the Thunderbird extension
&lt;/h2&gt;

&lt;p&gt;The extension is a standard WebExtension in MailExtension form. Its &lt;code&gt;manifest.json&lt;/code&gt; defines two buttons:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;message_display_action&lt;/code&gt; — appears in the header when a message is open&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;browser_action&lt;/code&gt; — appears in the toolbar over the message list&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Either one triggers the same AI reply flow.&lt;/p&gt;

&lt;p&gt;When the button is clicked, the extension:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Checks that the Bridge Server is running&lt;/li&gt;
&lt;li&gt;Reads the currently displayed (or selected) message&lt;/li&gt;
&lt;li&gt;Builds a prompt from the subject, sender, and body&lt;/li&gt;
&lt;li&gt;Sends that prompt to Claude through the Bridge Server&lt;/li&gt;
&lt;li&gt;Opens a "Reply All" compose window&lt;/li&gt;
&lt;li&gt;Inserts the generated text at the top of the body&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step 6 is the part that needed care:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Open the reply window (signature and quote get set automatically)&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;composeTab&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;messenger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;compose&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;beginReply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'replyToAll'&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Get the default content, then insert the AI reply above it&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;details&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;messenger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;compose&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getComposeDetails&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;composeTab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;messenger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;compose&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setComposeDetails&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;composeTab&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;aiReply&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;\&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'&amp;lt;br&amp;gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s1"&gt;'&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;'&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;details&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This inserts only the AI-generated reply at the top, leaving the signature and quoted text untouched. The system prompt used for generation can also be customized from a settings screen.&lt;/p&gt;

&lt;h2&gt;
  
  
  Packaging as an xpi
&lt;/h2&gt;

&lt;p&gt;Packaging the Thunderbird extension is just zipping up the required files and renaming the archive with an &lt;code&gt;.xpi&lt;/code&gt; extension. It loads through Thunderbird's "Install Add-on From File" option, with no need to register it on the official add-on store.&lt;/p&gt;

&lt;h3&gt;
  
  
  Pitfall: the SVG icon never showed up
&lt;/h3&gt;

&lt;p&gt;An attempt was made to show a custom icon in the toolbar. Both SVG and PNG versions were tried, and neither displayed — Thunderbird's toolbar icons turned out to have a number of constraints. The icon was dropped in the end, leaving a text-only label. Working mattered more than looking good.&lt;/p&gt;

&lt;h3&gt;
  
  
  Pitfall: the signature and quote disappeared
&lt;/h3&gt;

&lt;p&gt;The first attempt passed the AI-generated body directly into &lt;code&gt;beginReply&lt;/code&gt;. That wiped out the default signature and quoted text entirely. The fix was the two-step approach described above: open the reply window empty first, fetch its contents, then prepend the AI text. With that order, both the signature and the quote stay intact.&lt;/p&gt;

&lt;h2&gt;
  
  
  Result
&lt;/h2&gt;

&lt;p&gt;A single click now produces a reply-all draft. Generation takes a few seconds, during which the button switches to a "Generating AI reply..." state, so the wait is visible rather than silent. Once it's done, the normal compose window opens for review, edits, and sending.&lt;/p&gt;

&lt;p&gt;The overall feel shifted from "read → think → write" to "read → check → send." Making the Bridge Server generic also paid off, since the same mechanism can be reused by other tools beyond Thunderbird going forward.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Implemented an "AI Reply All" button inside a Thunderbird extension&lt;/li&gt;
&lt;li&gt;Claude Code CLI is called through a local Bridge Server&lt;/li&gt;
&lt;li&gt;Runs entirely within a subscription, with no metered API billing&lt;/li&gt;
&lt;li&gt;Signature and quoted text are preserved when inserting the AI reply&lt;/li&gt;
&lt;li&gt;The Bridge Server can be reused by other tools&lt;/li&gt;
&lt;li&gt;The system prompt is customizable to adjust reply style&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Follow &lt;a class="mentioned-user" href="https://dev.to/kmrb_works"&gt;@kmrb_works&lt;/a&gt; here on DEV for more field notes from real development work. Also on &lt;a href="https://x.com/kmrb_works" rel="noopener noreferrer"&gt;X&lt;/a&gt; and &lt;a href="https://note.com/quirky_hosta1908" rel="noopener noreferrer"&gt;note&lt;/a&gt;, mostly in Japanese.&lt;/p&gt;

</description>
      <category>thunderbird</category>
      <category>claude</category>
      <category>cli</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Connecting Claude Code to Figma on a Free Plan: A Setup Log</title>
      <dc:creator>KOMOREBi</dc:creator>
      <pubDate>Tue, 17 Nov 2026 13:02:06 +0000</pubDate>
      <link>https://dev.to/kmrb_works/connecting-claude-code-to-figma-on-a-free-plan-a-setup-log-53b2</link>
      <guid>https://dev.to/kmrb_works/connecting-claude-code-to-figma-on-a-free-plan-a-setup-log-53b2</guid>
      <description>&lt;p&gt;This post was generated by an AI agent from an article the account owner published in Japanese on note. The wording is not human-written.&lt;/p&gt;

&lt;p&gt;Setting up Claude Code to control Figma over MCP sounded straightforward: Anthropic's AI coding tool can talk to external tools via MCP, and Figma has an MCP server. In one attempt to connect the two using only Figma's free plan (no Dev Mode), nearly every step hit a snag before it worked.&lt;/p&gt;

&lt;h2&gt;
  
  
  Environment
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;OS: Windows 11&lt;/li&gt;
&lt;li&gt;Figma: Free plan (desktop app)&lt;/li&gt;
&lt;li&gt;Claude Code: Pro plan&lt;/li&gt;
&lt;li&gt;Node.js: v18.16.1&lt;/li&gt;
&lt;li&gt;Bun: v1.3.9 (installed partway through)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The core question going in was whether Figma integration was even possible without the paid Dev Mode feature.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Read-only MCP, eventually
&lt;/h2&gt;

&lt;p&gt;The official remote MCP was the first thing tried:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;claude mcp add --transport http figma https://mcp.figma.com/mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The result:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;figma: https://mcp.figma.com/mcp (HTTP) - ✗ Failed to connect
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The official remote MCP requires OAuth authentication, which didn't work smoothly here.&lt;/p&gt;

&lt;p&gt;Next, a community-made MCP, &lt;code&gt;@rui.branco/figma-mcp&lt;/code&gt;, was tried instead. This one uses a Figma personal access token, generated from Figma's Settings &amp;gt; Account &amp;gt; Personal access tokens.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add figma-mcp -e &lt;span class="nv"&gt;FIGMA_PERSONAL_ACCESS_TOKEN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;your_token -- npx -y @rui.branco/figma-mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That also failed to connect at first. The error pointed to a missing config file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Error: ENOENT: no such file or directory, open 'C:\Users\user\.config\figma-mcp\config.json'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A config file had to be created manually:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mkdir -p ~/.config/figma-mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"figmaToken"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"your_token"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Saved to &lt;code&gt;~/.config/figma-mcp/config.json&lt;/code&gt;, after which the connection succeeded:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;figma-mcp: npx -y @rui.branco/figma-mcp - ✓ Connected
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This MCP is read-only, though — it can fetch Figma design data but can't create or edit designs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: MCP for actually creating designs
&lt;/h2&gt;

&lt;p&gt;The real target was &lt;code&gt;claude-talk-to-figma-mcp&lt;/code&gt;, which lets the AI draw on the Figma canvas. The architecture:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Claude Code ←(MCP)→ MCP server ←(WebSocket)→ Figma plugin ←→ Figma
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A WebSocket connection relays messages between Claude Code and a Figma plugin.&lt;/p&gt;

&lt;p&gt;First, add the MCP server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add claude-talk-to-figma -- npx -p claude-talk-to-figma-mcp@latest claude-talk-to-figma-mcp-server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then clone and build the repository, which is needed to run the WebSocket server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/arinspunk/claude-talk-to-figma-mcp.git
&lt;span class="nb"&gt;cd&lt;/span&gt; claude-talk-to-figma-mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Installing dependencies required Bun, which wasn't installed yet:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install -g bun
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;bun install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Running &lt;code&gt;bun run socket&lt;/code&gt; then failed with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;error: Module not found "dist/socket.js"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The project hadn't been built yet. Building it fixed that:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;bun run build:win   &lt;span class="c"&gt;# for Windows&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After the build succeeded, &lt;code&gt;bun run socket&lt;/code&gt; worked:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[INFO] Claude to Figma WebSocket server running on port 3055
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 3: The Figma plugin trap
&lt;/h2&gt;

&lt;p&gt;Next, the plugin needed to be loaded into the Figma desktop app via Menu → Plugins → Development → Import plugin from manifest, pointing at:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="n"&gt;claude&lt;/span&gt;&lt;span class="err"&gt;-&lt;/span&gt;&lt;span class="n"&gt;talk&lt;/span&gt;&lt;span class="err"&gt;-&lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="err"&gt;-&lt;/span&gt;&lt;span class="n"&gt;figma&lt;/span&gt;&lt;span class="err"&gt;-&lt;/span&gt;&lt;span class="n"&gt;mcp&lt;/span&gt;&lt;span class="err"&gt;/&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="err"&gt;/&lt;/span&gt;&lt;span class="n"&gt;claude_mcp_plugin&lt;/span&gt;&lt;span class="err"&gt;/&lt;/span&gt;&lt;span class="n"&gt;manifest&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After selecting the manifest, "Claude Talk to Figma MCP" didn't show up in the plugin menu at all.&lt;/p&gt;

&lt;p&gt;The fix, found only through trial and error: close the plugin menu after importing the manifest, then reopen it. Only then does "Claude Talk to Figma MCP" appear in the list. Why this happens isn't clear — it appears to just be how Figma's plugin menu behaves — but roughly 30 minutes went into this before finding the workaround.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Connection
&lt;/h2&gt;

&lt;p&gt;Launching the plugin brings up a connection screen. Clicking "Connect" produced:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Connected on port 3055!
Copy the channel ID: g54uwzq5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That channel ID is then passed to Claude Code so it can control Figma:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Connect to Figma. Channel ID: g54uwzq5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note: the channel ID changes every time the plugin is restarted.&lt;/p&gt;

&lt;h2&gt;
  
  
  Result
&lt;/h2&gt;

&lt;p&gt;The end state is a working setup where Claude Code controls Figma, entirely on Figma's free plan. The whole process took about an hour, with several points of friction along the way. Once set up, however, reconnecting on future sessions just means starting the WebSocket server and reconnecting the plugin — no need to repeat the earlier troubleshooting.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setup checklist
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;One-time setup:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Generate a personal access token in Figma&lt;/li&gt;
&lt;li&gt;Set the token in &lt;code&gt;~/.config/figma-mcp/config.json&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Add two MCP servers with &lt;code&gt;claude mcp add&lt;/code&gt; (one read-only, one for design creation)&lt;/li&gt;
&lt;li&gt;Clone the &lt;code&gt;claude-talk-to-figma-mcp&lt;/code&gt; repository&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;bun install&lt;/code&gt; and &lt;code&gt;bun run build:win&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Import the plugin into the Figma desktop app&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Every session:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Start the WebSocket server with &lt;code&gt;bun run socket&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Launch the plugin in Figma and click "Connect"&lt;/li&gt;
&lt;li&gt;Pass the channel ID to Claude Code&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Three main snags:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;config.json&lt;/code&gt; isn't created automatically — it has to be made by hand&lt;/li&gt;
&lt;li&gt;The project must be built with &lt;code&gt;bun run build:win&lt;/code&gt; before &lt;code&gt;bun run socket&lt;/code&gt; will work&lt;/li&gt;
&lt;li&gt;The plugin doesn't appear in the menu until the plugin menu is closed and reopened once&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Follow &lt;a class="mentioned-user" href="https://dev.to/kmrb_works"&gt;@kmrb_works&lt;/a&gt; here on DEV for more field notes from real development work. Also on &lt;a href="https://x.com/kmrb_works" rel="noopener noreferrer"&gt;X&lt;/a&gt; and &lt;a href="https://note.com/quirky_hosta1908" rel="noopener noreferrer"&gt;note&lt;/a&gt;, mostly in Japanese.&lt;/p&gt;

</description>
      <category>figma</category>
      <category>mcp</category>
      <category>ai</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Why a LINE WORKS to Chatwork Bridge Falls Apart at External Clients</title>
      <dc:creator>KOMOREBi</dc:creator>
      <pubDate>Tue, 10 Nov 2026 13:02:17 +0000</pubDate>
      <link>https://dev.to/kmrb_works/why-a-line-works-to-chatwork-bridge-falls-apart-at-external-clients-1hao</link>
      <guid>https://dev.to/kmrb_works/why-a-line-works-to-chatwork-bridge-falls-apart-at-external-clients-1hao</guid>
      <description>&lt;p&gt;This post was generated by an AI agent from an article the account owner published in Japanese on note. The wording is not human-written.&lt;/p&gt;

&lt;p&gt;A PHP-based bridge between LINE WORKS and Chatwork was built to solve a workflow annoyance: some clients prefer contacting through LINE WORKS, while all project management happens in Chatwork. Bouncing between two tools, forgetting which client uses which platform, scattered file storage, and having to search two separate histories were the pain points that motivated the project. The idea was simple: auto-forward LINE WORKS messages into Chatwork so only Chatwork needed to be checked.&lt;/p&gt;

&lt;h2&gt;
  
  
  The system
&lt;/h2&gt;

&lt;p&gt;The bridge was built on a rental server (heteml) using plain PHP with no external libraries, relying only on OpenSSL and curl.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;chatwork2lineworks/
├── config.php          # configuration
├── callback.php        # LINE WORKS → Chatwork (Webhook)
├── cron_chatwork.php   # Chatwork → LINE WORKS (CRON)
├── lineworks_api.php   # LINE WORKS API
├── chatwork_api.php    # Chatwork API
├── logger.php          # logging
└── .htaccess           # security settings
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;LINE WORKS → Chatwork ran in real time: the LINE WORKS bot receives a message, a webhook notifies the server, and the message is forwarded to Chatwork. Chatwork → LINE WORKS ran on polling: a CRON job periodically fetches new Chatwork messages and sends them out via the LINE WORKS bot. Both text and file/image transfers were supported.&lt;/p&gt;

&lt;h2&gt;
  
  
  It worked — internally
&lt;/h2&gt;

&lt;p&gt;Testing between an internal LINE WORKS account and Chatwork succeeded in both directions: sending a message to the LINE WORKS bot showed up in Chatwork, and writing in Chatwork arrived via the LINE WORKS bot. Technically, it worked.&lt;/p&gt;

&lt;h2&gt;
  
  
  Then came the external client test
&lt;/h2&gt;

&lt;p&gt;When testing the actual use case — forwarding conversations with external clients — several platform restrictions showed up one after another.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;External users can't reach a bot at all.&lt;/strong&gt; LINE WORKS bots are only accessible to members of the same organization. A LINE WORKS user from another company (an external contact) cannot message a bot created by a different organization, and in fact cannot even see it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bots can't be added to groups containing external users.&lt;/strong&gt; Putting the bot into a group chat looked like a workaround, but the option to add a bot simply doesn't appear in any group that includes external users. The same restriction applies when creating a new group: selecting an external user disables the bot tab.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;There's no API to monitor a user's own chats.&lt;/strong&gt; Without going through a bot, reading personal chat history directly via the API also isn't possible — the LINE WORKS API has no feature for reading messages between users. The Bot API only exposes messages sent directly to the bot.&lt;/p&gt;

&lt;p&gt;The breakdown:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scenario&lt;/th&gt;
&lt;th&gt;Possible?&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Forwarding bot ↔ internal member messages&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Within Bot API scope&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Forwarding internal-only group messages&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Bots can be added to internal groups&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Forwarding exchanges with external clients&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Bot is inaccessible to them&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Auto-forwarding one's own chat history&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No such API exists&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The original goal — automatically forwarding LINE WORKS conversations with external clients into Chatwork — turned out to be impossible with the LINE WORKS Bot API.&lt;/p&gt;

&lt;h2&gt;
  
  
  Technical snags along the way
&lt;/h2&gt;

&lt;p&gt;A few implementation details are worth recording for anyone attempting something similar.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;JWT authentication (RS256).&lt;/strong&gt; LINE WORKS API authentication requires a JWT signed with RS256. It can be implemented with &lt;code&gt;openssl_sign()&lt;/code&gt; without libraries like &lt;code&gt;firebase/php-jwt&lt;/code&gt;. Forgetting Base64URL encoding (converting &lt;code&gt;+/&lt;/code&gt; to &lt;code&gt;-_&lt;/code&gt; and stripping trailing &lt;code&gt;=&lt;/code&gt;) causes authentication errors. If a private key file path is correct but still unreadable, check line endings and BOM.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Chatwork API's differential fetching.&lt;/strong&gt; &lt;code&gt;GET /rooms/{roomId}/messages&lt;/code&gt; never returns a message that has already been retrieved once. Calling the API effectively marks messages as read, so a processing failure means that message can't be fetched again. The &lt;code&gt;force=1&lt;/code&gt; parameter forces a fetch but only returns the latest 100 messages.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Scope mismatches.&lt;/strong&gt; The &lt;code&gt;scope&lt;/code&gt; parameter requested when obtaining a LINE WORKS access token must match what's enabled in the Developer Console. The &lt;code&gt;bot&lt;/code&gt; scope alone returns a 403 on the user info API (&lt;code&gt;/users/{userId}&lt;/code&gt;); displaying usernames requires the &lt;code&gt;directory.read&lt;/code&gt; scope. Token caches need to be cleared after changing scopes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A PHP comment landmine.&lt;/strong&gt; Writing a CRON example like &lt;code&gt;*/3 * * * *&lt;/code&gt; inside a PHP doc comment causes a parse error, because &lt;code&gt;*/&lt;/code&gt; is interpreted as the comment's closing delimiter — easy to miss on first encounter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Alternatives
&lt;/h2&gt;

&lt;p&gt;For the same goal, two alternatives exist. Using a LINE Official Account (ordinary LINE, not LINE WORKS) instead allows a similar system to be built, since anyone can add a LINE Official Account as a friend with no external-user restriction, the Messaging API supports webhooks just like LINE WORKS, and a free plan exists (up to 200 outgoing messages per month, unlimited incoming). If a client specifically wants to use LINE, this is the correct tool. The simpler alternative is standardizing everyone onto Chatwork.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the LINE WORKS Bot API is still good for
&lt;/h2&gt;

&lt;p&gt;Even though it didn't fit this use case, the LINE WORKS Bot API is capable for internal use: internal chatbots for inquiries and FAQs, operational notifications like server monitoring alerts or daily report reminders, attendance tracking (sending "clock in" to a bot to record it in an attendance system), approval flows (requesting approval via bot, completing it with "OK"), internal system integration such as inventory or customer lookups, and scheduled group notifications. The key constraint is that it's limited to internal use — anyone considering integration with external users should look at the LINE Messaging API instead.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Use case&lt;/th&gt;
&lt;th&gt;LINE WORKS Bot API&lt;/th&gt;
&lt;th&gt;LINE Messaging API&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Internal process automation&lt;/td&gt;
&lt;td&gt;Best fit&lt;/td&gt;
&lt;td&gt;Not suited&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Internal chat + other service integration&lt;/td&gt;
&lt;td&gt;Best fit&lt;/td&gt;
&lt;td&gt;Not suited&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;External client integration&lt;/td&gt;
&lt;td&gt;Not possible&lt;/td&gt;
&lt;td&gt;Best fit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unified customer-facing support&lt;/td&gt;
&lt;td&gt;Not possible&lt;/td&gt;
&lt;td&gt;Best fit&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Takeaways
&lt;/h2&gt;

&lt;p&gt;The LINE WORKS Bot API is scoped strictly to internal use and cannot forward messages exchanged with external clients. For the same forwarding goal, the LINE Messaging API should be the first thing evaluated. The implementation itself wasn't the hard part — PHP, curl, and OpenSSL were enough to build a working bridge. The question to settle before writing any code is simply: is the other side of the conversation internal or external? Answering that first avoids discovering the limitation only after the system is built.&lt;/p&gt;

&lt;p&gt;Follow &lt;a class="mentioned-user" href="https://dev.to/kmrb_works"&gt;@kmrb_works&lt;/a&gt; here on DEV for more field notes from real development work. Also on &lt;a href="https://x.com/kmrb_works" rel="noopener noreferrer"&gt;X&lt;/a&gt; and &lt;a href="https://note.com/quirky_hosta1908" rel="noopener noreferrer"&gt;note&lt;/a&gt;, mostly in Japanese.&lt;/p&gt;

</description>
      <category>api</category>
      <category>php</category>
      <category>webhook</category>
      <category>chatbot</category>
    </item>
    <item>
      <title>php -l passed. Every page still died.</title>
      <dc:creator>KOMOREBi</dc:creator>
      <pubDate>Mon, 09 Nov 2026 08:22:33 +0000</pubDate>
      <link>https://dev.to/kmrb_works/php-l-passed-every-page-still-died-5g90</link>
      <guid>https://dev.to/kmrb_works/php-l-passed-every-page-still-died-5g90</guid>
      <description>&lt;p&gt;This post was generated by an AI agent from the maintenance records of the person running this account. The incidents and numbers are real; the wording is not human-written.&lt;/p&gt;

&lt;p&gt;I look after old PHP sites in Japan. This autumn I worked on getting three of them onto PHP 8.x, for three different reasons: a critical security release, a server whose PHP changed underneath it (we still don't know who changed it), and a planned jump from 5.5.&lt;/p&gt;

&lt;p&gt;Two of them went live on 8.x. The first never did: its launch was called off, so what I say about it comes from the new server before release.&lt;/p&gt;

&lt;p&gt;The obvious checks passed more often than they should have. Here is what actually broke, with the numbers.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;code&gt;php -l&lt;/code&gt; is not a migration test
&lt;/h2&gt;

&lt;p&gt;One site was going from 7.4 to 8.4. Its code still had PHP 4 habits in it. On the new server, every page that ran PHP stopped with this (class name changed):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Non-static method Database::connect() cannot be called statically
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Lint never mentions it. Here is a minimal version, which I re-ran on PHP 8.4.26 while writing this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;?php&lt;/span&gt;
&lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Db&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"ok"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;echo&lt;/span&gt; &lt;span class="nc"&gt;Db&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;php -l&lt;/code&gt; says &lt;code&gt;No syntax errors detected&lt;/code&gt;. Running it is a fatal error.&lt;/p&gt;

&lt;p&gt;We added &lt;code&gt;static&lt;/code&gt; to 221 methods. Check two things before you do that: the method must not touch &lt;code&gt;$this&lt;/code&gt; (none of ours did), and if a parent method is static, every override has to be static too, or you get a different fatal.&lt;/p&gt;

&lt;p&gt;Old-style constructors are worse, because nothing errors at all:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;?php&lt;/span&gt;
&lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Base&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="nv"&gt;$table&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;Base&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nv"&gt;$this&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;table&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"set"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Item&lt;/span&gt; &lt;span class="kd"&gt;extends&lt;/span&gt; &lt;span class="nc"&gt;Base&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;Item&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;parent&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;Base&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nv"&gt;$i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Item&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="nb"&gt;var_dump&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$i&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;table&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// NULL on PHP 8&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A method named after its class stopped being a constructor in PHP 8. It is now an ordinary method that nobody calls, so you get an object that was never set up and no message about it. We renamed 45 of these to &lt;code&gt;__construct&lt;/code&gt;, along with the &lt;code&gt;parent::Base(&lt;/code&gt; calls.&lt;/p&gt;

&lt;p&gt;After those fixes, lint over all 648 files failed on exactly one, a file nothing loads, because of &lt;code&gt;$str{0}&lt;/code&gt;. That is a fair picture of what lint is for.&lt;/p&gt;

&lt;h2&gt;
  
  
  44 pages out of 266
&lt;/h2&gt;

&lt;p&gt;On the second site, PHP went from 7.4 to 8.x with no record of anyone on our side changing it. The client reported that some detail pages were missing images and content.&lt;/p&gt;

&lt;p&gt;An empty XML element was being turned into an empty array, and the code passed it to &lt;code&gt;nl2br()&lt;/code&gt;. On 7.4 that is a warning and the page carries on. On 8.x it is a &lt;code&gt;TypeError&lt;/code&gt; and output stops right there.&lt;/p&gt;

&lt;p&gt;It only happened for records with one particular combination of fields: 44 of 266. A spot check of a few URLs could easily have missed it, since that's about 1 page in 6.&lt;/p&gt;

&lt;p&gt;We had the API responses saved for all 266 records, so we replayed them through PHP 8.1 and 8.4 in Docker with the network off. Before the fix there were 44 &lt;code&gt;TypeError&lt;/code&gt;s, same as production. After it there were 0, and the other 222 pages came out identical apart from a &lt;code&gt;?v=&lt;/code&gt; timestamp.&lt;/p&gt;

&lt;p&gt;The fix was to normalise empty arrays to empty strings right after loading, leaving out the six fields that are nested on purpose.&lt;/p&gt;

&lt;h2&gt;
  
  
  Diff the output instead of clicking around
&lt;/h2&gt;

&lt;p&gt;The third site went from PHP 5.5 to 8.4. Before switching production, we ran both versions against the same data and compared 135 pages:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;121 identical&lt;/li&gt;
&lt;li&gt;4 differing only in a date line&lt;/li&gt;
&lt;li&gt;10 different, each with a reason we could write down&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Reading 10 diffs beats clicking through 135 pages and hoping you notice something.&lt;/p&gt;

&lt;p&gt;We also rehearsed the rollback on a test domain. Going back to 5.5 took 3 seconds and going forward to 8.4 took 2. It is a much calmer production switch when you already know those numbers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Smaller things
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;mysqli throws now.&lt;/strong&gt; Since PHP 8.1 the default is exceptions. Old code that checks for &lt;code&gt;false&lt;/code&gt; needs &lt;code&gt;mysqli_report(MYSQLI_REPORT_OFF)&lt;/code&gt; until you rewrite it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep errors off the page for real.&lt;/strong&gt; Old code loves &lt;code&gt;ini_set('display_errors', 1)&lt;/code&gt;. In an FPM pool, &lt;code&gt;php_admin_flag[display_errors] = off&lt;/code&gt; cannot be overridden from code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Expect noise.&lt;/strong&gt; One pass over the first site's pages wrote thousands of Deprecated and Warning lines, 3,978 of them from passing &lt;code&gt;null&lt;/code&gt; to &lt;code&gt;preg_match()&lt;/code&gt;. Look at fatals first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the timezone.&lt;/strong&gt; We found this one reviewing the config, not from a failure: if the new config doesn't set &lt;code&gt;date.timezone&lt;/code&gt;, dates run in UTC.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The checklist
&lt;/h2&gt;

&lt;p&gt;This is what I'd run through next time, with commands to find each of these. Run them from the project root.&lt;/p&gt;

&lt;h3&gt;
  
  
  Before you touch anything
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Write down the current PHP version and how it is installed (distro package, panel, source).&lt;/li&gt;
&lt;li&gt;Find out who or what can change the PHP version. One of our sites changed without us.&lt;/li&gt;
&lt;li&gt;Save real input data you can replay (API responses, a database copy).&lt;/li&gt;
&lt;li&gt;Pick the URLs to compare, including rarely used record types.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  What &lt;code&gt;php -l&lt;/code&gt; does catch
&lt;/h3&gt;

&lt;p&gt;Syntax such as &lt;code&gt;$str{0}&lt;/code&gt; fails here. Lint every file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;find &lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="nt"&gt;-name&lt;/span&gt; &lt;span class="s1"&gt;'*.php'&lt;/span&gt; &lt;span class="nt"&gt;-print0&lt;/span&gt; | xargs &lt;span class="nt"&gt;-0&lt;/span&gt; &lt;span class="nt"&gt;-n1&lt;/span&gt; php &lt;span class="nt"&gt;-l&lt;/span&gt; | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-v&lt;/span&gt; &lt;span class="s1"&gt;'No syntax errors'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  What &lt;code&gt;php -l&lt;/code&gt; does not catch
&lt;/h3&gt;

&lt;p&gt;Functions removed in PHP 8:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-rnE&lt;/span&gt; &lt;span class="s1"&gt;'\b(each|create_function|get_magic_quotes_(gpc|runtime))\s*\('&lt;/span&gt; &lt;span class="nt"&gt;--include&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'*.php'&lt;/span&gt; &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Old-style constructors, which silently stop running:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;find &lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="nt"&gt;-name&lt;/span&gt; &lt;span class="s1"&gt;'*.php'&lt;/span&gt; &lt;span class="nt"&gt;-exec&lt;/span&gt; &lt;span class="nb"&gt;awk&lt;/span&gt; &lt;span class="s1"&gt;'
  FNR == 1 { c = "" }
  match($0, /class +[A-Za-z0-9_]+/) { c = substr($0, RSTART + 6, RLENGTH - 6); gsub(/ /, "", c) }
  c &amp;amp;&amp;amp; match($0, /function +&amp;amp;?[A-Za-z0-9_]+ *\(/) {
    f = substr($0, RSTART, RLENGTH); gsub(/function +&amp;amp;?| *\(/, "", f)
    if (tolower(f) == tolower(c)) print FILENAME ":" FNR ": " $0
  }'&lt;/span&gt; &lt;span class="o"&gt;{}&lt;/span&gt; +
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Parent constructors called by class name:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-rnE&lt;/span&gt; &lt;span class="s1"&gt;'parent::[A-Z][A-Za-z0-9_]*\s*\('&lt;/span&gt; &lt;span class="nt"&gt;--include&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'*.php'&lt;/span&gt; &lt;span class="nb"&gt;.&lt;/span&gt; | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-v&lt;/span&gt; __construct
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Static calls to methods that are not declared static. This lists the calls, and you check each target. Include templates:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-rnE&lt;/span&gt; &lt;span class="s1"&gt;'\b[A-Z][A-Za-z0-9_]*::[A-Za-z_][A-Za-z0-9_]*\s*\('&lt;/span&gt; &lt;span class="nt"&gt;--include&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'*.php'&lt;/span&gt; &lt;span class="nt"&gt;--include&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'*.tpl'&lt;/span&gt; &lt;span class="nt"&gt;--include&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'*.html'&lt;/span&gt; &lt;span class="nb"&gt;.&lt;/span&gt; | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-vE&lt;/span&gt; &lt;span class="s1"&gt;'parent::|self::|static::'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Smarty &lt;code&gt;{php}&lt;/code&gt; tags, which newer Smarty does not allow:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-rn&lt;/span&gt; &lt;span class="s1"&gt;'{php}'&lt;/span&gt; &lt;span class="nt"&gt;--include&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'*.tpl'&lt;/span&gt; &lt;span class="nt"&gt;--include&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'*.html'&lt;/span&gt; &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Also check the installed version of old mail libraries such as PHPMailer.&lt;/p&gt;

&lt;h3&gt;
  
  
  Test with real data
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Replay every saved record through the new version, not just a few URLs.&lt;/li&gt;
&lt;li&gt;Run the old and new versions on the same data and diff the HTML. Ignore cache-busting values such as &lt;code&gt;?v=&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Give every remaining difference a written reason.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Switch
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Rehearse the rollback on a test domain and time it.&lt;/li&gt;
&lt;li&gt;After the switch, look at fatals first, then work through Warnings and Deprecated.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-E&lt;/span&gt; &lt;span class="s1"&gt;'PHP (Fatal|Parse) error|Uncaught'&lt;/span&gt; error.log | &lt;span class="nb"&gt;sort&lt;/span&gt; | &lt;span class="nb"&gt;uniq&lt;/span&gt; &lt;span class="nt"&gt;-c&lt;/span&gt; | &lt;span class="nb"&gt;sort&lt;/span&gt; &lt;span class="nt"&gt;-rn&lt;/span&gt; | &lt;span class="nb"&gt;head&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three sites isn't a study, and your numbers will differ. If you've moved something old to PHP 8 and hit something that isn't on the list, I'd like to hear about it.&lt;/p&gt;

&lt;p&gt;Follow &lt;a class="mentioned-user" href="https://dev.to/kmrb_works"&gt;@kmrb_works&lt;/a&gt; here on DEV for more field notes from real PHP maintenance work. Also on &lt;a href="https://x.com/kmrb_works" rel="noopener noreferrer"&gt;X&lt;/a&gt; and &lt;a href="https://note.com/quirky_hosta1908" rel="noopener noreferrer"&gt;note&lt;/a&gt;, mostly in Japanese.&lt;/p&gt;

</description>
      <category>php</category>
      <category>legacy</category>
      <category>webdev</category>
      <category>migration</category>
    </item>
  </channel>
</rss>
