Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to get tools of a particular tool_set, by using FastMCP client.#1040

Unanswered
suchith83 asked this question inQ&A
Discussion options

Currently I am loading all tools from github remote server using FastMCP client like this:
config = {
"mcpServers": {
"github": {
"url": "https://api.githubcopilot.com/mcp/",
"headers": {"Authorization": f"Bearer {os.getenv('GITHUB_TOKEN')}"},
"transport": "streamable-http",
}
}
}

client_http = Client(config)

when i load the tools, all 91 tools are getting loaded.

But i need only some tools, of tool sets "users, repos, context". How can I get only these?

I tried by adding tool_filter, but it didn't work. again all the tools were loaded.
config = {
"mcpServers": {
"github": {
"url": "https://api.githubcopilot.com/mcp/",
"headers": {"Authorization": f"Bearer {os.getenv('GITHUB_TOKEN')}"},
"transport": "streamable-http",
"tool_filter": ['repos','context','users']
}
}
}

Can anyone help me how to get only a particular toolset of tools?

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@suchith83

[8]ページ先頭

©2009-2025 Movatter.jp