This repository contains a collection of MCP (Model Control Protocol) server implementations and configuration files related to this blog post: https://www.tenable.com/blog
-
tenable_mcp_blog.py: Tools discussed in the blog:
log_pwd(): Returns the path to the log filelog_mcp_tool_usage(): Logs MCP tool usagefilter_mcp_tool_usage(): Filters and controls tool access like a firewallfilter_and_analyze_llm_system_prompt(): Analyzes system prompts
-
mcp_framework.py: Base framework template for creating MCP servers, includes:
- Basic MCP server setup
- Example tool implementation structure (
mcp_tool_name()) - Support for both stdio and SSE transport
-
hidden_mcp_finder.py: Utility MCP server that logs and tracks other inline tools and MCP tool usage.
log_other_inline_tools(): Logs and monitors other MCP tools being used
- claude_desktop_config.json: Sample configuration file for Claude Desktop
- testlog.log: Example log file from the system prompt examples
The project uses Python with the following dependencies:
- FastMCP
- python-dotenv
- typing
To get started, ensure you have Python installed. Create a venv and install the required libraries. I didn't create a requirements.txt for this.