mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
misc/py-mcp: Add new port
The Model Context Protocol allows applications to provide context for LLMs in a standardized way, separating the concerns of providing context from the actual LLM interaction. This Python SDK implements the full MCP specification, making it easy to: - Build MCP clients that can connect to any MCP server - Create MCP servers that expose resources, prompts and tools - Use standard transports like stdio and SSE - Handle all MCP protocol messages and lifecycle events https://pypi.python.org/pypi/mcp
This commit is contained in:
parent
2043988b10
commit
82930d2795
4 changed files with 42 additions and 0 deletions
|
@ -459,6 +459,7 @@
|
|||
SUBDIR += py-llm
|
||||
SUBDIR += py-llm-claude-3
|
||||
SUBDIR += py-log_symbols
|
||||
SUBDIR += py-mcp
|
||||
SUBDIR += py-mffpy
|
||||
SUBDIR += py-mixpanel
|
||||
SUBDIR += py-mmcv
|
||||
|
|
29
misc/py-mcp/Makefile
Normal file
29
misc/py-mcp/Makefile
Normal file
|
@ -0,0 +1,29 @@
|
|||
PORTNAME= mcp
|
||||
DISTVERSION= 1.3.0
|
||||
CATEGORIES= misc python
|
||||
MASTER_SITES= PYPI
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= nivit@FreeBSD.org
|
||||
COMMENT= Python implementation of the Model Context Protocol (MCP)
|
||||
WWW= https://pypi.python.org/pypi/mcp
|
||||
|
||||
LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=1.27.0:devel/py-hatchling@${PY_FLAVOR}
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}anyio>=4.5:devel/py-anyio@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}httpx-sse>=0.4:www/py-httpx-sse@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}httpx>=0.28.1:www/py-httpx@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}pydantic-settings>=2.6.0:devel/py-pydantic-settings@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}pydantic2>=2.10.6_2:devel/py-pydantic2@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}sse-starlette>=2.2.0:www/py-sse-starlette@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}starlette>=0.45.3:www/py-starlette@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}uvicorn>=0.34.0:www/py-uvicorn@${PY_FLAVOR}
|
||||
|
||||
USES= python
|
||||
USE_PYTHON= autoplist pep517
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
.include <bsd.port.mk>
|
3
misc/py-mcp/distinfo
Normal file
3
misc/py-mcp/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1741774341
|
||||
SHA256 (mcp-1.3.0.tar.gz) = f409ae4482ce9d53e7ac03f3f7808bcab735bdfc0fba937453782efb43882d45
|
||||
SIZE (mcp-1.3.0.tar.gz) = 150235
|
9
misc/py-mcp/pkg-descr
Normal file
9
misc/py-mcp/pkg-descr
Normal file
|
@ -0,0 +1,9 @@
|
|||
The Model Context Protocol allows applications to provide context for LLMs in a
|
||||
standardized way, separating the concerns of providing context from the actual
|
||||
LLM interaction. This Python SDK implements the full MCP specification, making
|
||||
it easy to:
|
||||
|
||||
- Build MCP clients that can connect to any MCP server
|
||||
- Create MCP servers that expose resources, prompts and tools
|
||||
- Use standard transports like stdio and SSE
|
||||
- Handle all MCP protocol messages and lifecycle events
|
Loading…
Add table
Reference in a new issue