File mcphost.spec of Package mcphost
#
# spec file for package mcphost
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: mcphost
Version: 0.31.1
Release: 0
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
URL: https://github.com/mark3labs/mcphost
Source0: %{name}-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: golang(API) >= 1.24
%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.
%prep
%autosetup -a 1
%build
go build \
-mod=vendor \
-buildmode=pie
%install
install -D -m 0755 %{name} "%{buildroot}%{_bindir}/%{name}"
%files
%license LICENSE
%{_bindir}/%{name}
%changelog