Home / Servers / GitHub API / copilot_spaces_update_resource_for_user

Set a resource for a Copilot Space for a user

An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.

Set a resource for a Copilot Space for a user Updates the metadata of a resource in a specific Copilot Space owned by a user. The authenticated user must have write permissions on the space. OAuth app tokens and personal access tokens (classic)… [PUT /users/{username}/copilot-spaces/{space_number}/resources/{space_resource_id}]

Name on the gateway: github_api__copilot_spaces_update_resource_for_user · may change things.

Parameters

NameTypeDescription
username requiredstringThe handle for the GitHub user account.
space_number requiredintegerThe unique identifier of the Copilot Space.
space_resource_id requiredintegerThe unique identifier of the resource.
metadataobjectUpdated resource-specific metadata.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "github_api__copilot_spaces_update_resource_for_user",
  "arguments": {
    "username": "…",
    "space_number": 0,
    "space_resource_id": 0
  }
}

Or connect the GitHub API server directly, which lists 1,221 tools including this one:

Run in your terminal
claude mcp add --transport http hj-github-api https://mcp.hjlabs.in/mcp/github-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the set a resource for a copilot space for a user tool with username set to ….

More from GitHub API