Registry / devops / dcc-mcp-core

dcc-mcp-core

JSON →
library0.18.9pypypi✓ verified 81d ago

Foundational library for the DCC Model Context Protocol (MCP) ecosystem. Provides primitives for building MCP servers and clients. Version 0.18.9, active development with frequent releases.

pip install dcc-mcp-core
INSTALL
IMPORT
SIG · DCC-MCP-CORE
D
dcc-mcp-core
devopspythonv0.18.9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

resolve_lazy_symbol
from dcc_mcp_core import resolve_lazy_symbol
from dcc_mcp_core import MCPServer
annotations
from dcc_mcp_core import annotations

Basic setup for an MCP server with one tool.

from dcc_mcp_core import MCPServer, create_context # Create an MCP server instance server = MCPServer(name="example-server") # Register a simple tool @server.tool def greet(name: str) -> str: return f"Hello, {name}!" # Create context and run context = create_context(server) context.run()
Debug
Known issues
breakingIn v0.18.0, `create_context` was moved to top-level. Importing from `dcc_mcp_core.context` will fail.
fix
Use `from dcc_mcp_core import create_context`
affects: >=0.18.0
gotchaPackage name uses underscores, not dots. `dcc-mcp-core` is the PyPI name, but import is `dcc_mcp_core`.
fix
Always use `import dcc_mcp_core`
affects: all
deprecatedThe `MCPClient` class signature changed in v0.17.0; the `host` parameter is now `server_url`. Old code will raise TypeError.
fix
Use `MCPClient(server_url='ws://...')` instead of `MCPClient(host='...')`
affects: >=0.17.0
breakingPython 3.7 support dropped in v0.19.0 (future). Current version 0.18.9 still supports 3.7, but plan to upgrade.
fix
Use Python 3.8+ for future versions
affects: >=0.19.0
Upgrade
Version history
0.18.9latest on PyPI
Audit
Dependencies
typing-extensionsrequiredSupports type hints for Python 3.7+
pydanticrequiredUsed for data validation and settings
Agent activity
9 hits · last 30 days
node
8
Resources
dcc-mcp-core — pip install dcc-mcp-core · libregistry