Skip to main content

Talk-To-My-Org-Chart: CLI MCP server for org chart queries.

Project description

ttmoc (Talk-To-My-Org-Chart)

A Python package and CLI for running the MCP server to interact with your organization's chart data.

Installation

  1. Make sure you have Python 3.8 or higher and pip installed.
  2. In the root directory (where pyproject.toml is), run:
    pip install .
    

Usage

After installation, you can launch the MCP server with:

ttmoc --api-url <API_SERVER_URL> --tenant-id <AZURE_TENANT_ID>
  • --api-url: The URL of your API server (e.g., http://localhost:8000)
  • --tenant-id: Your Azure Active Directory tenant ID

Example:

ttmoc --api-url http://localhost:8000 --tenant-id your-tenant-id

Available Tools (API Functions)

Once the server is running, it exposes several tools for querying org chart data:

  • lookup_employee: Look up employees by display name or alias.
  • lookup_direct_reports: Get direct reports for a manager.
  • lookup_all_reports: Get all reports (direct and indirect) for a manager, with optional filtering.
  • find_employees: Find employees by criteria (name, title, cost center, etc.).
  • get_span_of_control: Get span of control metrics for a manager.
  • get_org_depth: Get organizational depth metrics for an employee.
  • count_all_reports: Count all reports (direct and indirect) for a manager, with optional filtering.
  • count_employees: Count employees by criteria.

See your API documentation or help for detailed usage of each tool.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ttmoc-0.1.1.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ttmoc-0.1.1-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file ttmoc-0.1.1.tar.gz.

File metadata

  • Download URL: ttmoc-0.1.1.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for ttmoc-0.1.1.tar.gz
Algorithm Hash digest
SHA256 72ea23c1e127041adbd42f68cc62ebceb28c438e4f03cd166777bfdb36165d5f
MD5 8d05c8405acc4a3a5ae51960a541b6dd
BLAKE2b-256 7ec757c7df4f06c76e1ac502dc27d1e25cc56f6c3abae1a67c8e3b553f8bb75e

See more details on using hashes here.

File details

Details for the file ttmoc-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ttmoc-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for ttmoc-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6f8d30ae15dcbd7dfaaae4ce3b3fb0b36a7c098f75a7a619e68efa1f0a4f5ece
MD5 ca89699086e810c88be6acca0a2bbb37
BLAKE2b-256 06314e40039e6868bf1e1bd56bc37e3aba60f71551f7ab97d5d5f673aa7b34a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page