Skip to content

feat(mcp): embed main requests configuration reference and resource - #56

Merged
xenOs76 merged 1 commit into
mainfrom
refactor/mcp_main_conf
Sep 15, 2026
Merged

xenOs76 merged 1 commit into
mainfrom
refactor/mcp_main_conf

Conversation

@xenOs76

@xenOs76 xenOs76 commented Sep 15, 2026 •

Copy link
Copy Markdown
Owner
  • Add comprehensive assets/examples/https-wrench-mcp-main-config.yaml demonstrating all schema options against os76.xyz endpoints
  • Embed main configuration into MCP assets via go:generate
  • Expose https-wrench://main-config static resource and https-wrench://examples/mcp-main-config example template
  • Add reference hints in author_requests_config prompt
  • Update unit/coverage tests and CHANGELOG

Summary by CodeRabbit

  • New Features

    • Added a comprehensive MCP configuration reference covering global settings, reusable request defaults, TLS inspection, HTTP mutations, proxy protocol support, and wire debugging.
    • Added MCP resources for the main configuration and its example template.
    • Added richer parameter guidance for certificate and JWT inspection tools.
    • Improved configuration prompts with relevant resource hints, including insecure connection guidance.
  • Documentation

    • Added a CLI usage example to the request configuration tool description.
    • Expanded the changelog with MCP feature and documentation updates.

- Add comprehensive assets/examples/https-wrench-mcp-main-config.yaml
demonstrating all schema options against os76.xyz endpoints
- Embed main configuration into MCP assets via go:generate
- Expose https-wrench://main-config static resource and
https-wrench://examples/mcp-main-config example template
- Add reference hints in author_requests_config prompt
- Update unit/coverage tests and CHANGELOG
@xenOs76 xenOs76 self-assigned this Sep 15, 2026
@coderabbitai

coderabbitai Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 38da1222-3eab-4e3e-a0e2-015ab1295e46

📥 Commits

Reviewing files that changed from the base of the PR and between d25eae8 and 0bdfba8.

📒 Files selected for processing (8)
  • CHANGELOG.md
  • assets/examples/https-wrench-mcp-main-config.yaml
  • internal/mcp/assets/examples/https-wrench-mcp-main-config.yaml
  • internal/mcp/coverage_test.go
  • internal/mcp/embed.go
  • internal/mcp/prompts.go
  • internal/mcp/resources.go
  • internal/mcp/server_test.go

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The PR adds a complete MCP configuration example, embeds it as two MCP resources, includes the resources in prompt references and hints, adds resource-read coverage, and updates the changelog.

Changes

MCP main configuration

Layer / File(s) Summary
Main configuration example
assets/examples/https-wrench-mcp-main-config.yaml, internal/mcp/assets/examples/https-wrench-mcp-main-config.yaml
Adds global settings, reusable request defaults, and four probes for proxy protocol, certificate inspection, POST validation, and raw wire debugging.
MCP resource and prompt wiring
internal/mcp/embed.go, internal/mcp/resources.go, internal/mcp/prompts.go
Registers https-wrench://main-config and https-wrench://examples/mcp-main-config, embeds the configuration, and includes both resources in MCP prompt output and hints.
Resource validation and release notes
internal/mcp/coverage_test.go, internal/mcp/server_test.go, CHANGELOG.md
Tests resource listing, resource reads, and hint behavior. Documents the MCP resources, schema annotations, and CLI example updates.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant MCPRequest
  participant authorRequestsConfigPrompt
  participant registerResources
  participant EmbeddedMainConfig
  MCPRequest->>authorRequestsConfigPrompt: request configuration guidance
  authorRequestsConfigPrompt->>registerResources: include main-config resource references
  registerResources->>EmbeddedMainConfig: serve main YAML configuration
  MCPRequest->>registerResources: read main-config or example URI
  registerResources-->>MCPRequest: return configuration content
Loading

Merge Risk: ⚪ Minimal · up to 0bdfb

The new MCP configuration resources and prompt references have no supported current-head issue requiring changes before merge.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 9 functions across 5 files. (3 skipped: 3 … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: embedding the MCP main requests configuration reference and exposing it as a resource.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 9 functions across 5 files. (3 skipped: 3 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch refactor/mcp_main_conf

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@xenOs76
xenOs76 merged commit 528e2b4 into main Sep 15, 2026
5 checks passed
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