Skip to main content
Hello and welcome back. Before integrating an AI agent with the MCP, you should first discover which tools the MCP exposes — especially the issue tracker MCP included in this repo. Jumping straight to integration assumes you already know what tools exist and how they behave. In production, a reproducible way to enumerate available MCP tools is essential. This guide provides a small standalone Python script that programmatically queries a tracker MCP and lists its available tools. The script does not import the project’s MCP client, so you can run it against any compatible MCP service to verify the exposed tools. Overview
  • The script uses LangChain helper functions to convert MCP tool metadata into LangChain tools.
  • It creates a concise prompt that instructs the LLM to list available tools (without invoking them).
  • The script prints the discovered tool list and the total count.
Code: prompt_list_tracker_tools.py
What this script does
  • Defines the tracker MCP endpoint and transport (SSE in this example).
  • Calls convert_mcp_to_langchain_tools to fetch MCP tool metadata and produce LangChain-compatible tools.
  • Instantiates a ChatOpenAI LLM client using variables from your .env.
  • Sends a controlled prompt asking the model to list tools without invoking any.
  • Prints the model response and logs the discovered tool count.
Environment variables and configuration
  • The script reads OpenAI-compatible variables from a .env file located at the repository root (adjust the parent path if your layout differs).
  • Key variables used by the script:
    • OPENAI_MODEL_ID — LLM model identifier
    • OPENAI_BASE_URL — base URL for the OpenAI-compatible API
    • OPENAI_API_KEY — API key / bearer token
    • OPENAI_TEMPERATURE — optional temperature setting (default 0.2)
    • TRACKER_MCP_URL — optional override for the tracker MCP endpoint (default http://localhost:8086/sse)
Ensure your .env contains the required OpenAI-compatible variables (OPENAI_MODEL_ID, OPENAI_BASE_URL, OPENAI_API_KEY). If TRACKER_MCP_URL is not set in the environment, the script uses the default http://localhost:8086/sse.
Start the tracker MCP Make sure the tracker MCP is running before executing the script. In this demo the tracker is provided as a Docker image; adapt the command as needed if your organization runs the MCP differently. Start the tracker (example Docker command used in this demo):
Example output when launching the tracker container:
Run the discovery script
Sample terminal output from the script showing the MCP connection and discovered tools:
Interpreting the results
  • The sample output indicates the tracker MCP exposes four tools:
    • create_issue
    • list_issues
    • get_issue
    • update_issue
Tool summary (example) Next steps and usage ideas
  • Use list_issues to fetch and inspect current tickets before creating new ones.
  • Use create_issue to file new tickets based on outputs from an upstream FinOps agent.
  • Use update_issue to change status, add comments, or attach metadata as workflows progress.
  • If you prefer an interactive exploration, connect an AI coding assistant (e.g., Claude Code or other coding-capable agents) to the MCP and have it enumerate the tools and propose example calls interactively.
The log shows SSE transport in use and warns that SSE is deprecated as of MCP 2025-03-26. If you control the MCP server, consider migrating to streamable_http or another supported transport to avoid future compatibility issues.
References Now that you can discover MCP tools programmatically, you can safely update agent code to call create_issue and update_issue (and other tracker tools) driven by outputs from your FinOps or automation agents.

Watch Video