Posts

Showing posts with the label GitHub Copilot

A New Collection of Thoughtful Learning Apps — Now Available on iOS & Android

Image
I’m excited to share a set of mobile apps I’ve recently completed and published on both the Google Play Store and the Apple App Store. These apps are designed with a simple goal in mind: to make meaningful, structured content more accessible, whether you’re studying theology or improving your English vocabulary. 📱 Now Available on Both Platforms All apps are live and available for download: Google Play Developer Page: https://play.google.com/store/apps/dev?id=5835943159853189043 Apple App Store Developer Page: https://apps.apple.com/ca/developer/q-z-l-corp/id1888794100 📖 Theology & Confession Study Apps For those interested in Reformed theology and classical Christian teachings, I’ve developed a series of apps that present foundational texts in a clean, focused reading format: The Belgic Confession Canons of Dort Heidelberg Catechism Westminster Shorter Catechism Each app is designed to provide a distraction-free experience, making it easier to read, reflect, and revisit these im...

GitHub Copilot MCP 服务器 OAuth 认证问题 - 完美解决!

Image
GitHub Copilot MCP 服务器 OAuth 认证问题 - 完美解决! 问题描述 如果你在 VS Code 中看到这个错误: ● MCP Server: github-mcp-server Type: http URL: https://api.individual.githubcopilot.com/mcp/readonly Status: ✗ Failed Error: OAuth authentication failed for github-mcp-server 你不是一个人。这个令人沮丧的错误会导致 Copilot 的高级功能不可用,即使你已经登录了 VS Code。 根本原因 这个问题源于你的 ~/.copilot/mcp-config.json 文件。如果你手动创建或编辑过这个配置文件,但没有包含 OAuth 令牌,MCP 服务器将无法进行身份验证。 以下是一个有问题的配置示例: { "mcpServers": { "github-mcp-server": { "type": "http", "url": "https://api.individual.githubcopilot.com/mcp/readonly" } } } 看到缺失的身份验证凭据了吗?那就是罪魁祸首。 最简单的解决方案(推荐) 只需删除 mcp-config.json 文件: rm ~/.copilot/mcp-config.json 然后: 打开 VS Code 如果还没有登录,请登录 GitHub Copilot 关闭并重新打开 VS Code,或重新加载窗口 就这样!当你登录时,VS Code 会自动使用正确的 OAuth 身份验证创建正确的配置。 做完这些后,你应该会看到: ...

GitHub Copilot MCP Server OAuth Authentication Issue - Solved!

Image
GitHub Copilot MCP Server OAuth Authentication Issue - Solved! The Problem If you're seeing this error in VS Code: ● MCP Server: github-mcp-server Type: http URL: https://api.individual.githubcopilot.com/mcp/readonly Status: ✗ Failed Error: OAuth authentication failed for github-mcp-server You're not alone. This frustrating error can make Copilot's advanced features unavailable, even though you're signed into VS Code. Root Cause The issue stems from your ~/.copilot/mcp-config.json file. If you have manually created or edited this configuration file without including the OAuth token, the MCP server will fail to authenticate. Here's what a problematic config looks like: { "mcpServers": { "github-mcp-server": { "type": "http", "url": "https://api.individual.githubcopilot.com/mcp/readonly" } } } Notice the ...

我如何修复了 macOS 上的 GitHub Copilot CLI 连接问题

