Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

Add labeler

Jeremiah Lowin76ca57a04db3
diff --git a/.github/labeler.yml b/.github/labeler.yml
new file mode 100644
index 000000000..f7e6703b7
--- /dev/null
+++ b/.github/labeler.yml
@@ -0,0 +1,29 @@
+documentation:
+ - changed-files:
+ - any-glob-to-any-file: "docs/**"
+
+example:
+ - changed-files:
+ - any-glob-to-any-file:
+ - "examples/**"
+
+tests:
+ - changed-files:
+ - any-glob-to-any-file: "tests/**"
+
+"component: HTTP":
+ - changed-files:
+ - any-glob-to-any-file: "src/fastmcp/server/http.py"
+
+"component: client":
+ - changed-files:
+ - any-glob-to-any-file: "src/fastmcp/client/**"
+
+"contrib":
+ - changed-files:
+ - any-glob-to-any-file: "src/fastmcp/contrib/**"
+
+"component: openapi":
+ - changed-files:
+ - any-glob-to-any-file:
+ - "src/**/*openapi*.py"
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
new file mode 100644
index 000000000..52474c6a6
--- /dev/null
+++ b/.github/workflows/labeler.yml
@@ -0,0 +1,12 @@
+name: "Pull Request Labeler"
+on:
+ - pull_request_target
+
+jobs:
+ labeler:
+ permissions:
+ contents: read
+ pull-requests: write
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/labeler@v5