Incident Agent
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Incident AgentSay hello to the team"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Incident Agent
A Python FastMCP (Model Context Protocol) server for incident management and analysis.
This project provides a complete MCP server implementation with tools for greeting, echo functionality, and server information retrieval. It demonstrates the FastMCP framework capabilities and serves as a foundation for building more complex incident management tools.
Prerequisites
Python 3.13+
uv package manager
Related MCP server: My Awesome MCP
Setup
Clone the repository
git clone https://github.com/JayLiuMLP/incident-agent.git cd incident-agentInstall dependencies
uv syncVerify installation
uv run python -c "import fastmcp; print('FastMCP installed successfully!')"
MCP Server Usage
Available Tools
The server provides the following MCP tools:
hello - Greet a person or the world
echo - Echo back a message
server_info - Get server information and status
Available Resources
config://server/info - Server configuration information
Starting the MCP Server
Standard MCP Server (stdio transport)
uv run fastmcp run main.pyHTTP Server (for API access)
uv run fastmcp run main.py --transport http --port 8000Inspect Server Configuration
uv run fastmcp inspect main.py
Testing the MCP Server
Method 1: Python Client (Recommended)
Use the built-in Python client utilities for easy testing:
# Run complete test suite (recommended)
uv run python mcp_client_utils.py
# Run comprehensive HTTP client test
uv run python http_client_test.pyMethod 2: Using in Your Python Code
import asyncio
from mcp_client_utils import MCPClient, say_hello, echo_message
# Using utility functions
async def example():
greeting = await say_hello("Developer")
echo_result = await echo_message("Test message")
print(f"Greeting: {greeting}")
print(f"Echo: {echo_result}")
# Using client class
async def advanced_example():
client = MCPClient("http://localhost:8000/mcp")
tools = await client.list_tools()
server_info = await client.get_server_info()
print(f"Available tools: {tools}")
print(f"Server version: {server_info['version']}")
# Run the examples
asyncio.run(example())
asyncio.run(advanced_example())Method 3: Integration with MCP Clients
The server can be integrated with MCP-compatible clients like Claude Desktop by adding to your configuration:
{
"mcpServers": {
"incident-agent": {
"command": "uv",
"args": ["run", "fastmcp", "run", "main.py"],
"cwd": "/path/to/incident-agent"
}
}
}Method 4: HTTP API (curl)
ā ļø Note: HTTP API requires proper session management and is more complex. Python client is recommended.
For advanced users, you can use curl with the HTTP server:
# Start HTTP server first
uv run fastmcp run main.py --transport http --port 8000
# Test with Python client (much easier)
uv run python mcp_client_utils.pyServer Output Example
When running the test client, you should see:
š MCP Client Tools Demo
Hello: Hello, Developer! š Welcome to the Incident Agent MCP Server!
Echo: Echo: This is a test message
Server status: running
Server version: 0.1.0
Available tools: ['hello', 'echo', 'server_info']Development
Run the application
uv run python main.pyRun tests
uv run pytestSetup pre-commit hooks
uv run pre-commit installTest MCP functionality
# Quick test uv run python mcp_client_utils.py
Quick Start
Want to test the MCP server right away? Follow these steps:
Install and setup (if not done already)
git clone https://github.com/JayLiuMLP/incident-agent.git cd incident-agent uv syncStart the HTTP server (in one terminal)
uv run fastmcp run main.py --transport http --port 8000Test with Python client (in another terminal)
uv run python mcp_client_utils.pyExpected output
š MCP Client Tools Demo Hello: Hello, Developer! š Welcome to the Incident Agent MCP Server! Echo: Echo: This is a test message Server status: running Server version: 0.1.0 Available tools: ['hello', 'echo', 'server_info']
That's it! Your MCP server is working. š
Project Structure
incident-agent/
āāā main.py # Main MCP server entry point
āāā run_server.py # Server demo script
āāā mcp_client_utils.py # Primary Python client for testing (RECOMMENDED)
āāā simple_client.py # Simple Python client example
āāā http_client_test.py # Comprehensive HTTP client test
āāā PYTHON_CLIENT_GUIDE.md # Detailed Python client usage guide
āāā HELLO_WORLD_MCP.md # MCP server documentation
āāā pyproject.toml # Project configuration and dependencies
āāā .cursorrules # Development guidelines and best practices
āāā src/incident_agent/ # Main application source
āāā __init__.py # Package initialization
āāā server/ # MCP server implementation
ā āāā __init__.py
ā āāā server.py # FastMCP server definition
āāā tools/ # MCP tools implementation
āāā __init__.py
āāā hello_tools.py # Hello world toolsKey Files
main.py- MCP server entry point, use withfastmcp runmcp_client_utils.py- RECOMMENDED Python client with utility functions and classes for testingsimple_client.py- Minimal client example for referencesrc/incident_agent/server/server.py- Core server implementationsrc/incident_agent/tools/hello_tools.py- Tool implementations
Troubleshooting
Common Issues
"Failed to connect to localhost" error
Make sure the server is running:
uv run fastmcp run main.py --transport http --port 8000Check if port 8000 is available:
lsof -i :8000
curl requests don't work
Use Python client instead (recommended):
uv run python mcp_client_utils.pyHTTP API with curl requires complex session management
"No such file or directory" error
Make sure you're in the project directory
Run
uv syncto install dependencies
Import errors
Ensure virtual environment is activated by using
uv runprefixCheck that FastMCP is installed:
uv run python -c "import fastmcp; print('OK')"
Getting Help
Check
PYTHON_CLIENT_GUIDE.mdfor detailed client usageCheck
HELLO_WORLD_MCP.mdfor server implementation detailsSee
.cursorrulesfor development guidelines
Contributing
This project follows FastMCP development best practices. See .cursorrules for detailed development guidelines.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceA simple MCP server that generates multi-language greetings and provides server information using the FastMCP framework.Last updatedMIT
- -license-quality-maintenanceA basic MCP server built with FastMCP framework that provides example tools including message echoing and server information retrieval. Serves as a template for building custom MCP servers with both stdio and HTTP transport support.Last updated
- -license-quality-maintenanceA basic MCP server built with FastMCP framework that provides example tools including message echoing and server information retrieval. Serves as a template for building custom MCP servers with both stdio and HTTP transport support.Last updated
- -license-quality-maintenanceA basic MCP server built with FastMCP framework that provides example tools for echoing messages and retrieving server information. Supports both stdio and HTTP transports with Docker deployment capabilities.Last updated
Related MCP Connectors
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
MCP server for fcc-ecfs
Primarily to be used as a template repository for developing MCP servers with FastMCP in Python, Pā¦
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/JayLiuMLP/incident-agent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server