Sr. Content Developer at Microsoft, working remotely in PA, TechBash conference organizer, former Microsoft MVP, Husband, Dad and Geek.
166211 stories
·
33 followers

Native Languages in Next.js

1 Share
Next.js 16.5 introduces experimental Go support with route.go, alongside the first phase of rewriting the next start server in Go.
Read the whole story
alvinashcraft
51 minutes ago
reply
Pennsylvania, USA
Share this story
Delete

Next.js 16.5

1 Share
Next.js 16.5 brings faster Turbopack builds, cross-deployment caching, Go Route Handlers, and more.
Read the whole story
alvinashcraft
51 minutes ago
reply
Pennsylvania, USA
Share this story
Delete

Closing the knowledge loop

1 Share
Check out the new features and capabilities now available in Stack Internal and Stack Internal Community. Try Stack Internal for free by visiting stackinternal.com.
Read the whole story
alvinashcraft
51 minutes ago
reply
Pennsylvania, USA
Share this story
Delete

Intentional AI 14: The State of the Frontier Models

1 Share

David and Chris compare the latest frontier models from Anthropic, OpenAI, Google, and others, chatting about what each does best and how they both split their work between all of them.

This episode of Intentional AI is sponsored by:

  • Making Light: Craft a daily ritual to focus on what matters most. Get $10 off your first order with the code 'INTENTIONAL26'

Links and Show Notes:

Support Intentional AI with a Relay Membership
Submit Feedback
Intentional AI
Intentional AI on YouTube
Intentional AI #12: Four Macs and a Human, with John Voorhees
Intentional AI #13: Exploring Local AI with Damien Schreurs
Claude
Claude Code
ChatGPT
Codex
Google Gemini
Gemini Notebook
Navigating the Jagged Technological Frontier
Model Context Protocol
MacWhisper
iZotope RX
Wispr Flow
Obsidian
Meta Muse
Grok
DeepSeek
MacSparky Labs
Making Light
Chris Bailey




Download audio: https://www.podtrac.com/pts/redirect.mp3/traffic.libsyn.com/e68cbffa-4317-48c4-bce5-a58a3fb6b1a9/intentional-ai_014.mp3
Read the whole story
alvinashcraft
52 minutes ago
reply
Pennsylvania, USA
Share this story
Delete

I wanted GPT 6.1 Sol and GPT 6 Astra from Microsoft Foundry inside T3 Code. Here's how it went.

1 Share

First attempt: wrong target

My first pass tested the Foundry endpoint with curl and a small Python script. Both models answered fine. But none of that put them in T3 Code, which is what I actually wanted. Lesson learned: say which app the models should show up in.

How T3 Code works with models

T3 Code doesn't hold API keys or call model APIs itself. It drives coding agents installed on your machine, like Claude Code, OpenCode, Copilot or Kiro. So the question became which of those agents can talk to Foundry.

I searched the T3 app bundle for "foundry". Every hit belonged to the Claude SDK that ships inside it, and that's only for Claude models on Foundry. There was nothing for GPT models.

OpenCode can talk to Foundry, and T3 has an OpenCode provider. That was the way in.

OpenCode was too old

My Mac had OpenCode 1.1.23. T3 wants 2.0.18 or newer, and version 2 lives in a separate npm package. OpenCode 2 also converts its database on first run, so I backed up the database, the auth file, both config files and T3's settings before touching anything.

npm install -g --allow-scripts=@opencode/cli @opencode/cli

upgrading OpenCode

npm skipped the postinstall script on my first try. That script picks the native binary for your machine, so I ran the install again with --allow-scripts.

The config was already there

My OpenCode config already had a foundry provider pointing at my Foundry resource, with the models named "GPT-6.1 Sol (Foundry)" and "GPT-6 Astra (Foundry)". I'd set it up a while back and forgotten. Its key matched the one I was using, and OpenCode 2 reads the old format without complaint.

OpenCode lists the Foundry models

A quick run through each one:

both models answering in OpenCode

Switching it on in T3

OpenCode was turned off in T3's provider settings. I flipped it on, and T3 found OpenCode 2.3.2 straight away.

T3 provider settings

The Foundry models showed up in the OpenCode model list:

Foundry models in T3

And here's the part I wanted. Open a new thread, click the model button, type "Foundry":

T3 model picker

I started a small test thread with each model inside T3. GPT-6.1 Sol replied "hello from GPT-6.1 Sol (Foundry), running inside T3 Code", and Astra said the same with its own name.

