Skip to main content

DMCP-SETU

Effortless Conversational Access to Dview MCP from Your Terminal

Dmcp-Setu is a lightweight, terminal-first Python CLI tool that enables real-time interaction with Dview’s MCP (Message Control Plane). It abstracts authentication, WebSocket handling, and streaming so you can focus purely on communication.

⚡ Built for developers who prefer speed, simplicity, and the terminal.


🚀 Overview

Dmcp-Setu allows you to:

  • Authenticate with Dview services
  • Establish real-time WebSocket communication
  • Send and receive messages interactively
  • Stream live responses directly in your terminal

⚠️ This is a CLI utility, not a Python SDK.


✨ Features

  • 🔐 Flexible Authentication

    • Email & Password
    • Cookie-based (token=Bearer xxxx)
  • 🌐 Real-Time Messaging

    • WebSocket-based communication
    • Live streaming responses
  • 💬 Interactive CLI

    • Chat-like interface
    • Built with Rich for clean output
  • ⚙️ Configurable

    • Environment variable support
    • Custom endpoint support

📦 Installation

Using pip

pip install dmcp-setu

Using poetry

poetry add dmcp-setu

⚙️ Configuration

You must configure the Cosmos endpoint before using the CLI.

export DVIEW_COSMOS_ENDPOINT="https://<your-cosmos-endpoint>"

Or via CLI

dmcp chat --cosmos <endpoint>

🔐 Authentication

1. Email & Password

dmcp chat --email <email> --password <password>

Or interactive mode:

dmcp chat

dmcp chat --cookie "token=Bearer xxxx"

Or via environment variable:

export DMCP_COOKIE="token=Bearer xxxx"

💬 Usage

Start the CLI:

dmcp chat

Example

you  ▶ Hello

⋯ Processing...

dmcp ▶ Hi! How can I help you today?

Exit

  • Type exit or quit
  • Press Ctrl + C

🧠 How It Works

  1. Credentials are validated via Cosmos API
  2. WebSocket connection is established
  3. Authentication token is sent
  4. Server responds with auth_ok
  5. Interactive chat session begins

🌍 Environment Variables

Variable Description
DVIEW_COSMOS_ENDPOINT Cosmos API endpoint (required)
DMCP_EMAIL Email for authentication
DMCP_PASSWORD Password for authentication
DMCP_COOKIE Cookie for authentication
DMCP_WS_URL Override WebSocket URL

🛠 Error Handling

User-friendly CLI errors:

  • ❌ Authentication Failed
  • ❌ Missing Values
  • ❌ Connection Error
  • ❌ Unexpected Error

All internal exceptions are abstracted.


🎯 Use Cases

  • Internal Dview tooling
  • MCP debugging
  • Workflow testing
  • CLI-based automation

⚠️ Important Notes

  • This is a CLI-only tool
  • Internal classes like _DMCP are not public APIs
  • Direct imports may break in future versions

🧾 Best Practices

  • Use environment variables for credentials
  • Prefer cookie-based auth for persistent sessions
  • Avoid relying on internal modules

🔗 Repository

GitHub: https://github.com/dview-io/dmcp-setu


📄 License

MIT License


Metadata

Release files for dmcp-setu 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dmcp-setu 0.1.3
File Size Uploaded Provenance Actions
dmcp_setu-0.1.3.tar.gz 11.5 kB Without provenance Details for dmcp_setu-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dmcp-setu 0.1.3
File Interpreter ABI Platform Actions
dmcp_setu-0.1.3-py3-none-any.whl Python 3 none any Details for dmcp_setu-0.1.3-py3-none-any.whl

Total release size: 25.2 kB

Release files / dmcp_setu-0.1.3.tar.gz

Download URL dmcp_setu-0.1.3.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
93927562cdbbe3ebc34d5fdbcd32d48135bf9f2fc0051ac73e8ff58683faa661
BLAKE2b-256 checksum
How to use checksums
f42eef92e647db39743cbe7494775b8e5330f93ac872338d4e485a119e35739a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.12.7 Darwin/22.2.0

Release files / dmcp_setu-0.1.3-py3-none-any.whl

Download URL dmcp_setu-0.1.3-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c65481d80553ef612e1c2be81e61a210988e77869600ed3d05a0075b7115dfe8
BLAKE2b-256 checksum
How to use checksums
36b66659b02351a521ed74c3591dc5f0d3e5d2cecb6dc889c84b454729d1ccd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.12.7 Darwin/22.2.0

Security for dmcp-setu 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page