Add Xquik MCP discovery sample - #126
Open
kriptoburak wants to merge 2 commits into
Open
Conversation
kriptoburak
force-pushed
the
codex/add-xquik-mcp-discovery-sample
branch
from
August 18, 2026 09:49
121c9cc to
6c8f728
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Type
Description
Closes #125.
Adds
functionality/xquik_mcp_discovery, a small read-only AgentScope sample for exploring X / Twitter API routes through Xquik remote MCP server. It usesMCPClientandHttpMCPConfig, enables only theexploretool, searches current endpoint metadata, and requires no model-provider credentials.The MCP origin is fixed to
https://xquik.com/mcp. The bearer key cannot be redirected to an environment-configured host. Six offline tests cover that boundary, the read-only tool allow-list, API-key handling, default and explicit queries, JavaScript string escaping, result limits, and output conversion.Testing Validation
pre-commit run --all-filespassed every repository hook, including mypy, Black, Flake8, Pylint, ESLint, Stylelint, and Prettier.python -m unittest -v functionality.xquik_mcp_discovery.test_mainpassed 6 offline tests.python -m py_compilepassed for the package, sample, and tests.uv pip checkpassed with AgentScope 2.0.6 on Python 3.11.https://xquik.com/mcpas the streamable HTTP endpoint. The endpoint returned 401 without authentication, as expected.A live tool call was not run because it requires an Xquik API key. The tests make no network requests.
Checklist
pre-commit run --all-files.requirements.txt.Security and Independence
exploretool is enabled.xquikexecution tool.Codex assisted with the current validation and repair. I reviewed the final implementation and test evidence.