René's URL Explorer Experiment


Title: add initial tests by juruen · Pull Request #14 · github/github-mcp-server · GitHub

Open Graph Title: add initial tests by juruen · Pull Request #14 · github/github-mcp-server

X Title: add initial tests by juruen · Pull Request #14 · github/github-mcp-server

Description: Context First of all, apologies for the large PR. I'm happy to split it into smaller PRs if needed. As we talked off-line, we need to start adding tests to the codebase. Although black-box tests will probably be easier to read and maintain, I wanted to make sure that we have some testing in place, even if it's not the best choice yet. This PR adds tests that are based in testing each one of the individual tools by mocking the GitHub client. We verify that: The tool schema is expected A successful use of the tool by checking that: The expected arguments are passed to the GitHub client The response is parsed and returned A limited number of permutations for those those tools that have optional args A failed use case of the tool We have added a few simple test helper functions to try to simplify the tests a bit.

Open Graph Description: Context First of all, apologies for the large PR. I'm happy to split it into smaller PRs if needed. As we talked off-line, we need to start adding tests to the codebase. Although black-box test...

X Description: Context First of all, apologies for the large PR. I'm happy to split it into smaller PRs if needed. As we talked off-line, we need to start adding tests to the codebase. Although black-box ...

Opengraph URL: https://github.com/github/github-mcp-server/pull/14

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:eedd0040-69e9-6575-1cc8-55561db04692
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE5D2:3E511B:11C9ED9:186D155:6A61B4F2
html-safe-nonce2fd2519b9b95c77c5696e6b998a5c264d25acd7aa156dada0f3cb0c93aea4404
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUQyOjNFNTExQjoxMUM5RUQ5OjE4NkQxNTU6NkE2MUI0RjIiLCJ2aXNpdG9yX2lkIjoiMzkwNTkzNTAyMjc0MzQ2NzI1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacde30eb41e19d15b1235fa1c607e6f33e6c1b5326256678453d12eb9589c1e97c
hovercard-subject-tagpull_request:2397707141
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/github/github-mcp-server/pull/14/files
twitter:imagehttps://avatars.githubusercontent.com/u/11424?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/11424?s=400&v=4
og:image:altContext First of all, apologies for the large PR. I'm happy to split it into smaller PRs if needed. As we talked off-line, we need to start adding tests to the codebase. Although black-box test...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None6f4633bcf01c1ad14b73fd07dd39ac31d61f3d3c2578ee08ec1792b7b351eeb9
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id942771284
octolytics-dimension-repository_nwogithub/github-mcp-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id942771284
octolytics-dimension-repository_network_root_nwogithub/github-mcp-server
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseac296ae7f21856f1f92adbad22f870b6fbb4b907
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/github-mcp-server/pull/14/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fpull%2F14%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fpull%2F14%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=github%2Fgithub-mcp-server
Reloadhttps://github.com/github/github-mcp-server/pull/14/files
Reloadhttps://github.com/github/github-mcp-server/pull/14/files
Reloadhttps://github.com/github/github-mcp-server/pull/14/files
Please reload this pagehttps://github.com/github/github-mcp-server/pull/14/files
github https://github.com/github
github-mcp-serverhttps://github.com/github/github-mcp-server
Notifications https://github.com/login?return_to=%2Fgithub%2Fgithub-mcp-server
Fork 4.6k https://github.com/login?return_to=%2Fgithub%2Fgithub-mcp-server
Star 31.6k https://github.com/login?return_to=%2Fgithub%2Fgithub-mcp-server
Code https://github.com/github/github-mcp-server
Issues 171 https://github.com/github/github-mcp-server/issues
Pull requests 165 https://github.com/github/github-mcp-server/pulls
Discussions https://github.com/github/github-mcp-server/discussions
Actions https://github.com/github/github-mcp-server/actions
Models https://github.com/github/github-mcp-server/models
Security and quality 2 https://github.com/github/github-mcp-server/security
Insights https://github.com/github/github-mcp-server/pulse
Code https://github.com/github/github-mcp-server
Issues https://github.com/github/github-mcp-server/issues
Pull requests https://github.com/github/github-mcp-server/pulls
Discussions https://github.com/github/github-mcp-server/discussions
Actions https://github.com/github/github-mcp-server/actions
Models https://github.com/github/github-mcp-server/models
Security and quality https://github.com/github/github-mcp-server/security
Insights https://github.com/github/github-mcp-server/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fgithub%2Fgithub-mcp-server%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgithub%2Fgithub-mcp-server%2Fissues%2Fnew%2Fchoose
juruenhttps://github.com/juruen
mainhttps://github.com/github/github-mcp-server/tree/main
juruen/add-testshttps://github.com/github/github-mcp-server/tree/juruen/add-tests
Conversation 4 https://github.com/github/github-mcp-server/pull/14
Findings https://github.com/github/github-mcp-server/pull/14/findings
Commits 1 https://github.com/github/github-mcp-server/pull/14/commits
Checks 0 https://github.com/github/github-mcp-server/pull/14/checks
Files changed https://github.com/github/github-mcp-server/pull/14/files
Please reload this pagehttps://github.com/github/github-mcp-server/pull/14/files
add initial tests https://github.com/github/github-mcp-server/pull/14/files#top
Show all changes 1 commit https://github.com/github/github-mcp-server/pull/14/files
3dddc2a add initial tests juruen Mar 16, 2025 https://github.com/github/github-mcp-server/pull/14/commits/3dddc2abcd67a95916edbcab572768ff1079afbb
Clear filters https://github.com/github/github-mcp-server/pull/14/files
Please reload this pagehttps://github.com/github/github-mcp-server/pull/14/files
Please reload this pagehttps://github.com/github/github-mcp-server/pull/14/files
go.mod https://github.com/github/github-mcp-server/pull/14/files#diff-33ef32bf6c23acb95f5902d7097b7a1d5128ca061167ec0716715b0b9eeaa5f6
go.sum https://github.com/github/github-mcp-server/pull/14/files#diff-3295df7234525439d778f1b282d146a4f1ff6b415248aaac074e8042d9f42d63
code_scanning.go https://github.com/github/github-mcp-server/pull/14/files#diff-b92db09ff0c4e2a416071ed99a12d19dc68935e7555e50dd9432d37115e23145
code_scanning_test.go https://github.com/github/github-mcp-server/pull/14/files#diff-c52bf57629470a66cb56fe5206808a89003df50d50323b582e99605d30c3b03a
helper_test.go https://github.com/github/github-mcp-server/pull/14/files#diff-e8fa532ff8ba951d7e64e769647b469b857271a3926192545c2d9ab7bb94f402
issues.go https://github.com/github/github-mcp-server/pull/14/files#diff-eab3158a062b4de104a63ca60b07d2db607535afac21cc90b136af8496e6681a
issues_test.go https://github.com/github/github-mcp-server/pull/14/files#diff-2e611e3b483afedad4fd22bdbefada38ac15d4d752b7d71e22b454e8e3800b5e
pullrequests.go https://github.com/github/github-mcp-server/pull/14/files#diff-c2e2a7250ef597d08ee5d429159bc89c4b862a7ed6cbcf30b8231a3ec599d190
pullrequests_test.go https://github.com/github/github-mcp-server/pull/14/files#diff-efebb180e5ae7933bb1c29403a3c82937a5716357f0c9538781f23770635872f
repositories.go https://github.com/github/github-mcp-server/pull/14/files#diff-396c76ab9d216fd1d9043c561bf2bfe57ade719aa0c0cedb47e85b3277714b92
repositories_test.go https://github.com/github/github-mcp-server/pull/14/files#diff-1f37596d401182a6443ebc5cf77fd4451cb48bd6f8a3ca31742a7a29feed4279
search_test.go https://github.com/github/github-mcp-server/pull/14/files#diff-2a95e72dad22e527ccbac69c480e962a18a22dc2074a4b7c40b7fe99ebe92e83
server.go https://github.com/github/github-mcp-server/pull/14/files#diff-b6e388e2a018b4bc415a18e7dd986e6b7730931af9d26c37ba4be38988e421ed
server_test.go https://github.com/github/github-mcp-server/pull/14/files#diff-014ce2a5e97b449dbaacef3a9a5b1cb9bd0e7a863b095ef29117af2a1d3bdf85
https://github.com/github/github-mcp-server/blob/main/.github/CODEOWNERS#L1
go.modhttps://github.com/github/github-mcp-server/pull/14/files#diff-33ef32bf6c23acb95f5902d7097b7a1d5128ca061167ec0716715b0b9eeaa5f6
View file https://github.com/github/github-mcp-server/blob/3dddc2abcd67a95916edbcab572768ff1079afbb/go.mod
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/github-mcp-server/pull/14/{{ revealButtonHref }}
https://github.com/github/github-mcp-server/pull/14/files#diff-33ef32bf6c23acb95f5902d7097b7a1d5128ca061167ec0716715b0b9eeaa5f6
https://github.com/github/github-mcp-server/pull/14/files#diff-33ef32bf6c23acb95f5902d7097b7a1d5128ca061167ec0716715b0b9eeaa5f6
https://github.com/github/github-mcp-server/blob/main/.github/CODEOWNERS#L1
go.sumhttps://github.com/github/github-mcp-server/pull/14/files#diff-3295df7234525439d778f1b282d146a4f1ff6b415248aaac074e8042d9f42d63
View file https://github.com/github/github-mcp-server/blob/3dddc2abcd67a95916edbcab572768ff1079afbb/go.sum
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/github-mcp-server/pull/14/{{ revealButtonHref }}
https://github.com/github/github-mcp-server/pull/14/files#diff-3295df7234525439d778f1b282d146a4f1ff6b415248aaac074e8042d9f42d63
https://github.com/github/github-mcp-server/pull/14/files#diff-3295df7234525439d778f1b282d146a4f1ff6b415248aaac074e8042d9f42d63
https://github.com/github/github-mcp-server/pull/14/files#diff-3295df7234525439d778f1b282d146a4f1ff6b415248aaac074e8042d9f42d63
https://github.com/github/github-mcp-server/pull/14/files#diff-3295df7234525439d778f1b282d146a4f1ff6b415248aaac074e8042d9f42d63
https://github.com/github/github-mcp-server/pull/14/files#diff-3295df7234525439d778f1b282d146a4f1ff6b415248aaac074e8042d9f42d63
https://github.com/github/github-mcp-server/blob/main/.github/CODEOWNERS#L1
pkg/github/code_scanning.gohttps://github.com/github/github-mcp-server/pull/14/files#diff-b92db09ff0c4e2a416071ed99a12d19dc68935e7555e50dd9432d37115e23145
View file https://github.com/github/github-mcp-server/blob/3dddc2abcd67a95916edbcab572768ff1079afbb/pkg/github/code_scanning.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/github-mcp-server/pull/14/{{ revealButtonHref }}
https://github.com/github/github-mcp-server/pull/14/files#diff-b92db09ff0c4e2a416071ed99a12d19dc68935e7555e50dd9432d37115e23145
https://github.com/github/github-mcp-server/pull/14/files#diff-b92db09ff0c4e2a416071ed99a12d19dc68935e7555e50dd9432d37115e23145
https://github.com/github/github-mcp-server/pull/14/files#diff-b92db09ff0c4e2a416071ed99a12d19dc68935e7555e50dd9432d37115e23145
https://github.com/github/github-mcp-server/pull/14/files#diff-b92db09ff0c4e2a416071ed99a12d19dc68935e7555e50dd9432d37115e23145
https://github.com/github/github-mcp-server/pull/14/files#diff-b92db09ff0c4e2a416071ed99a12d19dc68935e7555e50dd9432d37115e23145
https://github.com/github/github-mcp-server/pull/14/files#diff-b92db09ff0c4e2a416071ed99a12d19dc68935e7555e50dd9432d37115e23145
https://github.com/github/github-mcp-server/blob/main/.github/CODEOWNERS#L1
pkg/github/code_scanning_test.gohttps://github.com/github/github-mcp-server/pull/14/files#diff-c52bf57629470a66cb56fe5206808a89003df50d50323b582e99605d30c3b03a
View file https://github.com/github/github-mcp-server/blob/3dddc2abcd67a95916edbcab572768ff1079afbb/pkg/github/code_scanning_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/github-mcp-server/pull/14/{{ revealButtonHref }}
https://github.com/github/github-mcp-server/blob/main/.github/CODEOWNERS#L1
pkg/github/helper_test.gohttps://github.com/github/github-mcp-server/pull/14/files#diff-e8fa532ff8ba951d7e64e769647b469b857271a3926192545c2d9ab7bb94f402
View file https://github.com/github/github-mcp-server/blob/3dddc2abcd67a95916edbcab572768ff1079afbb/pkg/github/helper_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/github-mcp-server/pull/14/{{ revealButtonHref }}
Please reload this pagehttps://github.com/github/github-mcp-server/pull/14/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.