But that's not the interesting part of using polygon. 但这不是使用多边形的有趣部分。
The interesting part is if you have a paid plan and you want to use their MCP server with all of the 有趣的是，如果您有付费计划并且想要将他们的 MCP 服务器与所有
capabilities. 能力。
And so I'm going to show this to you just so you get a sense for it and totally optional. 因此，我将向您展示这一点，以便您对其有所了解，并且完全是可选的。
But if you wish, you could sign up even just for the first month, to experience this for yourself. 但如果您愿意，您甚至可以只注册第一个月，亲自体验一下。
So here are the parameters that we're providing for our MCP tool. 以下是我们为 MCP 工具提供的参数。
It is UVC, so it's a Python based MCP server. 它是UVC，所以它是一个基于Python的MCP服务器。
And you can see interestingly that the way it works is that you can you can provide a link to the GitHub 有趣的是，你可以看到它的工作方式是你可以提供 GitHub 的链接
repo which contains this MCP server. 包含此 MCP 服务器的存储库。
And you can use that. 你可以使用它。
So we're calling MCP polygon from this repo. 所以我们从这个存储库中调用 MCP 多边形。
So it doesn't have to be something that's like pip installable. 所以它不一定是像 pip 可安装的东西。
It can be something that is just straight from a repo. 它可以是直接来自存储库的东西。
And obviously if you do something like this then you need to do your research. 显然，如果你做了这样的事情，那么你需要进行研究。
You need to go and check that this genuinely is the official GitHub repo for polygon, the company behind 你需要去检查一下这是否真的是 Polygon（背后的公司）的官方 GitHub 存储库
polygon IO, and make sure you're comfortable with the community traction, the number of stars, the 多边形 IO，并确保您对社区吸引力、星星数量、
kind of support it has, and so on. 它拥有什么样的支持等等。
Just as you would do if you were going to clone somebody else's repo. 就像您要克隆其他人的存储库时所做的那样。
The same kind of due diligence. 同样的尽职调查。
Exactly. 确切地。
And so I have done that, of course. 当然，我已经这么做了。
And I'm satisfied with this myself. 而我自己对此很满意。
But but you should too. 但你也应该这样做。
And then I'm passing in my polygon key. 然后我传递我的多边形密钥。
And then I'm going to ask, what tools do you provide me this MCC server. 然后我要问，你们为我这个MCC服务器提供了什么工具。
So we'll run this. 所以我们将运行这个。
And wowza there's a lot of them. 哇，他们有很多。
So there's a bunch of different tools. 所以有很多不同的工具。
There's a lot that the model is going to be allowed to do. 该模型将被允许做很多事情。
It includes, uh, doing things like getting the last trade. 它包括，呃，做一些事情，比如获得最后一笔交易。
It has crypto data in here, as well as ethics data, getting market status, tickers, dividends, 这里有加密数据，以及道德数据，获取市场状态、股票行情、股息、
conditions, financials. 条件、财务。
There's there's a there's a lot to get here. 这里有很多东西可以到达这里。
Uh, and so this this is something which which equips our agent with lots of capabilities to analyse 呃，所以这为我们的代理提供了很多分析能力
financial markets directly. 直接金融市场。
Now, you can give all of these tools to your agent, even if you're on the free plan. 现在，即使您使用的是免费计划，您也可以将所有这些工具提供给您的代理。
But if you do that, most of these will respond and say this tool isn't available for people on the 但如果你这样做，大多数人都会回应并说这个工具不适用于网络上的人
free plan. 免费计划。
So it's a bit of a bore. 所以这有点无聊。
Uh, what you have to do is, uh, is is either just only provide the one tool, as I did for the free 呃，你要做的是，呃，要么只提供一个工具，就像我免费做的那样
plan example, uh, or sign up for the paid plan. 计划示例，呃，或者注册付费计划。
Okay. 好的。
So let's try these out. 那么让我们尝试一下这些。
So, um, as I say, because if you're on the free plan, we have to be specific that it should only 所以，嗯，正如我所说，因为如果您使用免费计划，我们必须具体说明它应该只
use the get snapshot ticker tool. 使用获取快照行情工具。
And so I will run this and have it hopefully use the right tool. 所以我将运行它并希望它使用正确的工具。
So so we're now equipping the agent with all of those tools that we just saw. 因此，我们现在正在为代理配备我们刚才看到的所有工具。
And uh oh. 还有呃哦。
And it hasn't used the right tool. 而且它没有使用正确的工具。
That's super interesting. 这太有趣了。
Actually let me also I'm going to upgrade the model while I'm doing it, even though I said get snapshot 实际上让我也将在我这样做时升级模型，即使我说获取快照
ticker. 股票行情。
Let's try it a second time. 让我们再试一次。
It's always good to see her agents being unpredictable. 看到她的经纪人不可预测总是一件好事。
Um, let's see whether it gets it right the second time and uses the right ticker. 嗯，让我们看看它第二次是否正确并使用了正确的代码。
It does. 确实如此。
Uh, so I'm tempted to, to go and rerecord this, but I won't, because I think it's important to see 呃，所以我很想去重新录制这个，但我不会，因为我认为看到这一点很重要
that with a genetic AI. 与基因人工智能。
You do get this, this sometimes ill behavior when it doesn't correctly follow the prompts, and you 你确实明白这一点，当它没有正确遵循提示时，有时会出现不良行为，并且你
need to be able to account for that in what you do. 需要能够在你所做的事情中考虑到这一点。
And also, I don't know if this is what fixed it, but upgrading to a more recent model, uh, did did 而且，我不知道这是否解决了这个问题，但是升级到更新的型号，呃，确实解决了
appear in this case to make it perform better, but now it did use the right tool, and it got the latest 在这种情况下出现是为了让它表现更好，但现在它确实使用了正确的工具，并且它得到了最新的
share price at $195. 股价为195美元。
Okay, so if you do have a paid plan then you can now add this to your M file. 好的，如果您确实有付费计划，那么您现在可以将其添加到您的 M 文件中。
You just have to in your env file say polygon plan equals paid. 你只需要在你的环境文件中说多边形计划等于付费。
That makes sure that I switch it to use the right tools. 这确保我切换它以使用正确的工具。
And if you do decide to go all the way and have the premium real time plan, you can set this to real 如果您确实决定一路走下去并拥有高级实时计划，则可以将其设置为真实
time. 时间。
And I'll be sure to use all of the real time APIs. 我一定会使用所有实时 API。
But I have got just this paid plan, so I'm going to go and update my M file right now. 但我只有这个付费计划，所以我现在要去更新我的 M 文件。
Okay, so now if I now run this cell, it should confirm that I'm on the right plan. 好的，现在如果我运行这个单元，它应该确认我的计划是正确的。
Let's see. 让我们来看看。
Yep. 是的。
You've chosen to subscribe to the paid polygon plan. 您已选择订阅付费多边形计划。
And so we'll be looking at prices on a 15 minute delay. 因此，我们将查看延迟 15 分钟的价格。
And that for the time being is uh, is the, the uh, our foray into MCP servers. 目前，呃，呃，我们进军 MCP 服务器。
Um, but there are so many more and that's where I will get to with the exercises. 嗯，但是还有很多，这就是我将要进行练习的地方。
Um, so I would suggest that you go on to the marketplaces and look for tools which interest you and 嗯，所以我建议你去市场寻找你感兴趣的工具
experiment with them right here, try and use. 在这里进行实验，尝试并使用。
I say here all three approaches. 我在这里说的是所有三种方法。
You'll probably find, like me, that there actually aren't easily available approaches with remote 您可能会像我一样发现，实际上没有简单可用的远程方法
MCP servers, so you might not want to go there unless you are already paying user of something like MCP 服务器，所以你可能不想去那里，除非你已经是类似的付费用户
asana. 体式。
Um, but assuming that you're not, then then go with those first two approaches. 嗯，但假设你不是，那么就采用前两种方法。
Find examples of MCP servers that will run locally and only stay locally. 查找将在本地运行且仅驻留在本地的 MCP 服务器示例。
Do things on your local computer. 在本地计算机上执行操作。
Find examples that call the web and find examples of MCP servers that are Python based and those that 查找调用 Web 的示例并查找基于 Python 的 MCP 服务器示例以及那些
are JavaScript based, and try them all out. 都是基于 JavaScript 的，并且都尝试一下。
Experiment with them and have fun giving capabilities to your agents and seeing them taking advantage 尝试它们并享受为您的代理提供能力并看到他们利用它们的乐趣
of them. 其中。
Well, hopefully you took me up on that. 好吧，希望你能接受我。
You did some exercises and you've added more MCP servers. 您做了一些练习，并且添加了更多 MCP 服务器。
And that's a wrap on day three of week six. 这是第六周第三天的总结。
And that means that we're about to head into the capstone project of building a trading floor. 这意味着我们即将进入建设交易大厅的顶峰项目。
And I can't wait to show you this. 我迫不及待地想向你展示这个。
It's such a cool project. 这是一个很酷的项目。
I'll see you next time. 下次见。