Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Docs: add a PydanticAI example for consuming the Openapi MCP server

未关闭
#16 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
55/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
停滞
技术栈
python
领域
documentation

调研方向

Search the repository for existing Python MCP client examples and the server’s token configuration. Add one concise PydanticAI example covering server startup, token setup, and a model request that calls an MCP tool; explain whether headers or the ?token= fallback is needed. Done when the example is documented, keeps dependencies minimal, and can guide a user through the integration.

由索引模型根据 Issue 内容生成。

描述

Opened by @francescobianco from local draft 06-pydanticai-example.md.

Summary

I tried to plug this server into a PydanticAI-based app and realized there is no example showing how to consume the MCP endpoint from modern Python agent frameworks. A focused example would help users evaluate this project much faster.

Reproduction

  1. Set up a small PydanticAI app.
  2. Try to connect it to this MCP server.
  3. Search the repo for "pydanticai" and find no usage guidance.

Expected

A small example showing:

  • server startup
  • token configuration
  • one model request that can call an MCP tool

Actual

No documented PydanticAI integration path exists.

Why this is a good first issue

This is a self-contained docs/example contribution and fits well with the existing Python-first positioning of the package.

Suggested acceptance criteria

  • Add one concise PydanticAI example.
  • Keep dependencies minimal.
  • Mention whether the client needs headers support or the ?token= fallback.
主要语言
Python
星标
22
派生
4
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

openapi/mcp-server 的其他 Issue

查看 openapi/mcp-server 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。