Skip to content

Commit 6a7b420

Browse files
committed
Merge branch 'fix-loose-extra' of github.com:modelcontextprotocol/python-sdk into fix-loose-extra
2 parents 6784912 + 6e3d2df commit 6a7b420

File tree

3 files changed

+72
-1
lines changed

3 files changed

+72
-1
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Source: https://github.com/anthropics/claude-code-action/blob/main/docs/code-review.md
2+
name: Claude Code Review
3+
4+
on:
5+
pull_request:
6+
types: [opened, synchronize, ready_for_review, reopened]
7+
8+
jobs:
9+
claude-review:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
pull-requests: read
14+
issues: read
15+
id-token: write
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 1
22+
23+
- name: Run Claude Code Review
24+
id: claude-review
25+
uses: anthropics/claude-code-action@v1
26+
with:
27+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
28+
plugin_marketplaces: "https://github.com/anthropics/claude-code.git"
29+
plugins: "code-review@claude-code-plugins"
30+
prompt: "/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}"

.github/workflows/claude.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Source: https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
2+
name: Claude Code
3+
4+
on:
5+
issue_comment:
6+
types: [created]
7+
pull_request_review_comment:
8+
types: [created]
9+
issues:
10+
types: [opened, assigned]
11+
pull_request_review:
12+
types: [submitted]
13+
14+
jobs:
15+
claude:
16+
if: |
17+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
18+
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
19+
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
20+
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
21+
runs-on: ubuntu-latest
22+
permissions:
23+
contents: read
24+
pull-requests: read
25+
issues: read
26+
id-token: write
27+
actions: read # Required for Claude to read CI results on PRs
28+
steps:
29+
- name: Checkout repository
30+
uses: actions/checkout@v4
31+
with:
32+
fetch-depth: 1
33+
34+
- name: Run Claude Code
35+
id: claude
36+
uses: anthropics/claude-code-action@v1
37+
with:
38+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
39+
use_commit_signing: true
40+
additional_permissions: |
41+
actions: read

src/mcp/types/_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ class GetTaskPayloadResult(Result):
476476
For example, a tools/call task would return the CallToolResult structure.
477477
"""
478478

479-
model_config = ConfigDict(extra="allow")
479+
model_config = ConfigDict(extra="allow", alias_generator=to_camel, populate_by_name=True)
480480

481481

482482
class CancelTaskRequestParams(RequestParams):

0 commit comments

Comments
 (0)