Image
我如何修复了 macOS 上的 GitHub Copilot CLI 连接问题 问题描述 我遇到了一个令人沮丧的问题。GitHub Copilot 在 VS Code 的聊天窗口中运行良好,但是 gh copilot CLI 命令会无限期地挂起,没有任何输出。所有命令,如 gh copilot -p "what is 2+2" 都会冻结,使 CLI 无法使用。 初始症状 ✅ GitHub Copilot 在 VS Code 中聊天功能工作正常 ✅ GitHub CLI ( gh ) 已安装并已通过身份验证 ✅ 令牌具有正确的 copilot 作用域 ❌ 任何 gh copilot 命令都会挂起并超时 ❌ 命令似乎连接但从不返回结果 诊断过程 步骤1:验证身份验证 首先,我检查了 GitHub CLI 是否已正确通过身份验证: gh auth status 输出显示我已使用 copilot 作用域登录: github.com ✓ 已登录账户 qzl-dev (keyring) - 令牌作用域:'admin:public_key', 'copilot', 'gist', 'read:org', 'repo' 身份验证不是问题。 步骤2:检查 Copilot CLI 安装 gh copilot --version CLI 已安装(版本 0.0.422),所以这也不是问题。 步骤3:查看日志 这是我发现问题的地方。我检查了 Copilot CLI 日志: cat ~/.copilot/logs/*.log | tail -50 日志显示了真正的问题: [ERROR] 发出 GitHub API 请求时出错:Error: unable to get issuer certificate; if the root CA is installed locally, try running Node.js with --use-system-ca [ERROR] 无法启动远程服务器 github-mcp-server 的 MCP 客户端: TypeError: fetch ...

How I Fixed GitHub Copilot CLI Connection Issues on macOS

Image
How I Fixed GitHub Copilot CLI Connection Issues on macOS The Problem I encountered a frustrating issue where GitHub Copilot worked perfectly in VS Code's chat window, but the gh copilot CLI command would hang indefinitely without producing any output. All commands like gh copilot -p "what is 2+2" would just freeze, making the CLI unusable. Initial Symptoms ✅ GitHub Copilot chat in VS Code worked fine ✅ GitHub CLI ( gh ) was installed and authenticated ✅ Token had the correct copilot scope ❌ Any gh copilot command would hang and timeout ❌ Commands appeared to connect but never returned results Diagnostic Process Step 1: Verify Authentication First, I checked that my GitHub CLI was properly authenticated: gh auth status Output showed I was logged in with the copilot scope included: github.com ✓ Logged in to github.com account qzl-dev (keyring) - Token scopes: 'admin:public_key', 'copilot', 'gist', 'read:org...

Spring Boot 4 Upgrade Pitfalls Guide: Java 21, Jakarta, Jackson 3, and Copilot Automation

Image
Spring Boot 4 Upgrade Pitfalls Guide: Java 21, Jakarta, Jackson 3, and Copilot Automation Spring Boot 4 introduces major ecosystem changes and many teams are planning to upgrade their applications to Java 21 and Spring Boot 4.0.x . However, real-world upgrades often reveal multiple compatibility issues such as: Jakarta package migration breaking compilation Jackson 3 JSON behavior changes Spring Cloud Gateway configuration updates Test framework migration issues Micrometer / Observability runtime errors This article summarizes a production-ready upgrade strategy and demonstrates how to use GitHub Copilot Agent to automate much of the migration work. Table of Contents Why Upgrade to Spring Boot 4 Recommended Upgrade Strategy Using GitHub Copilot for Automated Migration Java 21 Upgrade Spring Boot 4 Upgrade Jakarta Migration Jackson 3 Changes Spring Cloud Gateway Changes Common Upgrade Pitfalls Upgrade Verification Checklist Why Upgrade to Spring...

Spring Boot 4 升级踩坑指南:Java 21、Jakarta、Jackson 3 和 Copilot 自动升级

Image
Spring Boot 4 升级踩坑指南:Java 21、Jakarta、Jackson 3 和 Copilot 自动升级 Spring Boot 4 已经发布,很多团队开始计划将系统升级到 Java 21 与 Spring Boot 4.0.3 。 然而在实际升级过程中,开发者会遇到很多问题,例如: Jakarta 包迁移导致编译失败 Jackson 3 导致 JSON 反序列化变化 Spring Cloud Gateway 配置结构变化 测试依赖和注解迁移 Observability / Micrometer 监控异常 本文总结了一套 企业级 Spring Boot 4 升级流程 , 并介绍如何使用 GitHub Copilot Agent 自动生成升级 PR。 目录 为什么升级 Spring Boot 4 升级总体策略 使用 Copilot 自动升级 Java 21 升级 Spring Boot 4 升级 Jakarta 迁移 Jackson 3 变化 Spring Cloud Gateway 配置变化 常见踩坑 升级验证 Checklist 为什么升级 Spring Boot 4 Spring Boot 4 带来了多个重要变化: 默认支持 Java 21 Jakarta API 全面替换 javax Jackson 3 JSON 生态升级 Micrometer Observability 改进 Spring Security 现代 DSL 对于长期维护的系统来说,升级可以获得: 更好的性能 更安全的依赖 更好的云原生支持 升级总体策略 升级应该按阶段进行: 升级 Java 升级 Spring Boot 进行 Jakarta 迁移 依赖版本对齐 修复配置变化 修复测试 验证运行 每一步都必须 编译 + 测试 + 启动验证 。 使用 Copilot 自动升级 对于大型代码库,手动升级非常耗时。 GitHub Copilot Agent 可以自动分析项目结构, 并生成完整升级 Pull Request。 推荐 Prompt Goal: Upgrade this project ...