Skip to content
Back to search

mcp-publish

MCP server that publishes agent results to a configurable file location (NuGet: JSdotNet.MCP.Publish)

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/jsdotnet--mcp-publish/badge.svg)](/listings/jsdotnet--mcp-publish)

HTML

<a href="/listings/jsdotnet--mcp-publish"><img src="/api/listings/jsdotnet--mcp-publish/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

dotnet tool install --global JSdotNet.MCP.Publish

The tool command is `jsdotnet-publish-mcpserver`.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 86 lines
  1. # JSdotNet Publish Results MCP Server
  2. Model Context Protocol (MCP) server that lets an AI agent publish its results to a **configurable file location**.
  3. NuGet id: `JSdotNet.MCP.Publish`. Split out of [JSdotNet/Project-Guidelines-MCP](https://github.com/JSdotNet/Project-Guidelines-MCP), which now holds only the application defaults.
  4. ## Installation
  5. ```bash
  6. dotnet tool install --global JSdotNet.MCP.Publish
  7. ```
  8. The tool command is `jsdotnet-publish-mcpserver`.
  9. ## Configuring the publish location
  10. The publish root is resolved in this order:
  11. 1. Configuration key `Publish:RootPath` — supplied on the command line (`--Publish:RootPath=D:\results`) or as the environment variable `Publish__RootPath`.
  12. 2. Environment variable `JSDOTNET_PUBLISH_PATH`.
  13. 3. Default: `%LOCALAPPDATA%\JSdotNet\PublishedResults` (Linux/macOS: `~/.local/share/JSdotNet/PublishedResults`).
  14. Additional settings:
  15. | Key | Default | Description |
  16. |-----|---------|-------------|
  17. | `Publish:RootPath` | per-user folder | Directory results are written to. Created if missing. Environment variables in the value are expanded. |
  18. | `Publish:AllowOverwriteByDefault` | `false` | When `true`, `publish_result` may replace existing files without `overwrite=true`. |
  19. All tool paths are relative to the root; absolute paths and `..` segments are rejected so the server can never write outside the configured location.
  20. ### Example `.mcp.json`
  21. ```json
  22. {
  23. "mcpServers": {
  24. "jsdotnet-publish": {
  25. "type": "stdio",
  26. "command": "jsdotnet-publish-mcpserver",
  27. "args": ["--Publish:RootPath=D:\\reports"],
  28. "tools": ["*"]
  29. }
  30. }
  31. }
  32. ```
  33. Or with an environment variable:
  34. ```json
  35. {
  36. "mcpServers": {
  37. "jsdotnet-publish": {
  38. "type": "stdio",
  39. "command": "jsdotnet-publish-mcpserver",
  40. "env": { "JSDOTNET_PUBLISH_PATH": "D:\\reports" },
  41. "tools": ["*"]
  42. }
  43. }
  44. }
  45. ```
  46. ## Tools
  47. | Tool | Purpose |
  48. |------|---------|
  49. | `publish_result` | Write a result to a file (fails on existing file unless `overwrite=true`). |
  50. | `append_result` | Append text to a file, creating it and its folders when needed. |
  51. | `list_published` | List published files (newest first), optionally filtered by a glob such as `*.md`. |
  52. | `read_published` | Read back the content of a published file. |
  53. | `delete_published` | Delete a published file. |
  54. | `get_publish_location` | Report the resolved absolute publish root. |
  55. | `get_usage_logs` | Recent tool invocations for this server process. |
  56. ## Development
  57. ```bash
  58. dotnet build JSdotNet.MCP.Publish.slnx
  59. dotnet test --project tests/JSdotNet.MCP.Publish.Tests/JSdotNet.MCP.Publish.Tests.csproj
  60. ```
  61. Package versions are managed centrally in `Directory.Packages.props` with lock files. CI
  62. (`.github/workflows/ci.yml`) builds, tests with an 80% coverage floor, runs CodeQL, and on
  63. `main` packs and pushes to NuGet.org (secret `NUGET_API_KEY`), versioned by GitVersion.
  64. ## License
  65. MIT

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.