Things that tripped me up

  • T3 has no direct Foundry option for GPT models, so you go through OpenCode.
  • The OpenCode 1 to 2 upgrade is a separate package, not a normal update.
  • npm blocks postinstall scripts unless you allow them.
  • macOS wouldn't let me grab a regular screenshot, so I took these in T3's own browser preview with a short-lived, read-only pairing token, then revoked it. That's why you can see a "Limited permissions" banner on the settings page.

Keep your key safe

Never paste your Foundry API key into chats, documents or screenshots. If it ever ends up somewhere it shouldn't, regenerate it in the Azure portal under Keys and Endpoint, then update your OpenCode config.

Microsoft Foundry models in T3 Code: GPT 6.1 Sol and GPT 6 Astra

Step by step notes for getting Microsoft Foundry deployments into T3 Code's model picker on a Mac.

What we ended up with

ThingValue
Foundry resource<your-resource>
Endpointhttps://<your-resource>.services.ai.azure.com/openai/v1
Deploymentsgpt-6.1-sol and gpt-6-astra (default names, same as the model)
T3 Code version0.1.11
T3 provider usedOpenCode, running OpenCode 2.3.2
Names in the pickerGPT-6.1 Sol (Foundry), GPT-6 Astra (Foundry)

How T3 Code talks to Foundry

T3 Code doesn't call model APIs itself. It drives coding agents (Claude, OpenCode, Copilot, Kiro and so on) that are installed on the machine. T3 0.1.11 has no built-in Microsoft Foundry provider for GPT models. The only Foundry support inside the app is for Claude models.

OpenCode can talk to Foundry directly, and T3 already has an OpenCode provider. So the path is Foundry, then OpenCode, then T3 Code.

Steps

1. Check the Foundry key and deployments

set -a; source .env; set +a
curl -H "api-key: $AZURE_FOUNDRY_API_KEY" "$AZURE_FOUNDRY_ENDPOINT/models"

The resource lists 513 models, and both gpt-6.1-sol and gpt-6-astra are generally available. A test call to /responses with each name came back with HTTP 200, so both deployments were already live.

Responses API test

2. Back up OpenCode before upgrading

OpenCode 2 converts its database the first time it runs, so I copied everything first:

B=~/opencode-backup-$(date +%Y%m%d-%H%M%S); mkdir -p "$B"
cp -p ~/.local/share/opencode/opencode.db* ~/.local/share/opencode/auth.json "$B"/
cp -p ~/.config/opencode/opencode.json ~/.config/opencode/opencode.jsonc "$B"/
cp -p ~/.t3/userdata/settings.json "$B"/t3-settings.json

3. Upgrade OpenCode to version 2

This Mac had OpenCode 1.1.23. T3 Code needs 2.0.18 or newer, and version 2 ships as a separate npm package.

npm install -g --allow-scripts=@opencode/cli @opencode/cli
opencode --version   # opencode v2.3.2

OpenCode upgrade

4. The Foundry provider in OpenCode

~/.config/opencode/opencode.jsonc already had a foundry provider pointing at my Foundry resource, so I didn't need to add one. Its key matched the new key exactly. OpenCode 2 still reads that older config format. The relevant part, with the key left out:

"provider": {
  "foundry": {
    "npm": "@ai-sdk/openai",
    "name": "Azure AI Foundry",
    "options": {
      "baseURL": "https://<your-resource>.services.ai.azure.com/openai/v1",
      "apiKey": "<key>",
      "headers": { "api-key": "<key>" }
    },
    "models": {
      "gpt-6-astra": { "id": "gpt-6-astra", "name": "GPT-6 Astra (Foundry)" },
      "gpt-6-sol":   { "id": "gpt-6-sol",   "name": "GPT-6 Sol (Foundry)" },
      "gpt-6.1-sol": { "id": "gpt-6.1-sol", "name": "GPT-6.1 Sol (Foundry)" }
    }
  }
}
opencode models | grep -E "^foundry/"

OpenCode sees the Foundry models

5. Test each model through OpenCode

opencode run --standalone --model foundry/gpt-6.1-sol "Reply with exactly: hello from <your model name>"
opencode run --standalone --model foundry/gpt-6-astra "Reply with exactly: hello from <your model name>"

OpenCode runs both models

6. Turn on OpenCode in T3 Code

