Skip to content

Commit cefb91d

Browse files
authored
Merge pull request #32 from jkawamoto/bump
Bump version to v0.4.0
2 parents d3637db + d76abe5 commit cefb91d

File tree

5 files changed

+478
-263
lines changed

5 files changed

+478
-263
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v5.0.0
3+
rev: v6.0.0
44
hooks:
55
- id: check-merge-conflict
66
- id: check-yaml
77
- id: check-toml
88
- id: end-of-file-fixer
99
- id: trailing-whitespace
1010
- repo: https://github.com/google/yamlfmt
11-
rev: v0.17.0
11+
rev: v0.17.2
1212
hooks:
1313
- id: yamlfmt
1414
- repo: https://github.com/astral-sh/ruff-pre-commit
15-
rev: v0.11.13
15+
rev: v0.12.8
1616
hooks:
1717
- id: ruff
1818
args: [--fix]
@@ -22,7 +22,7 @@ repos:
2222
hooks:
2323
- id: pyproject-fmt
2424
- repo: https://github.com/pre-commit/mirrors-mypy
25-
rev: v1.16.0
25+
rev: v1.17.1
2626
hooks:
2727
- id: mypy
2828
args: []

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ For more information,
5252
see: [For Claude Desktop Users - Model Context Protocol](https://modelcontextprotocol.io/quickstart/user).
5353

5454
### Installing via Smithery
55+
> [!NOTE]
56+
> When using this method, you will be utilizing servers hosted by Smithery.
57+
> Requests and responses will be routed through their servers.
58+
> Please refer to the [Smithery Privacy Notice](https://smithery.ai/privacy) for information
59+
> about their data handling practices.
60+
5561
The [Smithery CLI](https://github.com/smithery-ai/cli) enables the installation of MCP servers on various clients.
5662

5763
For instance, to install this server for Claude Desktop, execute the following command:

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ requires = [ "hatchling" ]
55

66
[project]
77
name = "mcp-youtube-transcript"
8-
version = "0.3.5"
8+
version = "0.4.0"
99
description = "MCP server retrieving transcripts of YouTube videos"
1010
readme = "README.md"
1111
authors = [
@@ -52,7 +52,7 @@ line-length = 120
5252
indent = 4
5353

5454
[tool.bumpversion]
55-
current_version = "0.3.5"
55+
current_version = "0.4.0"
5656
commit = true
5757
pre_commit_hooks = [
5858
"uv sync",

tests/test_mcp.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ async def test_list_tools(mcp_client_session: ClientSession) -> None:
4646
async def test_get_transcript(mcp_client_session: ClientSession) -> None:
4747
video_id = "LPZh9BOjkQs"
4848

49-
title = fetch_title(video_id, "en")
5049
expect = Transcript(
51-
title=title,
50+
title=fetch_title(video_id, "en"),
5251
transcript="\n".join((item.text for item in YouTubeTranscriptApi().fetch(video_id))),
5352
)
5453

@@ -70,9 +69,8 @@ async def test_get_transcript(mcp_client_session: ClientSession) -> None:
7069
async def test_get_transcript_with_language(mcp_client_session: ClientSession) -> None:
7170
video_id = "WjAXZkQSE2U"
7271

73-
title = fetch_title(video_id, "ja")
7472
expect = Transcript(
75-
title=title,
73+
title=fetch_title(video_id, "ja"),
7674
transcript="\n".join((item.text for item in YouTubeTranscriptApi().fetch(video_id, ["ja"]))),
7775
)
7876

@@ -96,9 +94,8 @@ async def test_get_transcript_fallback_language(
9694
) -> None:
9795
video_id = "LPZh9BOjkQs"
9896

99-
title = fetch_title(video_id, "en")
10097
expect = Transcript(
101-
title=title,
98+
title=fetch_title(video_id, "en"),
10299
transcript="\n".join((item.text for item in YouTubeTranscriptApi().fetch(video_id))),
103100
)
104101

@@ -140,9 +137,8 @@ async def test_get_transcript_not_found(mcp_client_session: ClientSession) -> No
140137
async def test_get_transcript_with_short_url(mcp_client_session: ClientSession) -> None:
141138
video_id = "LPZh9BOjkQs"
142139

143-
title = fetch_title(video_id, "en")
144140
expect = Transcript(
145-
title=title,
141+
title=fetch_title(video_id, "en"),
146142
transcript="\n".join((item.text for item in YouTubeTranscriptApi().fetch(video_id))),
147143
)
148144

0 commit comments

Comments
 (0)