Skip to content

codio_func_doc — MCP tool to return function signature + docstring

Goal

(promoted from note)

Context

(see source note)

Prompt

Implement a single MCP tool codio_func_doc(package, module, function) that returns the raw docstring + inspect.signature for any function in any installed Python package.

Implementation: importlib.import_module(f"{package}.{module}"), getattr(mod, function), return inspect.signature(fn) + fn.__doc__.

Also support a module-level variant: codio_func_doc(package, module) returns all public function signatures + first-line docstrings for browsing.

Register as a projio MCP tool alongside existing codio tools. No indexing, no RAG, no ingestion pipeline — just live introspection.

Acceptance Criteria

  • [ ]

Result

(pending)