semvec/pypi-packages huggingface dataset:
iflow-mcp_show2user 0.1.3
A Model Context Protocol server for displaying reports to users
License: MIT
Requires Python: ==3.12.7
Keywords: display, llm, mcp, report, visualization

# MCP Show2User Server

A Model Context Protocol server for displaying reports to users in various formats.

## Features

- Display reports with title, type, content, and content_type
- Support for HTML and Markdown format types
- Support for URL and text content types
- Simple JSON output format

## Installation

```bash
cd mcp-show2user
pip install -e .
```

## Usage

Run the server:

```bash
mcp-show2user
```

## Tool

### show_report

Display a report to the user.

**Parameters:**
- `title` (string): Title of the report
- `type` (string): Report type - "html" or "md"
- `content` (string): Report content (URL or text based on content_type)
- `content_type` (string): Content type - "url" or "text"

**Example:**

```json
{
  "title": "Monthly Sales Report",
  "type": "html",
  "content": "https://example.com/report.html",
  "content_type": "url"
}
```

## License

MIT
iflow-mcp_docx-edit-server 0.1.3
A Model Context Protocol server providing docx edit capability
License: MIT
Requires Python: ==3.12.7
Keywords: automation, docx, llm, mcp

# DOCX Edit Server

A Model Context Protocol (MCP) server that provides DOCX document editing capabilities for Large Language Models (LLMs).

## Features

- **Content Insertion**: Insert headings, paragraphs, images, and tables at specified placeholder positions
- **Document Reading**: Read and extract document outline structure
- **Rich Formatting**: Support for styled headings, formatted text with bold/italic, and image captions
- **Table Support**: Create formatted tables with headers and data rows
- **Image Processing**: Automatic image conversion to PNG format with customizable width
- **Document Comparison**: Track changes between document versions

## Tools Provided

- `docx_insert`: Insert content (headings, paragraphs, images, tables) at specified placeholder positions in DOCX files
- `read_docx`: Read and extract the outline structure of DOCX documents

## Content Types Supported

### Headings
- Levels 1-4 supported
- Customizable font size
- Automatic styling with SimHei font

### Paragraphs
- Support for markdown-style formatting (*italic*, **bold**)
- Automatic text formatting and indentation

### Images
- Automatic PNG conversion
- Customizable width (in inches)
- Optional captions with center alignment

### Tables
- Header row support
- Automatic grid styling
- Center-aligned headers, left-aligned data
- Optional table captions

## Configuration Options

- `--workspace-path`: Set the workspace directory (default: ./workspace)

## Server Configuration

To use this server with MCP clients, add the following configuration to your MCP settings:

For development or when using `uv`:

```json
{
  "mcpServers": {
    "docx-edit-server": {
      "command": "uv",
      "args": ["--directory", "directory_of_docx-edit-server", "run", "docx-edit-server", "--workspace-path", "/path/to/your/workspace"],
      "env": {}
    }
  }
}
```

## Usage Examples

### Inserting Content
```python
# Insert a heading and paragraph at placeholder "{{SECTION_1}}"
await docx_insert(
    docx_path="/path/to/document.docx",
    placeholder="{{SECTION_1}}",
    contents=[
        {
            "type": "heading",
            "text": "Introduction",
            "level": 1,
            "size": 16
        },
        {
            "type": "paragraph", 
            "text": "This is a **bold** paragraph with *italic* text."
        }
    ]
)
```

### Reading Document Structure
```python
# Read document outline
outline = await read_docx("/path/to/document.docx")
```

## Safety Features

- **File Validation**: Checks for file existence before operations
- **Content Validation**: Validates content structure and types
- **Error Handling**: Comprehensive error reporting with detailed messages
- **Document Backup**: Tracks changes with before/after comparison

## License

MIT License - see LICENSE file for details.