Skip to content

[Question] Discrepancy between MCP and Python Lib, and missing complete OpenAI SDK example? #35

@Slipstream-Max

Description

@Slipstream-Max

​Hi team,
​I am currently exploring the code-mode project and comparing code-mode-mcp with the Python library. I noticed some structural differences and have a few questions regarding the implementation:
​1. Discrepancy in tool count
The MCP server exposes 7 tools (including register_manual, get_required_keys_for_tool, etc.), while the Python library only provides 3 core capabilities. Please clarify the design philosophy behind this difference.
​2. Missing list_tools and tool_info in Python Lib
In standard Agent architectures, the LLM usually relies on tools like list_tools and tool_info to dynamically discover and understand available APIs. Since these specific functions are missing in the Python library, I would like to know the officially recommended approach for handling dynamic tool discovery and parameter inspection in the Python SDK.
​3. Request for a complete OpenAI SDK integration example
Currently, the documentation mostly demonstrates how to construct the system prompt, but it lacks a complete demonstration of the actual tool-calling loop.
To help developers integrate this smoothly, it would be best if you could provide a ready-to-use OpenAI tools schema (the JSON schema definition) for the available Python functions. Additionally, a minimal complete example showing how to wire these tools into a standard native OpenAI SDK while loop would be incredibly helpful.
​Thanks for your time and for the great project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions