{"id":40878423,"url":"https://github.com/tectiv3/lsp-client","last_synced_at":"2026-01-22T01:08:32.882Z","repository":{"id":189064039,"uuid":"679973343","full_name":"tectiv3/lsp-client","owner":"tectiv3","description":"A proxy between Textmate and language servers, vim-copilot and intelephense and volar/vue-language-server","archived":false,"fork":false,"pushed_at":"2025-07-13T08:24:46.000Z","size":133,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-13T10:21:37.315Z","etag":null,"topics":["copilot","intelephense","lsp","textmate","vim-copilot","vue","vue-language-server"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tectiv3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-08-18T03:44:26.000Z","updated_at":"2025-07-13T08:24:49.000Z","dependencies_parsed_at":"2024-04-19T03:27:31.086Z","dependency_job_id":"5a04086f-fe88-428a-90b9-a79abd17f5fb","html_url":"https://github.com/tectiv3/lsp-client","commit_stats":null,"previous_names":["tectiv3/lsp-client"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tectiv3/lsp-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Flsp-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Flsp-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Flsp-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Flsp-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tectiv3","download_url":"https://codeload.github.com/tectiv3/lsp-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Flsp-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28648492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T21:29:11.980Z","status":"ssl_error","status_checked_at":"2026-01-21T21:24:31.872Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["copilot","intelephense","lsp","textmate","vim-copilot","vue","vue-language-server"],"created_at":"2026-01-22T01:08:32.830Z","updated_at":"2026-01-22T01:08:32.877Z","avatar_url":"https://github.com/tectiv3.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Copilot and Intelephense for Textmate\n\nRequires [this bundle](https://github.com/tectiv3/PHP-LSP.tmbundle) in Textmate.\n\nCopilot can work without Intelephense with any supported by copilot language.\n\n## Authentication\n\nThe server now supports automatic GitHub Copilot authentication during startup with a terminal-based flow.\n\n### Automatic Terminal Authentication\n\nWhen the server starts, it automatically:\n1. Checks if Copilot is already authenticated\n2. If not authenticated, starts an interactive terminal login flow\n3. Displays a user code and opens GitHub in your browser\n4. Waits for you to complete authentication\n5. Verifies the authentication was successful\n\nThe authentication happens automatically when you start the server - no additional setup required!\n\n**Features:**\n- Automatic browser opening (cross-platform)\n- User-friendly terminal interface with colored output\n- Retry mechanism (up to 3 attempts)\n- Graceful fallback if authentication fails\n\n### Manual API Authentication\n\nThe server also supports GitHub Copilot authentication through the following API endpoints:\n\n### Authentication Flow\n\n1. **Start Authentication** - `POST /` with method `signIn`\n   - Initiates GitHub OAuth flow\n   - Returns user code and verification URI\n   - Response includes:\n     - `status`: \"pending\" or \"success\" (if already signed in)\n     - `userCode`: Code to enter on GitHub\n     - `verificationUri`: GitHub URL to visit\n     - `expiresIn`: Code expiration time in seconds\n     - `interval`: Polling interval in seconds\n\n2. **Complete Authentication** - `POST /` with method `signInConfirm`\n   - Confirms authentication after user enters code on GitHub\n   - Request body: `{\"userCode\": \"YOUR_CODE\"}`\n   - Returns success/error status with user info\n\n3. **Check Status** - `POST /` with method `checkStatus` or `authStatus`\n   - Checks current authentication status\n   - Returns user info if authenticated\n\n### Example Authentication Flow\n\n```bash\n# 1. Start authentication\ncurl -X POST http://localhost:8080 \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"Method\": \"signIn\", \"Body\": {}}'\n\n# Response: {\"status\": \"pending\", \"userCode\": \"ABC123\", \"verificationUri\": \"https://github.com/login/device\", ...}\n\n# 2. User visits the verification URI and enters the code\n\n# 3. Confirm authentication\ncurl -X POST http://localhost:8080 \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"Method\": \"signInConfirm\", \"Body\": {\"userCode\": \"ABC123\"}}'\n\n# Response: {\"status\": \"success\", \"user\": \"username\"}\n\n# 4. Check authentication status anytime\ncurl -X POST http://localhost:8080 \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"Method\": \"authStatus\", \"Body\": {}}'\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftectiv3%2Flsp-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftectiv3%2Flsp-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftectiv3%2Flsp-client/lists"}