The OpenCode provider was switched off in T3. In ~/.t3/userdata/settings.json I changed providerInstances.opencode.enabled from false to true. You can also do this in Settings > Providers > OpenCode with the toggle. T3 picked it up right away and shows OpenCode v2.3.2 as Authenticated.

T3 Code provider settings

The OpenCode model list in T3 now includes the Foundry deployments, and they're switched on:

Foundry models in T3's OpenCode list

7. Pick the model in a thread

Open a new thread, click the model button next to the send button, and type Foundry in the search box.

T3 model picker filtered to Foundry

8. Confirm it runs inside T3

I started a short test thread in T3 with each model. Both replied:

  • GPT-6.1 Sol (Foundry): "hello from GPT-6.1 Sol (Foundry), running inside T3 Code"
  • GPT-6 Astra (Foundry): "hello from GPT-6 Astra (Foundry), running inside T3 Code"

Obstacles

No native Foundry provider in T3. I searched the T3 app bundle for "foundry". Every hit belonged to the Claude Code SDK bundled inside it, which only uses Foundry for Claude models. OpenCode filled the gap.

OpenCode was too old. Version 1.1.23 shows as limited or broken in T3. The fix was the separate @opencode/cli package, which brought it to 2.3.2.

npm skipped the postinstall script. The first install printed a warning that postinstall.mjs didn't run. That script picks the native binary for your platform, so I reinstalled with --allow-scripts=@opencode/cli.

Two different Azure keys. OpenCode already had an azure login with a different key, probably for another resource. I left it alone and used the existing foundry provider, whose key matched.

Python TLS error during the first API test. The python.org Python build doesn't come with CA certificates on macOS. The test script now loads /etc/ssl/cert.pem. Verification stays on.

Screenshots. macOS blocked a normal screen capture (could not create image from display). I took the T3 screenshots in T3's own browser preview instead. That needed a pairing token, so I issued a read-only one that expired in 5 minutes and revoked the session afterward. That's also why the settings page shows a "Limited permissions" banner.

Undoing it

  • Turn OpenCode off again in Settings > Providers.
  • Go back to OpenCode 1: npm uninstall -g @opencode/cli, then restore the files from ~/opencode-backup-*.

Security note

Treat your Foundry API key like a password. If it is ever exposed, regenerate it in the Azure portal under Keys and Endpoint, then update it in ~/.config/opencode/opencode.jsonc (both apiKey and the api-key header) and in your project's .env.

Conclusion

Getting GPT 6.1 Sol and GPT 6 Astra into T3 Code didn't need a new provider, just the right path. T3 Code drives coding agents instead of calling models itself, so the trick was to let OpenCode talk to Microsoft Foundry and let T3 Code talk to OpenCode. Once OpenCode was on version 2 and switched on in T3, the Foundry models showed up in the picker like any other model.

A few takeaways if you try this yourself:

  • Check which agents your client can drive before hunting for a native provider. The way in might already be installed.
  • Back up before big upgrades, especially when a tool converts its database on first run.
  • Test each model from the command line first. If it works there, any problem in the app is the app.
  • Keep keys and endpoints out of chats, screenshots and posts. Use placeholders when you share your setup.

The same approach should work for any Foundry deployment OpenCode can reach. Give it a go, and let me know in the comments how it went for you.

Read the whole story
alvinashcraft
52 minutes ago
reply
Pennsylvania, USA
Share this story
Delete

Create and edit diagrams with Microsoft Visio Desktop MCP (Preview)

1 Share

Today we're announcing the preview of Microsoft Visio Desktop MCP. It lets compatible AI clients, such as GitHub Copilot in Visual Studio Code, help create, read, and update diagrams directly in the Visio desktop app on your Windows PC. 

Visio Desktop MCP is a local Model Context Protocol (MCP) server that runs on your Windows PC and interacts directly with the Visio desktop app. MCP is an open standard that allows AI agents to use tools. When you add Visio Desktop MCP to your AI client, the agent gets a set of Visio tools. It can help read existing Visio files, find suitable shapes, add shapes, connectors, containers, and swimlanes, check the layout, and save the file. You describe what you need in plain language, and the agent helps build the diagram in Visio while you watch and review. 

This preview is designed for local use and evaluation. The experience is still evolving, and capabilities may change as development continues. 

The result is an editable Visio diagram, not a picture of one. You can turn a written procedure, inventory, or rough idea into a first draft then review and refine it in Visio. This work is generated by AI. Check all contents for accuracy before relying on the information presented.

