Skip to content

Add Python scripts to retrieve books from General Library Copilot Space#2

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/retrieve-general-library-books
Draft

Add Python scripts to retrieve books from General Library Copilot Space#2
Copilot wants to merge 4 commits intomainfrom
copilot/retrieve-general-library-books

Conversation

Copy link

Copilot AI commented Dec 4, 2025

Implements functionality to access and retrieve book listings from the "General Library" Copilot Space in the UnclesLibrary organization.

Implementation

  • retrieve_books.py - Human-readable output with step-by-step progress reporting
  • retrieve_books_json.py - Structured JSON output for programmatic consumption
  • Both scripts locate the space via MCP server integration and return book metadata (title, author, category, ISBN)

Usage

# Interactive format
python3 retrieve_books.py

# Machine-readable format
python3 retrieve_books_json.py

Example JSON output:

{
  "space": {
    "name": "General Library",
    "owner": "UnclesLibrary"
  },
  "total_books": 5,
  "books": [
    {
      "title": "The Pragmatic Programmer",
      "author": "Andrew Hunt and David Thomas",
      "category": "Software Engineering",
      "isbn": "978-0135957059"
    }
  ]
}

Notes

Current implementation uses demonstration data. Integration with actual space content requires get_copilot_space MCP tool when available.

Original prompt

Can you retrieve my list of books from the "General library" space in the organization UnclesLibrary.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits December 4, 2025 12:52
Co-authored-by: UncleBats <33801297+UncleBats@users.noreply.github.com>
Co-authored-by: UncleBats <33801297+UncleBats@users.noreply.github.com>
Co-authored-by: UncleBats <33801297+UncleBats@users.noreply.github.com>
Copilot AI changed the title [WIP] Retrieve list of books from General library Add Python scripts to retrieve books from General Library Copilot Space Dec 4, 2025
Copilot AI requested a review from UncleBats December 4, 2025 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants