Shadowing-Übung: MCP Just Got a Whole Lot Better - Englisch Sprechen Lernen mit Video

Laden...
1
MCP is blowing up right now.
2
Agents' usage of MCP is increasing exponentially and it's not showing any signs of slowing down.
3
But at the same time, many agents are now changing the way that they handle tools
4
and starting to take over responsibilities that used to belong to the server.
5
So what does all of this mean for the way that we build MCP servers?
6
Well, let's break it all down.
7
When MCP first hit the scene, one of the most common approaches for building MCP servers was
8
to just map each of your API endpoints to its own tool.
9
And by doing this, an agent was able to access the full range of your API surface area.
10
And this implementation worked, but it presented two major issues.
11
First, if your API had hundreds of endpoints, then that meant your MCP server had hundreds of tools.
12
And all of these tools would be loaded into the context window up front, meaning that before you even started your session, your context window could have been completely bloated by MCP tools.
13
And secondly, if you had lots of endpoints that were similar to each other, an agent might end up getting confused and not pick the right tool for the job.
14
In order to solve some of these problems, a lot of MCP servers adopted a layered tool call approach.
15
So now, instead of listing out hundreds of tool calls, you might just have two or three, You might have a tool to search all of the available endpoints,
16
a tool to inspect the definition of a specific endpoint, and a tool to execute the request.
17
This pattern has seen a lot of adoption, but this is now where the big change happens.
18
Traditionally, this pattern was implemented on the MCP server side.
19
But more recently, many MCP clients, especially many popular coding agents, are implementing this pattern on the client side.
20
The pattern is now called progressive tool discovery, and it's a recommended best practice for MCP clients.
21
In addition, a lot of these agents, like Codex or ClaudeCode, are implementing what's called programmatic tool calling, also known as code mode.
22
With code mode, instead of calling tools one at a time, the agent will go ahead and write a script that chains those tools together in a sandbox environment.
23
The script then runs in the sandbox, and then only the final result is returned back to the model.
24
Between progressive discovery handling tool call selection and then code mode handling tool composition,
25
the clients are now starting to take more ownership of the problems that servers originally were trying to solve.
26
So surely this means we can just go back to the
27
original method of doing a one-to-one mapping of API endpoints to tool calls, right?
28
Not quite.
29
While an agent certainly can accomplish everything it needs to just by having access to tools that represent every API endpoint,
30
that isn't necessarily always the most efficient way to interact with an API.
31
For any given API, there are often very common tasks or workflows that require stringing together multiple API calls.
32
And if an agent has to figure out that chain on its own every single time, that's a lot of wasted tokens.
33
And this is the same reason that SDKs exist.
34
They give you the raw endpoints but also bundle common workflows into single operations.
35
And we can apply that same idea to the tools that we expose through our MCP server.
36
So for example, with Neon, we have this idea of creating a branch.
37
But it turns out that creating a branch is actually three separate API calls under the hood.
38
You have to first create the branch itself, but then make a separate call to attach compute resources to the branch, and make a third call to get the connection string.
39
In the SDK, we bundle those three API calls into one method called createWithCompute.
40
So as this relates to our MCP server, in order to give MCP clients the most token-efficient path possible,
41
it's helpful to expose operations like this that they can take advantage of in some of these common use cases.
42
Of course, if your API is relatively simple and straightforward, a one-to-one mapping might be totally fine.
43
But for something like Neon, where there's some complexity in provisioning infrastructure,
44
these ergonomic shortcuts save the agent from making the same mistakes over and over again.
45
So at Neon, we have an SDK which is generated from from our open API spec.
46
So that way it covers every API endpoint.
47
But on top of that generated layer, we also have another thinner layer that adds the ergonomic methods that we were just talking about, things like create with compute.
48
From here, in order for this to be usable by agents, we need to convert all of these methods into tool calls.
49
So that's exactly what we did with a package that we call neon tools.
50
So that includes both the raw endpoints and the ergonomic workflows, all as tool calls.
51
And by virtue of pulling these tools out into a separate package, we're able to serve a few different use cases.
52
First and foremost, in the Neon MCP server, the server imports this package to surface all of these tools to any MCP client.
53
But on top of that, we can also take this package and build adapters around it for different agent frameworks.
54
So for example, we have adapters for both Mastra and Eve for anyone building custom agents with those frameworks.
55
And one more thing worth noting is that these tools are organized into categories, so that way you can scope down exactly which tools you want the agent to have access to.
56
All in all, the big idea here is that the server is controlling what tools are available,
57
but then the client handles discovering and executing those tools in whatever way it sees fit.
58
All of this is open source, so if you want to dive through the code and see exactly how everything is implemented, I'll have some links down in the description for you to check out.
59
ways that you're approaching building your own MCP server?
60
Let us know down in the comments.
61
Thank you so much for watching and I'll see you in the next one.

Über diese Lektion

Was ist die Shadowing-Technik?

Shadowing ist eine wissenschaftlich fundierte Sprachlerntechnik, die ursprünglich für die professionelle Dolmetscherausbildung entwickelt und durch den Polyglotten Dr. Alexander Arguelles populär gemacht wurde. Die Methode ist einfach aber wirkungsvoll: Du hörst englisches Audio von Muttersprachlern und wiederholst es sofort laut — wie ein Schatten, der dem Sprecher mit nur 1–2 Sekunden Verzögerung folgt. Anders als passives Hören oder Grammatikübungen zwingt Shadowing dein Gehirn und deine Mundmuskulatur, gleichzeitig echte Sprachmuster zu verarbeiten und zu reproduzieren. Studien zeigen, dass es Aussprachegenauigkeit, Intonation, Rhythmus, verbundene Sprache, Hörverständnis und Sprechflüssigkeit signifikant verbessert — was es zu einer der effektivsten Methoden für die IELTS Speaking-Vorbereitung und reale englische Kommunikation macht.