1 Commits

Author SHA256 Message Date
0884d2d90f Initial import
Package originated from science:machinelearning:mcp/mcphost

Signed-off-by: Egbert Eich <eich@suse.com>
2025-10-30 13:46:26 +01:00
7 changed files with 34 additions and 124 deletions

View File

@@ -1,7 +0,0 @@
<services>
<service name="go_modules" mode="manual">
<param name="replace">
golang.org/x/crypto=golang.org/x/crypto@v0.45.0
</param>
</service>
</services>

BIN
mcphost-0.31.1-vendor.tar.gz LFS Normal file

Binary file not shown.

BIN
mcphost-0.31.1.tar.gz LFS Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -1,47 +1,3 @@
-------------------------------------------------------------------
Fri Jan 2 17:24:56 UTC 2026 - Egbert Eich <eich@suse.com>
- Fix CVEs
* GO-2025-4135 (CVE-2025-47914)
SSH Agent servers do not validate the size of messages
when processing new identity requests, which may cause
the program to panic if the message is malformed due to
an out of bounds read.
* GO-2025-4116 (CVE-2025-47913)
SSH clients receiving SSH_AGENT_SUCCESS when expecting a
typed response will panic and cause early termination of
the client process.
* GO-2025-4134 (CVE-2025-58181, bsc#1253952).
SSH servers parsing GSSAPI authentication
requests do not validate the number of mechanisms
specified in the request, allowing an attacker to cause
unbounded memory consumption.
-------------------------------------------------------------------
Wed Dec 10 11:52:10 UTC 2025 - Darragh O'Reilly <doreilly@suse.com>
- Update to 0.32.0
Feat: Add option to require approval before tool.
Bump github.com/cloudwego/eino to fix panic.
Changes to 0.31.4:
Update dependencies.
Changes to 0.31.3:
Fix format & update models.
Changes to 0.31.2:
Fix: suppress health check logging to debug output only/
Changes to 0.31.1:
Update dependency update mcp-go.
-------------------------------------------------------------------
Wed Nov 5 10:17:13 UTC 2025 - Sai Karthik Karra <kskarthik@disroot.org>
- Add shell completions & basic %check during build time.
-------------------------------------------------------------------
Fri Oct 24 11:26:42 UTC 2025 - Ana Guerrero <ana.guerrero@suse.com>
- Modernise packaging
-------------------------------------------------------------------
Fri Oct 10 12:43:31 UTC 2025 - Egbert Eich <eich@suse.com>

View File

@@ -14,89 +14,50 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global provider github
%global provider_tld com
%global project mark3labs
%global repo mcphost
%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
%global name %{provider}-%{provider_tld}-%{project}-%{repo}
%{!?goprep: %define goprep go version #}
%{!?gobuild: %define gobuild go build -buildmode=pie -mod=vendor}
%{!?goinstall: %define goinstall install -D -m 0755 %{repo} %{buildroot}%{_bindir}/%{repo}}
Name: mcphost
Version: 0.32.0
Release: 0
Name: %repo
Version: 0.31.1
Release: 4.mge
Summary: A CLI host application for the Model Context Protocol (MCP)
License: MIT and Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause
License: MIT and Apache-2.0 and BSD-2-Clause and BSD-3-Clause
URL: https://github.com/mark3labs/mcphost
Source0: https://github.com/mark3labs/mcphost/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: golang(API) >= 1.24
Source0: https://%{import_path}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: %{name}-%{version}-vendor.tar.gz
BuildRequires: go >= 1.24
%if 0%{?suse_version} >= 1500
BuildRequires: golang-packaging
%endif
%description
A CLI host application that enables Large Language Models (LLMs) to interact
with external tools through the Model Context Protocol (MCP). Currently
supports both Claude 3.5 Sonnet and Ollama models.
%package bash-completion
Summary: Bash Completion for %{name}
Group: System/Shells
Requires: bash-completion
BuildArch: noarch
Requires: %{name}
Supplements: (%{name} and bash-completion)
%description bash-completion
The official bash completion script for %{name}, generated during the build.
%package zsh-completion
Summary: ZSH Completion for %{name}
Group: System/Shells
BuildArch: noarch
Requires: %{name}
Supplements: (%{name} and zsh)
%description zsh-completion
The official zsh completion script for %{name}, generated during the build.
%package fish-completion
Summary: Fish Completion for %{name}
Group: System/Shells
BuildArch: noarch
Requires: %{name}
Supplements: (%{name} and fish)
%description fish-completion
The official fish completion script for %{name}, generated during the build.
%prep
%autosetup -a 1
# Setup the main source code
%setup -q -n %{name}-%{version}
%setup -q -D -T -a 1 -n %{name}-%{version}
sed -i -e "s/go1.24.5/go1.24/g" go.mod
%{goprep} %{import_path}
%build
go build \
-mod=vendor \
-buildmode=pie
%{gobuild}
%install
install -D -m 0755 %{name} "%{buildroot}%{_bindir}/%{name}"
# Build the shell autocomplete files
%{buildroot}/%{_bindir}/%{name} completion bash > %{name}-autocomplete.bash
%{buildroot}/%{_bindir}/%{name} completion zsh > %{name}-autocomplete.zsh
%{buildroot}/%{_bindir}/%{name} completion fish > %{name}-autocomplete.fish
# Install the shell autocomplete files
install -Dm 644 %{name}-autocomplete.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name}
install -Dm 644 %{name}-autocomplete.zsh %{buildroot}%{_datadir}/zsh/site-functions/_%{name}
install -Dm 644 %{name}-autocomplete.fish %{buildroot}%{_datadir}/fish/completions/_%{name}
%check
# execute the binary as a basic check
%{buildroot}/%{_bindir}/%{name} help
%{goinstall}
%files
%license LICENSE
%{_bindir}/%{name}
# completions
%files bash-completion
%{_datadir}/bash-completion
%files zsh-completion
%{_datadir}/zsh
%files fish-completion
%{_datadir}/fish
%changelog

BIN
vendor.tar.gz LFS

Binary file not shown.