What you can do 

  • Create diagrams from a description or your own files, including flowcharts, cross-functional flowcharts, org charts, network diagrams, and architecture diagrams. 
  • Make focused updates, such as adding a step or reconnecting shapes, without redrawing the rest of the diagram. 

See it in action 

Contoso's Finance Operations team keeps its purchasing procedure in a Word document. It covers five roles and 11 steps, including approvals, a budget check, supplier quotes, and a three-way invoice match. The team needs a process diagram to help document the procedure. 

A finance analyst with Visio Desktop MCP added to GitHub Copilot in VS Code opens the folder containing the document and enters this prompt in Chat, in Agent mode: 

Create a cross-functional flowchart in Visio from purchase-request-procedure.docx. Use horizontal swimlanes, one for each role, so the process reads left to right. Show every step and decision, label the decision branches, and include the rework and rejection paths. Title it "Purchase request to payment".

GitHub Copilot reads the procedure and uses Visio Desktop MCP to help create the diagram in Visio, including selecting shapes and organizing the process into swimlanes. The agent can also use available tools to check the layout, make adjustments, and save the file. Results can vary, so the analyst reviews the diagram for accuracy and completeness before sharing it. This work is generated by AI. Check all contents for accuracy before relying on the information presented.

The cross-functional flowchart that Github Copilot created in Visio from the written procedure.

What you need 

  • Visio desktop app: A licensed Windows device with the Visio desktop app installed and activated, with a license such as Visio Plan 2.  
  • .NET 10 SDK: The .NET 10 SDK, version 10.0.100 or later. 
  • Organization approval: On a work device, your organization must allow MCP servers in your AI client and allow your device to download the Microsoft.Visio.Mcp package. 

Note: GitHub Copilot requires a separate subscription. Neither your Visio license nor Visio Desktop MCP includes GitHub Copilot or an AI model. Access to supported AI models and usage allowances depends on your GitHub Copilot plan and applicable terms. Additional usage requirements or charges may apply depending on your plan and usage.  See GitHub Copilot plans and pricing. Other AI clients have their own requirements. 

Get started in Visual Studio Code 

One way to start is with Visual Studio Code and GitHub Copilot. To use another AI client, see manual configuration. 

  1. Install Visual Studio Code. 
  2. Install the GitHub Copilot Chat extension and sign in with a GitHub account that has a GitHub Copilot subscription. 
  3. Install the NET 10 SDK.
  4. Press Ctrl+Shift+P, and run MCP: Add Server. Select Command (stdio), enter dnx Microsoft.Visio.Mcp --prerelease, and name the server visio-local. If you're asked for a configuration target, select Global > Copilot Global. 
  5. Press Ctrl+Alt+I to open Chat in Agent mode, and ask for a diagram. When you're asked Allow tool from visio-local?, review the request, and then allow it.

Tip: Let your agent to help with setup. In Agent mode, share the link to Set up Visio Desktop MCP, and ask the agent to follow the steps. Review each change before you approve it. 

Learn more 

About the preview 

  • Local experience: Visio Desktop MCP runs locally on your Windows PC and interacts directly with the Visio desktop app. However, diagram content processed by the agent may be sent to your connected AI client and model subject to that service’s terms. Use an AI client and model approved by your organization. 
  • Preview limitations: Visio Desktop MCP is intended for evaluation and is not recommended for production environments or critical workloads. Capabilities, functionality, requirements, and availability are subject to change. The preview experience may differ in a future generally available release. 
  • Review the results: AI-generated diagrams might not reflect your intent. Check content and layout before you share or rely on a diagram. 

For the full list, see Preview limitations. 

Share your feedback 

  • GitHub Issues: Report a bug, ask a question, or suggest a feature in GitHub Issues. Sign in with a GitHub account, search existing issues first, and check Troubleshoot Visio Desktop MCP for known problems. Include reproduction steps, expected and actual results, your Windows, Visio, Visio Desktop MCP, and AI client versions, and any agent error details. See Feedback for more. 
  • Feedback in Visio: In the Visio Desktop app, select Help > Feedback. 

 

We can't wait to see what you build. Tell us which scenarios you've unlocked, what worked well, and where it fell short. Your stories help shape what we build next. This work is generated by AI. Check all contents for accuracy before relying on the information presented.

Read the whole story
alvinashcraft
52 minutes ago
reply
Pennsylvania, USA
Share this story
Delete
Next Page of Stories