Skip to content

Update dependencies, logging setup, and version bump #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ repos:
hooks:
- id: yamlfmt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.10
rev: v0.10.0
hooks:
- id: ruff
args: [--fix]
@@ -26,7 +26,7 @@ repos:
hooks:
- id: mypy
args: []
additional_dependencies: ["mcp>=1.3.0", "youtube-transcript-api>=1.0.1", "pytest>=8.3.5", "pytest-mock>=3.14"]
additional_dependencies: ["mcp>=1.3,<1.4", "youtube-transcript-api>=1.0.1", "pytest>=8.3.5", "pytest-mock>=3.14"]
- repo: local
hooks:
- id: pytest
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ requires = [ "hatchling" ]

[project]
name = "mcp-youtube-transcript"
version = "0.2.0"
version = "0.2.1"
description = "MCP server retrieving transcripts of YouTube videos"
readme = "README.md"
authors = [
@@ -23,7 +23,7 @@ classifiers = [
]
dependencies = [
"click>=8.1.8",
"mcp>=1.3",
"mcp>=1.3,<1.4",
"pydantic>=2.10.6",
"youtube-transcript-api>=1.0.1",
]
@@ -47,7 +47,7 @@ line-length = 120
indent = 4

[tool.bumpversion]
current_version = "0.2.0"
current_version = "0.2.1"
commit = true
pre_commit_hooks = [
"uv sync",
7 changes: 3 additions & 4 deletions src/mcp_youtube_transcript/__init__.py
Original file line number Diff line number Diff line change
@@ -5,12 +5,10 @@
# This software is released under the MIT License.
#
# http://opensource.org/licenses/mit-license.php

from logging import Logger
import logging
from typing import Final

import click
from mcp.server.fastmcp.utilities import logging

from mcp_youtube_transcript.server import new_server

@@ -39,7 +37,8 @@ def main(
) -> None:
"""YouTube Transcript MCP server."""

logger: Final[Logger] = logging.get_logger(__name__)
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)

logger.info("starting Youtube Transcript MCP server")
mcp = new_server(webshare_proxy_username, webshare_proxy_password, http_proxy, https_proxy)
4 changes: 2 additions & 2 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.