Should your agent call an MCP server or just run a CLI? Pamela Fox joins us to share how she thinks about connecting AI and her data. She’s taught MCP workshops from PyCon to WeAreDevelopers. And, every week, an agent combs her Gmail, Outlook, and X history to build her news roundup. She uses MCP all day. Yet, there are still times you when to skip it. You'll hear how her colleague pitted the GitHub CLI against the GitHub MCP server on a real bug fix. The CLI used fewer tokens. It succeeded more often. So do we choose CLIs, MCPs, or even just APIs for connecting our agents to our data and services? Let's find out. Episode sponsors Talk Python Membership Talk Python Membership Talk Python Courses Links from the show Guest Pamela Fox: pamelafox.org Meetup: SQLite Might *Actually* Be All You Need: talkpython.fm MCP: modelcontextprotocol.io WeAreDevelopers workshop: pamelafox.github.io slide 16: pamelafox.github.io To MCP or not to MCP: blog.pamelafox.org MCP: Bringing mashups back: blog.pamelafox.org MCP auth session: www.youtube.com Pydantic AI \+ Playwright: blog.pamelafox.org post: blog.pamelafox.org PyAI talk: www.youtube.com post: blog.pamelafox.org POSETTE talk: www.youtube.com post: blog.pamelafox.org Can MCP choose my outfit: blog.pamelafox.org Talk Python now has a CLI: talkpython.fm FastMCP: gofastmcp.com Typer: typer.tiangolo.com Click CLI: click.palletsprojects.com Boldin: www.boldin.com Sentry MCP: mcp.sentry.dev X.com MCP: docs.x.com Watch this episode on YouTube: youtube.com Episode #569 deep-dive: talkpython.fm/569 Episode transcripts: talkpython.fm Theme Song: Developer Rap 🥁 Served in a Flask 🎸: talkpython.fm/flasksong ---== Don't be a stranger ==--- YouTube: youtube.com/@talkpython Bluesky: @talkpython.fm Mastodon: @talkpython@fosstodon.org X.com: @talkpython Michael on Bluesky: @mkennedy.codes Michael on Mastodon: @mkennedy@fosstodon.org Michael on X.com: @mkennedy
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Michael KennedyShould your agent call an MCP server or just run a CLI? Pamela Fox joins us to share how she thinks about connecting AIs and her data. She's taught MCP workshops from PyCon to VR developers, and every week an agent combs her Gmail, Outlook, and X history to build her news roundup. She uses MCP all day, yet there are still times when you should skip it. You'll hear how her colleague pitted the GitHub CLI against the GitHub MCP server on a real bug.
Michael KennedyThe CLI used fewer tokens. It succeeded more often. So do we choose CLIs, MCPs, or even just APIs for connecting our agents to our data and services? Let's find out. This is Talk Python To Me, episode 569, recorded October 15th, 2026.
Michael KennedyWelcome to Talk Python To Me, the number one Python podcast for developers and data scientists. This is your host, Michael Kennedy. I'm a PSF fellow who's been coding for over 25 years. Let's connect on social media. You'll find me and Talk Python on Mastodon, Bluesky, and X. The social links are all in your show notes. You can find over 10 years of past episodes at Talk Python.fm. And if you want to be part of the show, you can join our recording live streams. That's right. We live stream the raw uncut version of each episode on YouTube.
Michael KennedyJust visit Talk Python.fm slash YouTube to see the schedule of upcoming events. Be sure to subscribe there and press the bell so you'll get notified anytime we're recording. Before we dive into the show, I want to tell you about an upcoming members meetup here at Talk Python. The title, SQLite Might Actually Be All You Need. This talk dives into running SQLite in production and why, surprisingly, it might be one of the best production databases you can choose. Here's something I haven't really talked about yet.
Michael KennedyTalk Python doesn't run on MongoDB anymore. After years on Mongo, I've moved almost all of our sites to SQLite, the database that you might file under. Fine for prototypes and phone apps. I knew an in-process database would have some speed advantages, but what I didn't expect is that it's 40 to 300 times faster on our data. Now, looking up a guest takes 1.5 microseconds. That's 1 1,000th of a millisecond, or over 600,000 calls a second from plain Python.
Michael KennedyAnd a write? Well, that's 1 1 100th of a millisecond. But then there's that question that scares people off. What happens when the server dies? This is where the surprises live. So I hope you join me for the members tech meetup. It's on December 2nd at 10 a.m. U.S. Pacific time. Find all the details at Talk Python. Just click membership and go to the tech talks. Add it to your calendar right there. I hope to see you at the meetup and share some SQLite surprises with you. Pamela, welcome to Talk Python To Me.
Michael KennedyIt is long past time I had you on the show. Really glad you're here.
Pamela FoxAwesome. It's so fun to be here.
Michael KennedyWe're going to talk about some of the craziness of 2026 and choices. Should we MCP to MCP or not? Was that the Shakespeare question? I think that was it.
Pamela FoxYeah, exactly.
Michael KennedyOr the CLI or APIs, or basically I've got some data and services and I want to connect them to my code, to my agents. How do we do that, right? I know you've written a whole lot about this and people should absolutely check out your blog, but especially conference talks. You're an awesome technologist and I really loved all of your presentations, you know, including the one just at PyBay where we were. How was PyBay? What do you think?
Pamela FoxI thought PyBay was really fun. I love the Python conferences, getting to meet the local community and you had a great talk at it as well.
Michael KennedyOh, yeah. Thanks. That was really fun about Talk Python in production. that will come out eventually. I'm sure the videos of those will come out. They were recorded, so they wouldn't record them for no reason.
Pamela FoxYes.
Michael KennedySo really, really cool. Now, before we dive in, as per usual, just give people a quick background on you.
Pamela FoxYeah, sure. So I am Pamela Fox. I am currently at Microsoft and or GitHub, whichever company you prefer more. And I am a principal cloud advocate. So that means that generally, like I'm using all of our developer tools and showing developers how to use them. I tend to focus on Python. We had like an official Python advocacy team for four years and we don't anymore, which is sad.
Pamela FoxAnd that's kind of part of the change due to coding agents where like languages are not as much of a thing anymore because the coding agents can just code and whatever and all that matters is the output. So now, you know, I guess there's just this big question as to how much does your language even matter anymore. So I'm glad on that note with PyBay, I currently think it's great that we still have these Python-specific conferences. It will be interesting to see how long language is the theme that holds together a community.
Michael KennedyWhat an interesting idea. I've been thinking about this a lot too, and I fright. I was, before we go down this AI thing, when you were talking about not specifically having a Python team, one of the thoughts I had, well, like Python is just so popular, just it's expected. It's not this niche thing where we brought in a few people that know this weird no curly braces language. You know what I mean? But like just the advocates know about Python. And so maybe you don't need a specific Python team.
Pamela FoxYeah, I guess two things happen is one is that more and more the advocates from the other language teams found themselves using Python because you almost have to now because that's like it became the default language for new SDKs, right? When I first joined Marksoft, it was the opposite, right? where we had to like kind of beg for a Python SDK. And then people had to beg for like SDKs in C#, which is a crazy thing for Microsoft because Microsoft is like a huge, you know, C# user.
Michael KennedyLike they may have created the language. Right,
Pamela Foxthat thing. Yes, yes, that's true. So yeah, so I think part of it is that just basically all advocates, you know, they're, you know, we're all there. Everyone's using Python now, all using JavaScript now. Everyone's using every, you know, because it's just so easy to add on, you know, a React front end. I saw a talk from my dad the other day. He's a computer scientist. And on his slide, he had like React front end. I was like, what? Dad, you're doing React? Like what has happened, right? That's only due to coding agents. I guarantee it. Because there's no way that my dad would be just like suddenly like, well, I'm like seven
Pamela Foxyears old. I think it's time that I learned React, right?
Michael KennedyExactly. It's like, Pamela, what are you using Node for? We all use Bun now. Come on. What? Who are you?
Pamela FoxYeah. I need to call him up so we can talk JavaScript now.
Michael KennedyFunny. Yeah, you're right. And I honestly don't even know if I want to talk about it because it makes me a little bit sad. But I do think that there is also something to the second half of the reason that you gave. And that's we don't necessarily have to read the code. Should we read the code? I don't know. I'm very conflicted. I actually was thinking today about building a little GUI application, plug into an LLM, maybe an MCP, who knows, that would basically go to a code base and go from this git commit to that one i need i need a tour of what has happened will you explain this to me because git history is not there's a thousand
Michael Kennedychange files what is significant what do i you know what i mean something like that would be cool
Pamela Foxyeah yeah we care more about the high level changes and also just how they're being verified so i think like in terms of python you know what i am most interested in is you know the verifiability We do have great testing frameworks in Python. So I think we can continue, you know, talking about those testing frameworks, like how you could encourage your agents to use PlayWrite and use pytest and use hypothesis and schema thesis and all of that stuff. And, you know, at least guide it to using like an async FastAPI,
Pamela Foxyou know, versus a sync framework. But the specifics of Python, you know, not as useful. I was reading the Python 315 release notes and I was like, oh, all of this is great. I'm glad. I know. I'm glad they added this. But none of this matters until the LLMs know it.
Michael KennedyI see.
Pamela FoxUntil they've been pointed at the release notes and until I'm using 315 in production.
Michael KennedyWe're going to see what the world brings. But it is trending this way and it is weird. I don't think that means that people without programming skills are not needed or don't have value. I think there's tons. It's just not in the structure level. It's like, okay, we need this kind of design pattern. We need this kind of storage. What are we going to do about, you know, durability if this data center goes down and we got our data there? That kind of questions, yeah?
Pamela FoxYeah, and that's all things we've learned. You know, syntax was just one way that we expressed our programming knowledge. Now, you know, we're really going to express the architecture side of it because that's where, you know, we still need to think a lot about how we're going to architecture things, what the protocols are that we're going to use in order to interface across systems, which that's like a good lead in for today's topic, because, you know, that I think the protocols are increasingly the important part.
Michael KennedyAbsolutely. All right. Well, let's go ahead and dive into it. I think, as I said, I kind of want to structure this around MCP because that's maybe the most obvious choice. Somebody says, I want to connect this thing to my AI. Well, MCP were obviously right. However, there's a lot of options, as we'll see. And there's times you do and don't use MCPs. But let's start with that story. So I had a Den Bilomarski on the show a while ago to talk about MCP protocol. But honestly, it's like a year ago and in AI world,
Michael Kennedyyou know, how crazy, how long ago was that? So maybe we should just start from the beginning. You know, what is an MCP? What is MCP? And what is an MCP server? Like, why do we care about this stuff?
Pamela FoxRight. So MCP is, you know, it's the standard for helping AI applications to discover context, or here it says to connect to external systems. We basically wanted a standard way where we could extend our agents with access to additional tools, right? So it's extensibility story for agents, and it's a standard. And it's like, the cool thing is, it's like the first standard that everybody jumped on board with, right? It is so hard to get all these companies to agree right now,
Pamela FoxAnd they're like fighting on Twitter. It's like, come on, can't we all get along? And finally with MCP, you know, we can all get along. So this is, you know, originally came from Anthropic with Claude. But now there's great support in ChatGVT. You know, at Microsoft, we've got GitHub Copilot and VS Code. But there's also like consumer facing tools that have support for it. My business friends talk to me about MCP. Really?
Michael KennedyOkay. Yeah, yeah.
Pamela FoxTheir messaging made me like, oh, I just pitched this, you know, like extra using MCP. So yeah, because it's, you know, it's a standard that works across agents and agents are both developer facing and user agent. There's, you know, in the last few weeks, we've had GrokBot and Muse and there's so many new ones that pop out every week. And a lot of those are connecting behind the scenes using MCP. They don't always call it MCP. Chachapi calls it plugins,
Pamela Foxright? Like on their opening iDev day, They talked about ChattoBee plugins behind the scenes. Those are very much based off the MCP standard, right? So, you know, you're not always going to see MCP prominently displayed in the UI for these user-facing agents.
Michael KennedyYeah, I think if I go to Claude and I try to connect to it, it tells me what you need to do is add a connection, not an MCP server, right? I'm like, this is where the MCP goes? You know what I mean?
Pamela FoxYeah, yeah. So I think they call it like connectors or connections. I'd be happy if they all call them MCP, but a lot of times they do wrap some additional things on top. Like ChatGPT, they wrap plugins in some additional metadata that helps them plug into the UI certain ways. So I think that's why they're calling it, they're coming up with their own name for it, just so they can add additional things on it.
Michael KennedyYeah, that makes a lot of sense. And I guess it's like an API, right?
Pamela FoxRight. Okay. So here's how it actually, like, I'll just tell you the actual, I mean, this is a developer, right? So what actually happens is first there's a handshake, right? So you register an MCP server and a lot of times your server is what's called an HTTP server. So there'll be actually like a URL for it. So it's like, you know, hpcoolserver.com slash MCP. And then the agent will connect to that server. So it'll send a handshake to that server. And during that handshake, it's going to ask the server what tools it has.
Pamela Foxbecause tools are like the there's other things that servers can expose but tools are like the really really important thing um so it'll say uh tools slash list so it sends this is a json rpc so it sends this json rpc uh you know hp requests to the server say hey what tools do you have and any other sort of discoverability it wants to do at that point mcp servers will support skills soon as well that's exciting um so it could discover those too so it discovers the tools the tools will come back. And once it has the tools, now the agent can populate its tools list
Pamela Foxwith all the list of tools. And then it can decide to send those tool names to the LLM every time it's processing a user request. And if the LLM, the user request and says, oh, I've got a great tool for that, like book hotel, right? Maybe that's a tool and they want to book hotels. Then it's going to send a request to the MSP server that says it's like tools slash calls. And then it sends in arguments and says, OK, hotel in city, San Francisco, start date, October 15th, end date, October 17th.
Pamela FoxAnd so that sends, you know, basically like a remote procedure call like to the, you know, to that MSP server and the server processes it and responds back with, you know, JSON or, you know, however it wants to respond.
Michael KennedyYeah, it's a little bit like an HTTP endpoint, but it's a little bit where the tools are, the individual functions that you might or the endpoints you might call with an API client. But there's kind of a negotiation as well. Like, do you support streaming? What version of MCP are you? So it's a little bit more high level than the HTTP APIs, right? Like maybe GraphQL or one of those types of something built on top of it, right? But it's still very approachable for Python people.
Pamela FoxIt's more opinionated because it's saying like, you know, it's saying this is specifically for agents. Agents want to know about tools. That's what they need. And they also want to know about, you know, in the future about skills. Right. But, you know, it's using mechanisms that we understand behind the scenes like JSON RPC.
Michael KennedyNice. Yeah, I just last year, I can't remember exactly when it was. I built a MCP server for the podcast. So you can ask it like, what did Talk Python cover on this? And instead of having to go and do a full search of all the pages of the website, the thing could just connect and run database index backed super fast queries, right? So it gets really quick answers and answers.
Pamela FoxI'm seeing now a lot of conferences. Well, not maybe a lot, but the nerdiest conferences will actually have MCP servers to interact with their data, right? So AI engineer did that and that was really fun.
Michael KennedyThat's awesome. example for the talk's schedule and stuff. Like, hey, I'm interested in this. What talk should I go see next? Right. That kind of question would be awesome to answer right away.
Pamela FoxYeah. And then, so here's what's nice about MSP is that then you can connect multiple MSP servers to your agent, right? So example, you could connect the, you know, like the AI engineer MSP server for that conference. And you could also connect like the Google Calendar, like, you know, or in my case, I use the Microsoft WorkIQ MCP server for access to my Outlook. And so then in theory, you can be like, hey, which of these talks am I even like available to attend? Could you also just like put it on my calendar? Right. So this is what excites me about MCP is that MCP enables like
Pamela Foxus to make mashups really easily. Right. Like, you know, I don't know how people know the term mashups but back with like web 2.0 i love it yeah it was like 2006 like we're you know we had this huge boom of the hdgp web 2.0 apis that were very you know fun to use like the flicker api and google maps and all that stuff and i was making like hundreds of mashups i was absolutely addicted um but it was it was so fun but like i was able to do that because i was you know i was a coder
Pamela Foxnow the difference is you know obviously yes as coders we can make these mashups but we can enable anyone to make these mashups, right? Like we're putting the power of this, you know, this, this programmatic combinatorial power, we're giving it to everyone now.
Michael KennedyYeah. For all the trouble that AI is causing trouble, I don't know, disruption, I guess, in our industry and others, you know, I do think there's something very special about being able to give people this power to speak in regular English or whatever language you speak to a computer and it's almost like programming. Yeah.
Pamela FoxYeah. I mean, I think that's also just generally true, not just with MCP, but, you know, I gave a talk last week to CS teachers talking about, you know, the stack of programming languages. And we went up from, you know, assembly, machine, assembly, you know, C++, higher level like Python. And now, you know, we're at natural human language, right? Like we have lowered the barrier so that anyone spoken language can basically code something, Right. So, yeah.
Michael KennedyYeah. My daughter just discovered Codex and she wanted to build a website. And after a few hours, she goes, Dad, is it OK if I stay up all night? I can't put this down. Like, you're going to run out of credits before you stay up all night. But don't do that. But that's kind of how the excitement is, you know.
Pamela FoxThat reminds me of discovering the web like in like sixth grade. I definitely stayed up all. The first time you discover that you can make, you know, like a web app or a piece of software, it's a long night.
Michael KennedyIt's an amazing night. But the next day, oh, boy, what have I done? What have I done? So make this a little bit concrete. Give us some specific MCP servers that you use. And I'll share a couple of mine as well, but I'm going to let you go first on this.
Pamela FoxYeah. So the ones that I use the most often, there's the Twitter X MCP server. So I have that installed. And that, you know, can search through all the tweets, especially the tweets I've liked and bookmarked because I use that basically as like research, right? because I obviously am using Twitter purely for educational purposes and, you know, not just for procrastinating. So every week it actually like goes through and, you know, looks at stuff. And it also is like helps me like manage bookmarks, right? So I can put all my bookmarks in one place. So yeah, there's the XMCP server.
Michael KennedyI didn't know this existed. This is, this could be a problem if I learn about this.
Pamela FoxYeah. Yeah, yeah. They've been improving it over time. You still, there's still a fair bit of setup for it. It's not the most, you know, most user friendly. um but uh you know it's it's working decently well uh let's say i also have the um a gmail mcp server which is not quite an official one but it's working well enough for now we're still waiting for it i think they're about to come out with this like google workspace mcp server so i'm excited for that oh that is exciting yeah yeah i basically my friend like vibed an unofficial this is the thing
Pamela Foxis you can make your own mcp servers that wrap things if you need it so right now i'm using like an official vibe Gmail MCP server. I use the WorkIQ MCP server. That gives me access to my work, Microsoft stuff, like Teams, Outlook, that sort of thing, Calendar. And yeah, and then I have some documentation servers. Like we have a documentation server just for Microsoft Learn, and that's where all of our documentation is. So I'm not even using that many MCP servers, but the ones I am using are just absolutely essential,
Pamela Foxright? So like every week I hold an office hours where we talk about what's going on in generative AI. And I have a skill for that, an agent skill that specifically uses all those MCP servers to go to research. So it goes and looks through my Gmail, it looks through my Outlook, it looks through my Twitter history and says, okay, these are everything that's happened in the last seven days, right? And it can just do that every Tuesday at 9 a.m., automatically run, and then boom, got my news roundup. And it's based off the last week of what I have been engaging with myself personally,
Pamela Foxright?
Michael KennedyYeah, and for your role, it's really important to kind of stay on top of the news and what's happening in tech and all that, right? So being able to ask that as a question.
Pamela FoxRight, yeah, that's true. Like for every role, there's different MCP servers that are really shy. Like for other people, they're, you know, like the linear MCP server, they've had a huge, I think they get more traffic from MCP than via like their UI now or something. And they shared some chart where they're like, MCP usage is just, you know, shot way up, right? And that makes a ton of sense, right? Like if you're tracking all your issues in linear, you know, then you're going to have a lot of use. I also obviously use, I'm sorry, I didn't even think about the GitHub MSP server because it's like built in GoPilot,
Pamela Foxbut you know that, you know, because my issues are stored in GitHub. There's Azure DevOps that I'll use sometimes if I'm working on a project that is there. So depending on what your role is, you know, what your job is, you know, there's going to be different MSP servers that are going to like really enhance your productivity and other ones that you just don't need.
Michael KennedyYeah, very cool. So for me, I make a lot of use of the Talk Python one because it lets me ask questions like, have we talked about this before? What have we covered? Is it going to be just a repeat or that kind of stuff really nicely? One, just to give a bit of an outside-of-the-box angle, is I found this place. Also, Century MCP. Century MCP is awesome because I have Century plugged into all my apps, and I love it for my web apps, but I'm a good web developer. I can do this, but you know what?
Michael KennedyI'm not a good developer of mobile apps. I'm barely hanging on to the edge to keep my mobile app going because I didn't write it. I don't know it. Like, it's just like, but okay, sort of. And I had Sentry connected to it for years and it just built up this huge backlog of errors. And I'm like, you know what? I'm tired of these errors. I think one week and I said, I bet Claude and I, given all that Sentry data with all the errors, I bet we can go fix almost all of them. And so I just connected the MCP server and I opened up VS Code with Flutter and I said, all right,
Michael KennedyClaude, I want you to look here. We're going to go there one at a time until these are gone. And it took three or four days, but I completely refreshed the app with all the details from the MCP server. And I would just say, okay, what's next? Yeah, go ahead and close that one. Let's make a GitHub issue for that. You know what I mean? And just, I kind of was just guiding it. And it completely, I think this is an amazing thing. These error-based systems that catch all the errors and you can just say, go to the Claude or Codex, go, there's an error in Sentry, fix it. You know what I mean? That's all it needs.
Pamela FoxYeah, that's amazing. I can remember using Centurate Khan Academy and having those errors just build up over time. And you're like, one day, one day I'm going to fix them. But it is so hard to prioritize bugs when you're always like features. But now we can paralyze a bit more and you get the help of being able to sort through logs. At this point, I'm never going to look through an error traceback myself, especially with Python async. Man, Python async tangent. But Python async errors, the tracebacks are so hard to parse through, right? So these days I'm just always going to paste a trace back into an agent and be like, okay, what's the actual error here,
Pamela Foxright?
Michael KennedyYeah. This is wrong. There's something wrong. I know this is wrong. We're fixing this, right? And then another one that I think we'll see if you would see this coming. So there's this place. So I was thinking about like retirement planning, right? Eventually I'm going to retire someday. And I'm like, I ran across this place called Bolden. It's not an advertisement. Just thought it was interesting. And it says, it's the DIY retirement. Like you can run any what if on their AI. If you put your sort of financial situation into it, you can ask, like, if I put more in 401k now,
Michael Kennedywill that save? You know, like what's this going to have an effect on, right? And if the market does this, what would that do? You know, like these kinds of things. And I asked it a question and I was like, I'll try this AI thing. So I asked it a question. It came back like that with an answer. I'm like, oh, no, I don't trust this at all. This should have taken a little bit of thinking. This is like a haiku model at best. You know what I mean? There's no way there's a good AI here. So I complained to them. And the developer wrote back and said, well, what if we build an MCP server? I said, yes. And then a few weeks later, like, here's the MCP server. So I connected it to Claude on like Fable or Opus or something.
Michael KennedyAnd then I'm like, okay, now I can ask questions I trust the answers to.
Pamela FoxYeah, that's a good point. Because when you, right, that's a good point. Because a lot of these applications have, you know, this has like an agent. You can see it on this, the front web page. It says like AI planner assistant. But they need to optimize for cost, so they're not necessarily going to use the most expensive model there. They may not have access to the best model. You might, for whatever reason, you've got Fable. I don't even have Fable, but I've got Opus 5.5, which is my new bestie, right?
Michael KennedyI love 5.5. Yeah, I love Opus 5.5. It's so good.
Pamela FoxSo I can.55, and I can trust that. And we should be using the EPSP server for the data. There are some MSP servers that do also basically wrap an agent. I don't love that as a design choice, but it is certainly a choice that some MSP servers are using. But yeah, I'd rather that they focus on returning the data and leave the agentic processing to people's agents.
Michael KennedyRight. Your job is to get the data to the smart agent that I'm running, not do your own thing on top of it. Exactly. I want to throw one more thing out there really quick, and maybe you can give us your thoughts if you have any. I know a lot of people when they think about AI and their website or their app, they're like, here's a thing that is swamping my app. It's making it slow. It's overwhelming the bandwidth. And I hate it. So MCP probably just makes this worse. I don't think that's true. I think that a lot of people might have this sort of thought process, right? Like it's just going to mean it's going to talk to my site more and so on.
Michael KennedyBut when you build these MCP tools, as you pointed out, you build the tools. Those are basically function calls on your code. And you can do whatever you want there. You can use caching. You can use database indexes. You can make them incredibly fast. So instead of having an AI crawl all over your stuff, it can just go right to an optimized spot and go, this is what I'm actually looking for. All right, here's a super fast response. Harkening back to the PyCon, PyBay talk. Pulled up my logs in the last couple of MCP calls on my site were like two millisecond response time.
Michael KennedyThat doesn't hurt my site. I don't care. They can ask questions like that. This is the way to, I think, lessen the work on your server and your app, not increase it.
Pamela FoxYeah, that's really true. I think at this point, we should assume that people are going to use agents to try to automate interaction with the websites they're using, right? So for example, I was trying to programmatically browse Etsy the other day to help with my costume shopping because I wanted to be Link from Zelda and I needed to put together lots of different parts. And I actually have never played Zelda. So I was like, assuming the coding agent knows more about Link than I do, you know, because it's in the weights. It's not in my weights,
Pamela Foxright? But I was immediately blocked from Etsy. And Etsy does not have like a shopping MCP server. So if they'd had an MCP server, then I would have bought a lot more on Etsy.
Michael KennedyYeah, isn't that surprising? They're like, no, it's going to block it. These are terrible. Like, I was trying to buy five different things for an outfit. You wouldn't let me, basically.
Pamela FoxRight, because if you, yeah. So it certainly does depend on what people. So because on the flip side, you know, when people use MCP servers to automate interaction with like a social media network or, you know, like, you know, like a website where people are posting text, they can make a worse experience, right? We see this on Twitter right now with all the reply bots. You know, they're, they're, it's a horrible experience. Like everything you tweet, you get back this reply that's very well written and says it's not X, but Y. And you're like, oh, why? Why did you,
Pamela Foxyou know, like fill my brain with something that I should never have to read because, you know, there's no human out there that wrote it. Right. So, you know, there, you know, there, there's some design that goes into this, but there's definitely many services where if you build an MSP server, you are enabling people to use your app in, in more ways, right? So, especially for shopping, right? So DoorDash, they did add an MSP server and that makes so much sense, right? For people who's doing, you know, maybe they use DoorDash to cater to their office every single day. By having an MSP server,
Pamela FoxDoorDash is making it that much easier to do bulk orders on DoorDash, right? So if you are a shopping website, I think Shopify just announced like an MCP sort of integration. So if you are a shopping website, it makes so much sense to have an MCP server, right? Because you want that, you know, sweet, sweet consumerism, right?
Michael KennedyExactly. Let them come purchase. Let their agents come. They'll put their credit card in.
Pamela FoxI guess the thing that it threatens the most is advertising, right? And that's always what's been threatened by, you know, ad block and programmatic scraping and all that stuff. So we'll have to figure that out.
Michael KennedyYeah, that is a different, I think that is an absolutely significant area and totally different though than like etsy letting you buy or not buy so you gave a talk exploring mcp servers with GitHub copilot was this last year
Pamela Foxum this particular one was quite uh recent but basically like i keep doing these workshops to show people mcp uh the first one i gave was at pycon so that was you know pycon back down in long beach and that was you know like a three-hour workshop and so i've just been giving variants on this workshop for the last whatever seven months i think this might have been pi ai is that right remember uh maybe not no no no that was your um that was your one where you made an mcp server pick your outfit that was a different deal yeah you know i just talk about mcp everywhere so this
Pamela Foxwas at we are developers in san jose a few weeks ago gotcha okay the reason is i want to talk about
Michael Kennedyjust like support for mcp servers across some of your common things like copilot codex code vs code etc it's like a can i use but can i use dot ai instead of an air.com whatever it is i know i don't even think don't please don't go there i don't know what's there but no the actual website is
Pamela Foxcan i use.dev uh i told them they should get canimcp.com because i thought that would you know flow better but this is from so the people who made this is mcp jam it's this really nice uh basically like think of it as postman but for mcp servers right so really nice way of just testing out your mcp servers with all the different features and you know sending requests back and forth and being able to see your oaf flow and see it succeed so they decided to make this can i use.dev And it's supposed to be like caniuse.com, but for MSP servers, because people are always asking like, hey,
Pamela Foxyou know, this new MSP feature, is it supporting these clients? Because this MSP spec is evolving all the time. They did the most recent big drop was July 28th, continually adding, you know, more stuff to it over time. But the problem is many clients don't necessarily immediately add support for these features. So as somebody, if you're building a server, you know, you might be really excited about a new feature, but you want to check and see like, hey, you know, what is the support like that, you know, for this feature across the clients? What is the user experience going to be like?
Michael KennedyYeah. And just doesn't support it at all. You know, I know for a while, like ChatGPT, Codex supported, but I think ChatGPT wouldn't take MCP or something. Why won't you accept it? You're the most popular thing. You know what I mean? I think MCP came out of Anthropic. I can't remember exactly. But actually Codex has more support than log code, for example. So this is kind of a can I use for all the different features.
Pamela FoxYeah, and I actually, relevant to this audience, I just asked them if they will add columns for Python agent frameworks, right? Because, for example, skills over MCP, that just got approved like a month ago. Like the spec for it got approved in merge. And so now they're, you know, making it official. And if you look for skills on can I use.dev right now, you'll see none of the current clients support it, but it is supported in a lot of the agent frameworks. So if you use like we've got like Microsoft agent framework, I happen to just know that that one supports it.
Pamela FoxBut I bet you Pydantic AI does, too, because they're always quick to pick these things up. Right. So I did ask them to add columns for the agent framework. So hopefully in the near future, you'll see like, you know, does Pydantic AI, LangChain, right? You know, which of your favorite Python agent framework support it? Because that's the thing is like there's both, you know, using MCP from, you know, almost say like a user facing tool. Because in some ways, like GitHub Copilot is it's like a kind of a user facing tool, even if the users are developers. Versus using MCP as the integration layer for agents that you're writing in Python.
Pamela FoxAnd that's actually where we see a huge amount of uses of MCP, right? Because there's always this debate about MCP versus CLI. And yeah, locally, you can do whatever the heck you want, whatever works for you. But when it comes to putting agents into production and having them do communication with other servers when they're actually deployed to the cloud, everyone's using MCP there, right? Like for enterprise agent interconnectedness, it's all MCP. So what I tend to care most about is actually like, hey, can I write a Python agent framework that integrates with a Python agent that integrates with this MCP server?
Pamela FoxAnd is it going to work as expected?
Michael KennedySo people are excited about MCP probably like, oh, we're going to add this MCP thing to our topic. But I think a good question. And this one, everything we talk about, we've got to give it a little bit of a caveat of like, well, was it like last century effectively for this technology like last year? But you wrote about to MCP or not to MCP, you know, my weird joke. But there are reasons to not use it or not completely just leave it wide open, like create maybe more focus tools and then give those to your AI or to you.
Pamela FoxYeah. Yeah. And so here, this was an example for this was Playwright, right? So Playwright is a browser automation library and there's a Python package for it. It's fantastic. And I was already using Playwright quite heavily to write my end-to-end tests for web apps, right? And so you could actually, and there's a pytest-Playwright plugin. So it's very easy to, you know, write these end-to-end tests with Playwright. And they'll, like, automatically open a headless Chromium browser or Firefox browser.
Pamela FoxAnd they'll click around. They'll do something. And they'll verify it all works, right? Now, Playwright was one of the first MCP servers that came out. And people loved it because suddenly people discovered browser animation. Like a lot of people, I think, had never, never knew that you could like programmatically control a browser. And so the Playwright MCP, like, you know, it lowered the barrier for that where people were just like adding Playwright MCP server to their coding agents and, you know, having fun, you know, automatically shopping and all that stuff. So, you know, so I that that was, you know,
Pamela Foxone of the first big servers that you would hear a lot about. So I wanted to make an agent that would automatically triage my LinkedIn request to connect. So you go to a conference, you go back and you see your LinkedIn and all these people want to connect and they're all great people. But I find it like really boring to accept, accept.
Michael KennedyAnd every now and then it's careful, only connect with people you actually know. It's like, nope, accept, accept, accept. What am I going to be rude and tell them no? I don't know.
Pamela FoxWell, every so often you get kind of like a life coach in there. Yes. No,
Michael Kennedyyou do want to, yeah, like a recruiter. A recruiter. Yes,
Pamela Foxexactly.
Michael KennedyA book publisher, like, hey, would you like to write a book on this? No, if I want to write a book on it, we've already written a book on it.
Pamela FoxYeah, I have this fantasy that one day I'll write a book, so I accept those. But yeah, so I wanted to automate that. So my first experiment was doing a pedantic AI agent with the player and MCP server. And it was like incredibly inefficient because it would like go to the LinkedIn page. It would kind of click around, try to figure out what to do. Like it was like continually reading lots and lots of tokens because it wasn't sure exactly what to do. And it did like eventually succeed. But it wasn't a good experience because one, I had like a limited token budget at that time.
Pamela FoxAnd two, it was just like taking a really long time and it was sometimes working, sometimes not. And I was like, well, you know what? I'm trying to do the tasks, the same task every single time, every single day. why don't I just script this using the Python Playwright SDK, right? So I just, you know, I then, you know, scripted it using SDK. You know, at that point, I hand wrote it myself. These days, I just have Copilot open up the browser and figure it out. But then, so then it becomes like much more deterministic. And I only brought the LLM in to make the decision, right? So I have like the Python Playwright SDK code is like opening my LinkedIn,
Pamela Foxrestoring my auth cookies so that I'm like logged in and that had this browser. And then, you know, logging in, checking the requests. it gets a request. Okay. Then that's when it sends the information to an LLM only then. And it uses structured outputs and says, Hey, LLM, send me back some Jason that says, you know, accept, ignore, reject or undecided and give me the reason for it. Right. And I gave it a prompt that said, if it's a recruiter, a life coach or a financial consultant, uh, uh, that's basically the ignore, ignore. Yeah. Um, you know, it's very effective.
Pamela FoxSo, right. So that was, you know, that's, that's, you know that's something considered right like the re like mcp enables these uh you know you to create new mashups new permutations combinations new workflows um that you know you didn't already have in your head so it makes a lot of sense if you are deploying any sort of agent that has more open-ended tasks or that like a user is ultimately going to be used in order to do their uh you know their end tasks, right? So if there's any sort of open-endedness
Pamela Foxwhere it may have to do iteration and or shouldn't decide, you know, what it's going to do next, then an MSP server makes sense. But if you're doing the same thing every single time, and there's, you know, even like, you know, in the case of mine, where it's like all you're doing is tracing network requests, it's just not necessary to use MSP server and it can add more non-determinism to a workflow.
Michael KennedyYeah, and if you're worried about it going crazy and just instead of connecting, Oh, she wants to connect with people. Let me find everyone on LinkedIn and add them as a connection. You know what I mean? Like something like that. You could think, oh, the AI went crazy. What you've given it is a much more constrained and deterministic deal, right? Like it can only look at yes, no. I mean, today almost would be a Jev sort of thing.
Pamela FoxYeah, I could totally sub in a Jev model point, right? Like it would be a good scenario for a Jev model. Generally, like that's a whole other discussion. But yeah, generally, if anywhere we're using structured outputs where the result is a Boolean or a choice, you can go ahead and sub in JAP model, decisions API, Microsoft, we just launched decision one, you know, a decision model. And yeah, so then you don't even need a full LLM.
Michael KennedyYeah, exactly. But I do think a lot of times just giving an LLM a chance to like, I got it close, but let's go there. I'll give you an example from my world that I found really helpful is I have Hermes chilling on my Mac mini just doing a bunch of stuff and two YouTube channels and they really are just sort of replications of the podcast. So like the description is, it's a structured thing, but it comes from a whole bunch of different pieces of data out of the podcast and so on. But especially when I was live streaming more, it would be the stuff will go up.
Michael KennedyAnd then eventually when the results, like all the details of the episode are together, I got to go find all of that, the transcript, the description, the guest, the links, and then go and put them back. And I just sort of, I don't know, I lost track of that. And I had like two or 300 videos on each channel that were just episode seven, episode 200. You know what I mean? Like, oh no, I can't, I cannot navigate the YouTube studio. It's so slow on every little step. I can't go and do like 400 edits of this. And so I wanted my Hermes to just, anytime that sees something appear in the RSS feed
Michael Kennedyfor the podcast to instantly use the MCP server, find the details and rewrite the YouTube channel. Well, I don't want to just give it full access to my YouTube. So what I did is I used Claude Code to build a Python library that does the specific things I want it to do to YouTube. And I just gave Hermes the wheel. I said, here's the wheel. You install this if you need to. Then you manage the YouTube channel through it. And it does. And it's gone through all my hundreds of videos are all up to date. It's perfect. And if I change it on the website, it automatically changes on YouTube like 15 minutes later.
Michael KennedyCrazy.
Pamela FoxI think that's something that we can take advantage as Python developers is that it's easy for us to make our own tools that have a more restricted surface. For example, I keep meaning to VibeCode MSP server for my Pilates booking website, right? And I would just expose only the tools that I want, right? Like I wouldn't have, you know, I wouldn't have like my account. I would just have a, you know, like list this week sessions and book a session, right? So, you know, for, you know, especially for us as Python developers, this should be really easy. We just,
Pamela Foxyou know, prompt and be like, hey, you know, make this MSP server that does this and this, you know, and the hardest part is like auth, but there's, you know, there's ways to set that up. And then we can like feel confident pointing our agents at these tools, these servers or CLIs or however you've done them, and not worry about something bad happening, right? I know like many people are just kind of YOLOing with the current rage of Muse and Grok Pot and that. But then, of course, every day we see this like, you know, horrible thing that happened to someone because of that.
Michael KennedyIt RMRF'd our production database. Why did you give it access to your production database? What are you doing?
Pamela FoxSo, you know, we we're still in an advantage as developers where, you know, if we don't have already access to tools that allow us to do restriction, then we can, you know, we can buy our own tools for that. Many of these tools, like, you know, with MCP servers, a lot of them will have a bunch of tools and you could decide to give your agent access to just some of them and not others. Right. So, you know, MCP servers will actually like annotate which of the tools are read only. And you might say, hey, you know, you can only access the read only tools.
Pamela FoxAnd with like the GitHub MCP server, it has this notion of tool sets. And you can say you can say like, hey, you can you're only allowed to, you know, use such and such tool set.
Michael KennedyA little bit like restricting the job that you give them. Because when they come back, it goes to the MCP and it says, what can I do? And it's like, oh, well, here's 200 things you can do. You don't necessarily want it to do those 200 things just randomly. It might be like, like you said, list schedules, check my free time, book me this thing. You get three or four tools, you know what I mean? And so, yeah, you have a talk on just stricter schemas, increased reliability, and then also on directing them to the, like, oh, the filter of the tools one. That's it. Filtering tools from MCP servers. Basically how you can save tokens,
Michael Kennedymake it safer. There's some tools in Copilot, and this might also apply if you run Codex or Claude in the chat window in VS Code. I can't remember.
Pamela FoxYeah. So when I wrote this blog post here about filtering tools, this was, what, five? Ancient.
Michael KennedyIt's ancient.
Pamela FoxAncient. So at that time, like in early days, VS Code, actually if you selected more than I think it was like 175 tools, you'd like get this warning that's like, you have more than, you know, this many tools selected, like you may want to reduce them, right? And everyone would get so stressed out, like trying to decide which of them to like turn off and turn on. Now, a few things have changed since that time. One, obviously, our models have gotten, but two, the models have tool search and deferred tool loading built in. So both the new OpenAI models and Anthropic models, like from the last six months
Pamela Foxor so, they have a built-in capability that's actually was like trained into them as part of their RLHF, their post-training, where they know how to search for a tool and to load in a tool, like to use a deferred tool if they don't see a tool fully loaded in, right? So a lot of the modern agents will, if they're seeing that you're using a model, like our OpenAI model, they may choose to use that deferred tool. So these days,
Pamela FoxI don't really worry as much about having too many tools turned on because I know that there's, you know, much better handling of many tools. However, you know, if you like change your model to like a much worse model or something like, you know, then, you know, then you'll differ.
Michael KennedyYeah, I played around with one of the smaller, more self-hosted like models. It wasn't quite that, but it wasn't the frontier ones. And I gave it basically this project. I want you to change part of this. It's like a little bit later, it's like, I've removed all of this from your app. I'm like, no, no, no. Why did you think you'd delete all? I just wanted you to take a little part of it. And it just made me remember like, oh, yeah, it used to be like that all the time. It would just go crazy and do weird stuff. And that doesn't really happen very much with the top tier models these days. You're a little bit going to let it figure it out.
Michael KennedyI think that's some of the newer guidance is it's smart enough that you're just going to be in its way.
Pamela FoxYeah, it means like when you're designing MSP servers and skills, especially skills, like a lot of people, we have like these really, you know, long, verbose agent skills. And, you know, as the models get better, we, you know, may not need those skills. And especially if your skills are like over prescriptive. That's the big thing I've seen with agent skills lately is a skill. If a skill has too, too absolute of a statement in it. Like there was one I was using the other day that was like, oh, if they ask to do anything else besides what's in this file,
Pamela Foxthen say it is not possible. Right. And like that just like shut the agent down entirely. We're like I couldn't do things that otherwise I could have done with that API. So especially if you're like putting out agent skills to help people use like your API or your Python package, like everything needs to be very intentionally in there. And you need to be really, really careful about kind of any statements of constraints and limits because you might end up like hobbling the agent that otherwise would have been successful. But you accidentally held it back. Right. So don't don't hold back. Right.
Pamela FoxSkills should, you know, streamline things and give some hints and tips and whatnot. But usually skills should not be holding an agent back from successfully using an API.
Michael KennedyYeah. There's so many of those projects on GitHub. I love GitHub. But there's so many. There's thousands of here's my set of skills that will make it a lawyer. It'll make it an accountant or whatever. And you're like, I really don't want to put this. It's just going to pollute it with these ideas. I bet it would be better if I just let it be, you know?
Pamela FoxYeah. I mean, I'm happy to use my own skills. I think what I encourage people is find skills that people are talking about that you're in shit in. Fork them and then make them your own, right? Because like there's very few skills that I use from other people because, you know, I'm very opinionated. I want my workflows to work great for me. So I'm very happy with the skills that I maintain. Right. So I have presentation skills is my biggest repo of skills. And it's all just things related to making presentations like,
Pamela Foxyou know, generating slide decks and images for them, making transcripts, lots of stuff with YouTube. Right. Like transcribing them after. And then I have some other skills that have to do with like Azure deployment and stuff. So I'm happy with those skills because I have a lot of control over them. But it's so hard to use someone else's skill and have it be a great experience for you. So find a skill you like and then fork it. Make it your own.
Michael KennedyYeah, that's great advice. Absolutely. Now, let's talk CLIs for a minute. I think having CLIs used to be something that was just cool. So you could maybe script it or you could automate it. Like, I want to be able to do this thing with something. And if I make a CLI, then my Bash or my Ansible script or whatever can run it. So that's why we're going to have a CLI. And I think, honestly, CLIs these days are a really interesting escape hatch for agents and things like that. They're like, for some reason, they don't connect or they can't connect to an MCP.
Michael KennedyLike, maybe it's an app that only would have an MCP when it's running, but you only run it for a moment. So maybe give us your thoughts on this CLI story.
Pamela FoxYes, we have to have the required MCP versus CLI debate.
Michael KennedyWe do. It wouldn't be complete if we didn't do it.
Pamela FoxIt's contractually obliged. So, yeah, it's very interesting, actually. Like, my colleague has a project that's now called Scope. And in this project, they actually will set up scenarios to see how well an agent succeeds at a particular task in a particular environment. And the example that he gave in a talk the other day was using the GitHub CLI, GH command. and the GitHub MCP server and then just nothing at all compared to see like how long would it take? How successful would it be? Like would it?
Pamela FoxSo in this case, it was actually fixing a bug on one of my repos, which I didn't know he was going to do. So I was surprised to see this PR the morning of his talk. But yeah, so he's, you know, so it's comparing to see, you know, token efficiency, success, number of tool calls, all that stuff. Right. Now, the results from that particular experiment was that the GitHub CLI was the best, right? And I think a lot of people would actually predict that. It required less tokens overall and was successful more of the time.
Pamela FoxBut why is that? Part of that is because the agents, like LLMs, they know the GitHub CLI. The GitHub CLI is deep, deep in the weights, right? So they're very, very good at using the GitHub CLI. they really don't know the GitHub MCP server much at all, especially, you know, it changes over time. So it's very, it's really not surprising that they would do particularly well at using that CLI. So, you know, so the takeaway from that experiment is like in that particular example, yeah, it was more successful with CLI and there were some good kind of just specific learnings
Pamela Foxfor the GitHub MCP server about what it struggled with when it was calling that server. But generally what you should be doing is like ideally like always offering everything, right? So you should have a CLI probably. You should have an API, like a traditional API. Like we're not getting rid of APIs. Like APIs for HTTP services, like you still want an API, an SDK, a CLI. An MCP server, you know, is something that you've ideally optimized for agents. So you should be like running these tests with agents and saying, hey, for this scenario,
Pamela Foxfor all these range of scenarios, how successful are the agents when, you know, when using our MCP server? And also with agent skills, Like we do the same test with agent skills. So these are, you know, think of these as, you know, you're developing tools for agents and you really want to see how successful agents. You can do the same with CLI. Like you could, there are definitely people who are trying to optimize their CLIs more for agents. Like there was a great talk at PyAI last year from the folks at Astral where they were talking about that there was a lot of improvements they were going to make to like rough that
Pamela Foxmade it better for humans. But now they're like, well, what's the point? Humans aren't the ones running rough anymore. agents are running rough. They have all these ideas now about how they're going to make rough better for agents. So they may not even like bother. Like, I mean, yes, a couple of humans somewhere are running rough and actually looking at the results. But yeah, they're, you know, so now they're like much more focused on like optimizing the experience for agents.
Michael KennedyMy agent runs rough a lot. I don't know about yours, but I told the standing rule for all of my agents, if they're doing coding, that is, is whenever you're done, you're not done until Ruff format, ruff check, and ty check. All of those run without warnings, without errors. You know what I mean? Like if you introduce something that breaks those rules, those are easy to fix.
Pamela FoxRight. So that, I mean, you can put that in your agents.md. I oftentimes have that in my agents.md. You can even formalize like a lot of these coding agents have what's called like a hook, at least VS Code, we call it a hook. So you can have a hook that runs every single time and make sure that it runs. But a lot of times if you just put it in your agents.md, then that's enough instruction to, you know, to be, to be always taking those actions.
Michael KennedyYeah. If you want to be super old school, I mean, we're talking like 2024 old school, you could put it in a, a get pre-commit hook really.
Pamela FoxOh yeah, of course. That's pre-commit though. Cause we're like, you know, that's even like, like, like later in the process. Right. So it depends how often, right. So you've got hooks, you know, you've got hooks for the agent hooks are, are much more frequent. Right. So, um, you know, we don't know how often you're committing. Um, but you know, if you want it to happen every time I have an agent hook that just every time the agent stops, my kid giggles, it just plays a sound of her giggling. And it's, it's very cute. It just makes, you know, it just fills my life. Yeah. And then it's programmed so that if I leave the machine for more than a minute,
Pamela Foxthen it'll also like kind of giggle harder and tell me the name of the session so that I can decide whether to come back my machine. Right. So that way I can like do my kids laundry while Yeah, yeah,
Michael Kennedyyeah. That's super cool. So we're not complete with the CLI conversation. I think one of the things that I would like to encourage people who are building CLIs for agents, a lot of the things that are interesting about this is it's good for people and it's good for agents. like because they kind of both use English or natural spoken language, it's optimizing for one sort of helps the other a lot of times. Anyway, so my suggestion about this is that use a nice CLI framework like Typer or Click or even if you're using ArcPars, one of these built-in ones,
Michael Kennedymake sure there's lots of help documentation and stuff because then the first thing the agent might do is your CLI --help. Okay, I now understand this tool that I have almost completely. Let's go. You know what I mean? You don't have to do much more to teach it.
Pamela FoxYeah. And you can even ask the agent like for advice, like, hey, what would help you? Like, what would have helped you achieve that? Right. Like, you know, what were what were the issues with that? Yeah. It's interesting because like, you know, on the one hand, you think it's different to optimize something for an agent versus optimize it for a human. I think that is where some of the current tension is, especially with documentation. trying to figure out is our documentation you know who is the one actually reading it um you know so right now you know we have agents.md and that's definitely targeted agents we have readme.md and a lot of times i end up repeating similar things across both um and yeah and i think just right now
Pamela Foxit's just currently um attention i think there's some clis that will have kind of like an agent mode that might be like much more verbose for example because agents can actually i think there's actually it goes but sometimes they're like lesser rows because it depends if you're trying to reduce token count or just increase information right because uh you know lms can handle a fair bit of information like they can look through a whole python traceback error right and they can understand it whereas me like you know it takes me a while to get to like the right point in the error um so it's i think i i do find it like really fascinating to try and figure out
Pamela Foxyou know, as the world is moving so much right now, you know, what kind of entity are we optimizing our developer experiences for?
Michael KennedyI promised you a GitHub CLI story. Oh, yeah. So like a year ago or so, you know, not that long ago, I was doing something with Claude and I didn't tell it to go to GitHub. I didn't tell that there was a GitHub. It just happened to be in a Git repository and I was working zero intention to go talk to GitHub or anything and I said, okay, what if we did it this way? And it says to me, I'm not logged into VS code or any of the tools. I unknowingly was logged into the GitHub CLI. And I ask it a question. It
Michael Kennedygoes, well, three years ago, you added this GitHub issue and it talked about it this way, but I think it's changed. Like what, how, how did you get to my GitHub? I need to know what is going on here. And eventually like, oh, it used, I went back and looked like, oh, it used the GitHub CLI to explore the project and I didn't even tell it to him like what is it doing but in the end I was like you know what cool it brought something from a long time ago back to the future and like we're we're working
Pamela Foxon it's good but it freaked me out that that actually reminds me of when I was prepping for today's podcast I asked you know I was like hey you know it's a podcast it's about like Python and MCP and it immediately connected to my emails and my events and it found that you would like attach the Google Doc to the because I didn't know you'd made a Google Doc of what topics we were going to talk about. I had missed that. So it found the Google Doc. I was like, okay, I've made an entire like markdown document prepping you based on the Google Doc. I'm like, what Google Doc? What are you talking about? So, you know, you know these things.
Michael KennedyYeah,
Pamela Foxright. So like, it's, you know, these agents can be very powerful. They're very good at like, you know, searching through lots of data. I, you know, just even if it's just a read only tool, that's just searching through things like, you know, really, really helpful there because it's not going to get bored after the first page of you know search results right like it can it can keep going um so you know i think it is lowering the barrier to finding information um so you know we don't lose we can't we're not going to lose information as much in the big mess of things because we can have like these
Pamela Foxreally persistent agents that are looking for this so for me from like an information accessibility perspective uh i think that's really good because i've always been very good at like searching the web to the point where even at google people would ask me to search for things because they knew i like really good at googling even at google um and even like in high school i participated in web search competitions because i'm an absolute nerd i wait hold on what search engine do you all use
Michael Kennedyfor that um that wasn't like lycos or anything was it in high school this was for the science
Pamela Foxolympiad um and that would have been in 2001 so i don't even i think it would have been yahoo at that point okay yeah yeah yeah i was a big yahoo user yeah those were amazing times yeah So, but now, like, you know, now it's fine. I don't have to lord my searching skills anymore. Like now everyone can, you know, use their agent to really efficiently search and find great results, which is good. We're making information universally accessible and useful, which is, I think, the mission statement of Google. But it's, you know, someone's mission.
Michael KennedyYeah, absolutely. So final thought on CLIs. They don't have to necessarily be either or. I ended up writing a Talk Python podcast and courses CLI, which is kind of weird. But if you go, it's open source. If you go look at it, all it does is it basically calls the MCP endpoints and the actions are like composition of the tools. So it really is just a different interface to the MCP server. But I'm like, the things that want to automate this that don't have access to the MCP server, like how long would it take to write this? It wasn't that much work. So anyway,
Michael Kennedyyou can make them, they can coexist like cats and dogs living together.
Pamela FoxMm-hmm, mm-hmm. Yeah, I mean, that's the thing, is that there's some agents that can connect to MCP servers that can't connect to CLIs, because not all agents have a kind of coding execution environment.
Michael KennedyEspecially the cloud ones, right? If it's just a chat LLN, they're not on your machine.
Pamela FoxRight, yeah. And then there's other agents that can run CLI commands that for some reason they can't, MCP servers for whatever reason. So it's good to have both.
Michael KennedyAnd it's easier than it used to be. You should be like, all right, well, who's going to be on the CLI team? Now it's like, I know who's going to be on the CLI team.
Pamela FoxIt's all you. It's all me.
Michael KennedyLod, you're writing CLI today. Let's get going. Or chat or whatever, you know, co-pilot. Well, this has been super fun. I mean, let's close it out with some final thoughts. What do you think?
Pamela FoxYeah, so final thoughts. We haven't really got into the Python aspect of MCP. So things I would tell Python developers is that there is an official Python MCP SDK. and that is to get started. But there's also a fantastic package called Fast MCP, which builds on top of that MCP SDK. And that's from Prefect. And that adds all these like really neat integrations. So I personally always use Fast MCP, but you shouldn't use one of those, right? I was actually looking at a colleague's MCP server today
Pamela Foxand it was just like handwritten from scratch. And I was like, that's not necessary, right? Like, and if there is an official MCP SDK that passes the specification And then there's Fast MCP, which builds on that. So it also is conformant, but then adds all these additional features. So if you're starting today, you can point your agent at the Fast MCP docs and have it write an MCP server using the latest version of MCP protocol, which is a really nice improved version. It's stateless, so it's more scalable and direction ready.
Pamela FoxSo it is very easy to get started writing your first Python MCP server. And yeah, and there is also a conformance suite. So if for some reason you did write your own MCP server, you should at least run the conformance suite to see that it aligns the spec. But easiest way is start server and just give it a go and maybe just make one for fun just so you can understand how this new protocol works and it'll give you more insight as to when you're using MCP servers with your favorite agent.
Michael KennedyYeah, I don't think I really understood how MCP servers really worked until I built one.
Pamela FoxRight. Yeah. Which is like, I mean, that's one of the greatest way of, you know, learning how these things work. I didn't really understand how they worked until I built one, put it in production, and then had an error with it.
Michael KennedyWait, this is not working the way I expected. Uh-oh. What's going on?
Pamela FoxThat's when you really, really understand something, right?
Michael KennedyThat is for sure. That is for sure. Cool. All right. Well, Pamela, thanks for taking the time for being on the show. Always fun to...
Pamela FoxAll right. Awesome. See you next time.
Michael KennedySee ya. This has been another episode of Talk Python To Me. Thank you to our sponsors. Be sure to check out what they're offering. It really helps support the show. If you or your team needs to learn Python, we have over 270 hours of beginner and advanced courses on topics ranging from complete beginners to async code, Flask, Django, HTMX, and even LLMs. Best of all, there's no subscription in sight. Browse the catalog at talkpython.fm. And if you're not already subscribed to the show on your favorite podcast player,
Michael Kennedywhat are you waiting for? Just search for Python in your podcast player. We should be right at the top. If you enjoyed that geeky rap song, you can download the full track. The link is actually in your podcast player show notes. This is your host, Michael Kennedy. Thank you so much for listening. I really appreciate it. I'll see you next time.
NumPy already releases the GIL. So threads should already pay off for your NumPy code, right? Christopher Ariza tested that. He summed the rows of a 10,000 by 10,000 array on Python 3.14. Sequential took 360...
Where does your Python code actually run? A server in Virginia? A container in Frankfurt? Pyodide put Python into the browser. Cloudflare put the browser into the server. Combine the two and you get Python Workers, now...
The most popular Python project you've probably never heard of has 252,000 GitHub stars and merged over 1,800 pull requests in a single week. It's Hermes, a self-hosted AI agent you program just by talking to it. And it...
Which of your Python tools would you still pick if you started fresh today? For a long time, the answer was easy. The stack felt settled. AI has reopened almost every one of those choices. Some tools got faster. Others...
Do you know what's actually slow in your Python app? Or are you guessing? Until now, profiling Python meant a tracing profiler that made your code 2 to 3 times slower. Or a third-party tool that broke with every new...