Skip to content

Add Prefect docs MCP server proxy functionality - #25

Merged
desertaxle merged 2 commits into
mainfrom
proxy-docs-mcp
Sep 22, 2025
Merged

desertaxle merged 2 commits into
mainfrom
proxy-docs-mcp

Conversation

@desertaxle

@desertaxle desertaxle commented Sep 22, 2025 •

Copy link
Copy Markdown
Member

Summary

This PR exposes a tool to search the Prefect docs. This should help clients using this MCP server to write better Prefect code and interact with the CLI and other Prefect concepts.

Changes

Core Implementation

  • Add ProxyClient import from fastmcp.server.proxy
  • Create docs proxy using FastMCP.as_proxy() pointing to https://docs.prefect.io/mcp
  • Mount proxy with "docs" prefix using mcp.mount()

Tools Added

  • docs_SearchPrefect: Search the Prefect knowledge base for documentation, code examples, and API references

🤖 Generated with Claude Code

Mount the Prefect docs MCP server at https://docs.prefect.io/mcp as a proxy
with "docs" prefix to expose documentation search tools alongside existing
Prefect API tools.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@desertaxle
desertaxle requested a review from Copilot September 22, 2025 19:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds Prefect documentation search capability by mounting a Prefect docs MCP server as a proxy, enabling users to search the Prefect knowledge base alongside existing API tools.

Key changes:

  • Mount Prefect docs MCP server proxy at https://docs.prefect.io/mcp with "docs" prefix
  • Add comprehensive test coverage for proxy functionality and original feature preservation
  • Update existing tests to accommodate additional tools from the mounted proxy

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/prefect_mcp_server/server.py Adds ProxyClient import and mounts docs proxy with "docs" prefix
tests/test_server.py Updates tool count assertions and adds tests for prompts and proxy integration
tests/test_docs_proxy.py Comprehensive test suite for docs proxy functionality and feature preservation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@desertaxle
desertaxle marked this pull request as ready for review September 22, 2025 20:02

@chrisguidry chrisguidry left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:easy_button: Noice!

@desertaxle
desertaxle merged commit 77d341b into main Sep 22, 2025
9 of 10 checks passed
@desertaxle
desertaxle deleted the proxy-docs-mcp branch September 22, 2025 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants