Skip to content

add paragraph style management to plugin and MCP bridge - #1

Open
cgpp5 wants to merge 1 commit into
jwingnut:mainfrom
cgpp5:feature/paragraph-styles
Open

add paragraph style management to plugin and MCP bridge#1
cgpp5 wants to merge 1 commit into
jwingnut:mainfrom
cgpp5:feature/paragraph-styles

Conversation

@cgpp5

@cgpp5 cgpp5 commented Jul 29, 2026

Copy link
Copy Markdown

This adds create, edit, delete, list, inspect, and apply operations for paragraph styles via the UNO bridge, plugin HTTP API, and consolidated MCP tools.

Plugin (uno_bridge.py, mcp_server.py):

  • set_paragraph_style: apply a style to selection or by paragraph number
  • list_paragraph_styles: enumerate all styles in the document
  • get_paragraph_style: read style name of current paragraph or selection
  • create_paragraph_style: new custom styles with font, size, bold, etc.
  • edit_paragraph_style: modify existing style properties
  • delete_paragraph_style: delete any style by name
  • get_style_properties: inspect font, size, weight, alignment of a style

MCP bridge (libreoffice_mcp_server.py):

  • document action: styles, create_style, edit_style, delete_style, style_properties
  • text action: style (apply heading/paragraph style to selection or paragraph_n)

Also: registration.py now logs to a file and auto-starts the server, manifest.xml includes the missing pythonpath file entries.

This adds create, edit, delete, list, inspect, and apply operations
for paragraph styles via the UNO bridge, plugin HTTP API, and
consolidated MCP tools.

Plugin (uno_bridge.py, mcp_server.py):
- set_paragraph_style: apply a style to selection or by paragraph number
- list_paragraph_styles: enumerate all styles in the document
- get_paragraph_style: read style name of current paragraph or selection
- create_paragraph_style: new custom styles with font, size, bold, etc.
- edit_paragraph_style: modify existing style properties
- delete_paragraph_style: delete any style by name
- get_style_properties: inspect font, size, weight, alignment of a style

MCP bridge (libreoffice_mcp_server.py):
- document action: styles, create_style, edit_style, delete_style, style_properties
- text action: style (apply heading/paragraph style to selection or paragraph_n)

Also: registration.py now logs to a file and auto-starts the server,
manifest.xml includes the missing pythonpath file entries.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant