Conversation
There was a problem hiding this comment.
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.