Skip to content

Dev#48

Merged
AFredefon merged 6 commits intomasterfrom
dev
Mar 17, 2026
Merged

Dev#48
AFredefon merged 6 commits intomasterfrom
dev

Conversation

@AFredefon
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings March 17, 2026 07:15
@AFredefon AFredefon merged commit e7022c2 into master Mar 17, 2026
5 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the FuzzForge MCP server to better support “hub-first” workflows by improving hub discovery context, persisting tool output directories, and recording execution history, alongside substantial documentation updates.

Changes:

  • Add an agent-context convention (get_agent_context) that is auto-fetched during hub tool discovery and hidden from the visible tool list.
  • Add a persistent writable output volume (/app/output.fuzzforge/output) and record hub tool executions to .fuzzforge/runs/<execution_id>/metadata.json.
  • Refresh MCP workflow documentation in the server instructions and repository README (including Security Hub positioning).

Reviewed changes

Copilot reviewed 6 out of 9 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
fuzzforge-mcp/src/fuzzforge_mcp/tools/projects.py Updates project/asset/execution tool docstrings to match the hub workflow and new execution summaries.
fuzzforge-mcp/src/fuzzforge_mcp/tools/hub.py Adds agent-context fetching, server category filtering, output volume mount, and execution recording on tool calls.
fuzzforge-mcp/src/fuzzforge_mcp/storage.py Adds .fuzzforge/output, implements execution recording and summary listing, and exposes project output path.
fuzzforge-mcp/src/fuzzforge_mcp/resources/executions.py Adjusts execution listing to match the new list_executions() return type (dict summaries).
fuzzforge-mcp/src/fuzzforge_mcp/application.py Updates MCP server instructions to document agent-context, container paths, and a firmware analysis pipeline.
README.md Reframes product around hub architecture + Security Hub; updates install/usage docs and project structure section.
.gitignore Ignores hub-config.json as user-generated config.
assets/demopart1.gif / assets/demopart2.gif Assets present but no longer referenced in README after doc rewrite.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 158 to +163
all_tools = []
contexts: dict[str, str] = {}
for server, tools in results.items():
ctx = await _fetch_agent_context(executor, server, tools)
if ctx:
contexts[server] = ctx
Comment on lines +267 to +269
output_path = storage.get_project_output_path(project_path)
if output_path:
extra_volumes.append(f"{output_path!s}:/app/output:rw")
"""
output_path = self._get_project_path(project_path) / "output"
if output_path.exists():
return output_path
Comment on lines +215 to +223
if meta_path.exists():
meta = json.loads(meta_path.read_text())
executions.append({
"execution_id": meta.get("execution_id", run_dir.name),
"timestamp": meta.get("timestamp"),
"server": meta.get("server"),
"tool": meta.get("tool"),
"success": meta.get("success"),
})
Comment on lines 232 to +239
fuzzforge_ai/
├── fuzzforge-cli/ # Command-line interface
├── fuzzforge-mcp/ # MCP server — the core of FuzzForge
├── fuzzforge-cli/ # Command-line interface & terminal UI
├── fuzzforge-common/ # Shared abstractions (containers, storage)
├── fuzzforge-mcp/ # MCP server for AI agents
├── fuzzforge-modules/ # Security modules
│ └── fuzzforge-modules-sdk/ # Module development SDK
├── fuzzforge-runner/ # Local execution engine
├── fuzzforge-types/ # Type definitions & schemas
└── demo/ # Demo projects for testing
├── fuzzforge-runner/ # Container execution engine (Docker/Podman)
├── fuzzforge-tests/ # Integration tests
├── mcp-security-hub/ # Default hub: 36 offensive security MCP servers
└── scripts/ # Hub image build scripts
Comment on lines +194 to +195
(run_dir / "metadata.json").write_text(json.dumps(metadata, indent=2, default=str))

Comment on lines +185 to +192
metadata = {
"execution_id": execution_id,
"timestamp": datetime.now(tz=UTC).isoformat(),
"server": server_name,
"tool": tool_name,
"arguments": arguments,
"success": result.get("success", False),
"result": result,
Comment on lines +181 to +187
execution_id = f"{datetime.now(tz=UTC).strftime('%Y%m%dT%H%M%SZ')}_{uuid4().hex[:8]}"
run_dir = self._get_project_path(project_path) / "runs" / execution_id
run_dir.mkdir(parents=True, exist_ok=True)

metadata = {
"execution_id": execution_id,
"timestamp": datetime.now(tz=UTC).isoformat(),
Comment on lines +182 to 188
```bash
# Clone the MCP Security Hub
git clone https://github.com/FuzzingLabs/mcp-security-hub.git ~/.fuzzforge/hubs/mcp-security-hub

# Build the Docker images for the hub tools
./scripts/build-hub-images.sh
```
Comment on lines +50 to +52
if content and isinstance(content, list):
text: str = content[0].get("text", "")
return text
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.

2 participants